Sunday, August 5, 2012

vim: comment regex

experts:
how to comment a long regex?
it looks normal line continuation doesn't work here -- I have to put
everything in one line, which becomes painful as it goes long...

syn region erxLog
\start=/^\(\S\S\+.\{0,45}\S[#>%]\s*\S\+\|slot
\d\d\=->\S\+\|->.\+\|\*-\*-\*-\*-\*-\)/
\end=/^\(\S\+.\{0,45}\S[#>%]\|^[#>%]$\|->\|slot
\d\d\=->\|\*-\*-\*-\*-\*-\)/me=s-1 fold



regards
ping

--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

No comments: