diff options
author | Bram Moolenaar <Bram@vim.org> | 2014-11-19 18:54:17 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2014-11-19 18:54:17 +0100 |
commit | 2f3b510b0f9203d31e2f7f536ebfbcb17766e09e (patch) | |
tree | 349987943481953e79a7db75d3c144eb8617df86 /runtime/syntax/c.vim | |
parent | b1e265045cc872f2e1cf43e6a98bc3e3770a289d (diff) | |
download | vim-git-2f3b510b0f9203d31e2f7f536ebfbcb17766e09e.tar.gz |
Update runtime files.
Diffstat (limited to 'runtime/syntax/c.vim')
-rw-r--r-- | runtime/syntax/c.vim | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/runtime/syntax/c.vim b/runtime/syntax/c.vim index 2e54b8c42..128e1a2a4 100644 --- a/runtime/syntax/c.vim +++ b/runtime/syntax/c.vim @@ -1,7 +1,7 @@ " Vim syntax file " Language: C " Maintainer: Bram Moolenaar <Bram@vim.org> -" Last Change: 2014 Sep 23 +" Last Change: 2014 Nov 13 " Quit when a (custom) syntax file was already loaded if exists("b:current_syntax") @@ -61,10 +61,9 @@ else syn region cCppString start=+L\="+ skip=+\\\\\|\\"\|\\$+ excludenl end=+"+ end='$' contains=cSpecial,cFormat,@Spell endif -syn region cCppOut2 contained start="0" end="^\s*\(%:\|#\)\s*\(endif\>\|else\>\|elif\>\)" contains=cSpaceError,cCppSkip syn region cCppSkip contained start="^\s*\(%:\|#\)\s*\(if\>\|ifdef\>\|ifndef\>\)" skip="\\$" end="^\s*\(%:\|#\)\s*endif\>" contains=cSpaceError,cCppSkip -syn cluster cStringGroup contains=cCppString,cCppOut2,cCppSkip +syn cluster cStringGroup contains=cCppString,cCppSkip syn match cCharacter "L\='[^\\]'" syn match cCharacter "L'[^']*'" contains=cSpecial @@ -462,8 +461,7 @@ hi def link cTodo Todo hi def link cBadContinuation Error hi def link cCppOutSkip cCppOutIf2 hi def link cCppInElse2 cCppOutIf2 -hi def link cCppOutIf2 cCppOut2 " Old syntax group for #if 0 body -hi def link cCppOut2 cCppOut " Old syntax group for #if of #if 0 +hi def link cCppOutIf2 cCppOut hi def link cCppOut Comment let b:current_syntax = "c" |