Christian Brabandt wrote: > Hi François! > > On Mo, 05 Sep 2011, François Ingelrest wrote: > > > Hi all, > > > > The following code is highlighted incorrectly when using the cpp filetype: > > > > #if defined FOO > > #elif defined BAR > > #endif > > > > The part "defined BAR" is not highlighted, while "defined FOO" is. > > AFAICT, my runtime files are up to date. > > > > I don't know much about Vim syntax files, so I can't tell where > > exactly is the problem. > > Hm, I think, the syn match takes precedence over the defined region > there. If one makes the regular expression for the syn-match tighter, it > should work. Something like this seems to work:
The "elif" should not be in the cPreConditMatch rule, it's already in the rule just above it. Thanks for the hint though. -- Managers are like cats in a litter box. They instinctively shuffle things around to conceal what they've done. (Scott Adams - The Dilbert principle) /// Bram Moolenaar -- b...@moolenaar.net -- 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