> Hi there!
>
> I defined a syntax file like this:
>
> syn region region1 start="s1" end='e1' contains=region2
> syn region region2 start="s2" end='e2'
>
> hi! def link region1 String
> hi! def link region2 Comment
>
> But, when if I nest region2 inside region1 and finish region1, it
> doesn't finish region2... See:
>
> s1
> region1 works!
> e1
>
> s2
> region2 works too!
> e2
>
> s1
> region1 here
> s2
> region2 here
> e1
>
> Oh, e1 should finish both, but it is region2 here yet :-(
>
> How to make an "outer" region finish every nested region it has within?
>
> Thanks.
:h:syn-keepend
--
Andy
--
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:
Post a Comment