On So, 27 Okt 2013, Ingo Karkat wrote: > In the first line, group 'A' prefers a following 'B' via the > "nextgroup=B", and this does work for the next 3 'b' in the same line. > It apparently fails in the second line, even though "skipnl" has been given.
Ah, now I see. The MyComments match confused me. It looks like the \zs makes the pattern not match. The same happens when using the \@<= atom. A workaround is something like this (which looks cleaner for me) syntax match MyComment '#.*$' contains=A,B syntax match A 'a' nextgroup=B skipwhite skipnl syntax match B 'b' contained nextgroup=B skipwhite skipnl Best, Christian -- Was man nicht im Kopf hat, muß man im Computer haben. -- -- You received this message from the "vim_dev" 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 --- You received this message because you are subscribed to the Google Groups "vim_dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
