[...]
> syn region tComment start=";\_s*\zs\*" end="\;"
[...]
> With the above, the following line gets colored correctly:
> ; *adsafasff;
>
> with everything between the asterisk and the semi-colon colored red.
>
> However, it cannot deal with line breaks, and the following text
> remains unchanged:
>
> ;
>
> *adsafasff;
>
> The regexp starting the comment appears to be finding the right
> pattern.
>
> Is there any way I can handle line breaks?
I'm not sure why it doesn't work...but I suggest trying using \@<=
instead of \zs as my experience has been that this often works better,
particularly in syntax highlighting; must be something to do with the
way the pattern engine works. So...try something like this:
syn region tComment start="\(;\_s*\)\@<=\*" end=";"
(You don't need a backslash before a semicolon like you had in the end
pattern really, do you? I don't think so, but I could be going crazy...)
Ben.
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---