Hirohito Higashi wrote:
> 2016-11-17(Thu) 22:48:45 UTC+9 Bram Moolenaar:
> > Hirohito Higashi wrote:
> >
> > > I found a line for which the addition of `\zs` is forgotten.
> > > Patch attached.
> >
> > Unfortunately that doesn't fix it. Only remove \zs in the other
> > cCppOutIf2 appears to fix it.
>
> Ah, I just understand!
> And I found that the problem still remains.
>
> ```
> void main()
> {
> #if 0
> int i = 0;
> #else
> #endif
>
> int j = 0;
> }
> ```
>
> See the attached image file `wrong_highlight_in_c.png`.
>
> I think that `\zs` should not be specified for `syn region` where `contained`
> is specified.
> Because `\zs` is already in use at the higher level match.
> If we use it in `syn region contained`, the regular expression of the start=
> and the end= will not match.
>
> I wrote a patch. (Attached)
> Check it please.
Thanks. Yeah, adding those \zs was a bad idea.
--
Q. What happens to programmers when they die?
A: MS-Windows programmers are reinstalled. C++ programmers become undefined,
anyone who refers to them will die as well. Java programmers reincarnate
after being garbage collected, unless they are in permgen, in which case
they become zombies. Zimbu programmers leave a stack trace that tells us
exactly where they died and how they got there.
/// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ an exciting new programming language -- http://www.Zimbu.org ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
--
--
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/d/optout.