On 2010-08-13 04:43, Bram Moolenaar wrote:
I fail to see the problem this solves. The comments are at the toplevel
instead of below the cPreCondit or cDefine region, but that should not
matter for the highlighting.
Finally track down the problem!
I am using the Cream build of Vim 7.2.43x/7.3e for the whole time, and
this problem exists. It seems that the syntax\c.vim file is missing
keepend from the definitions. Attached diff shows the problem.
The newest build of Cream - 7.3f - includes the correct syntax\c.vim
file. The problem does not exhibit there...
Sorry for the noise... :)
Regards,
KF
--
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
--- E:/DL/GVim/vim7.3/7.3e-c.vim Sun Nov 29 01:31:00 2009
+++ E:/DL/GVim/vim7.3/7.3f-c.vim Tue Jul 27 06:14:32 2010
@@ -270,7 +270,7 @@
endif
" Accept %: for # (C99)
-syn region cPreCondit
start="^\s*\(%:\|#\)\s*\(if\|ifdef\|ifndef\|elif\)\>" skip="\\$" end="$"
contains=cComment,cCommentL,cCppString,cCharacter,cCppParen,cParenError,cNumbers,cCommentError,cSpaceError
+syn region cPreCondit
start="^\s*\(%:\|#\)\s*\(if\|ifdef\|ifndef\|elif\)\>" skip="\\$" end="$"
keepend
contains=cComment,cCommentL,cCppString,cCharacter,cCppParen,cParenError,cNumbers,cCommentError,cSpaceError
syn match cPreCondit display "^\s*\(%:\|#\)\s*\(else\|endif\)\>"
if !exists("c_no_if0")
if !exists("c_no_if0_fold")