Mercurial > vim
comparison runtime/syntax/c.vim @ 2267:c08f91142c41 vim73
Crypt the swapfile.
author | Bram Moolenaar <bram@vim.org> |
---|---|
date | Mon, 21 Jun 2010 06:15:46 +0200 |
parents | 7bc41231fbc7 |
children | f2de38a019a2 |
comparison
equal
deleted
inserted
replaced
2266:ae2e615a7320 | 2267:c08f91142c41 |
---|---|
268 if !exists("c_no_c99") " ISO C99 | 268 if !exists("c_no_c99") " ISO C99 |
269 syn keyword cConstant true false | 269 syn keyword cConstant true false |
270 endif | 270 endif |
271 | 271 |
272 " Accept %: for # (C99) | 272 " Accept %: for # (C99) |
273 syn region cPreCondit start="^\s*\(%:\|#\)\s*\(if\|ifdef\|ifndef\|elif\)\>" skip="\\$" end="$" contains=cComment,cCommentL,cCppString,cCharacter,cCppParen,cParenError,cNumbers,cCommentError,cSpaceError | 273 syn region cPreCondit start="^\s*\(%:\|#\)\s*\(if\|ifdef\|ifndef\|elif\)\>" skip="\\$" end="$" keepend contains=cComment,cCommentL,cCppString,cCharacter,cCppParen,cParenError,cNumbers,cCommentError,cSpaceError |
274 syn match cPreCondit display "^\s*\(%:\|#\)\s*\(else\|endif\)\>" | 274 syn match cPreCondit display "^\s*\(%:\|#\)\s*\(else\|endif\)\>" |
275 if !exists("c_no_if0") | 275 if !exists("c_no_if0") |
276 if !exists("c_no_if0_fold") | 276 if !exists("c_no_if0_fold") |
277 syn region cCppOut start="^\s*\(%:\|#\)\s*if\s\+0\+\>" end=".\@=\|$" contains=cCppOut2 fold | 277 syn region cCppOut start="^\s*\(%:\|#\)\s*if\s\+0\+\>" end=".\@=\|$" contains=cCppOut2 fold |
278 else | 278 else |