Ben Schmidt wrote:
[snip]...
syn clear    cConditional
syn keyword    cConditional    else switch
syn region cIf matchgroup=cConditional start=+if\_s*(+ end=+)\_s*\ze[^;)]+ contains=ALLBUT,@cParenGroup,cCppParen,cCppString,@Spell skipwhite skipnl skipempty nextgroup=cSemiError
syn match    cSemiError    contained ";"
hi link        cSemiError    cParenError
...[snip]

Just eyeballing it; may I suggest changing

syn region    cIf        matchgroup=cConditional start=+if ...

to

syn region    cIf        matchgroup=cConditional start=+\<if ...

Regards,
Chip Campbell

--
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

Reply via email to