diff options
author | Dan Reif <35710107+CH-DanReif@users.noreply.github.com> | 2018-06-05 14:18:09 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-06-05 14:18:09 -0700 |
commit | d362dca9b3373c2ddc8526eaa80b02bfaa274c7d (patch) | |
tree | 3016d45f4f2714937790a989be8adda3fe942ae3 /syntax/cmake.vim | |
parent | a26134de3c09f9725667e14e7073a701bcff4e19 (diff) | |
parent | 1f34e0adcfb54b45760d7570d4c270a939daa03b (diff) | |
download | vim-polyglot-d362dca9b3373c2ddc8526eaa80b02bfaa274c7d.tar.gz vim-polyglot-d362dca9b3373c2ddc8526eaa80b02bfaa274c7d.zip |
Merge pull request #315 from sheerun/periodic_rebuild_20180605
Update (periodic rebuild)
Diffstat (limited to 'syntax/cmake.vim')
-rw-r--r-- | syntax/cmake.vim | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/syntax/cmake.vim b/syntax/cmake.vim index cc4a10d5..348222c7 100644 --- a/syntax/cmake.vim +++ b/syntax/cmake.vim @@ -21,8 +21,10 @@ endif let s:keepcpo= &cpo set cpo&vim -syn region cmakeComment start="#" end="$" contains=cmakeTodo,cmakeLuaComment,@Spell -syn region cmakeLuaComment start="\[\z(=*\)\[" end="\]\z1\]" contains=cmakeTodo,@Spell +syn region cmakeBracketArgument start="\[\z(=\?\|=[0-9]*\)\[" end="\]\z1\]" contains=cmakeTodo,@Spell + +syn region cmakeComment start="#" end="$" contains=cmakeTodo,@Spell +syn region cmakeBracketComment start="#\[\z(=\?\|=[0-9]*\)\[" end="\]\z1\]" contains=cmakeTodo,@Spell syn match cmakeEscaped /\(\\\\\|\\"\|\\n\|\\t\)/ contained syn region cmakeRegistry start="\[" end="]" contained oneline contains=cmakeTodo,cmakeEscaped @@ -358,6 +360,8 @@ syn keyword cmakeTodo \ TODO FIXME XXX \ contained +hi def link cmakeBracketArgument String +hi def link cmakeBracketComment Comment hi def link cmakeCommand Function hi def link cmakeCommandConditional Conditional hi def link cmakeCommandDeprecated WarningMsg @@ -367,7 +371,6 @@ hi def link cmakeEnvironment Special hi def link cmakeEscaped Special hi def link cmakeGeneratorExpression WarningMsg hi def link cmakeGeneratorExpressions Constant -hi def link cmakeLuaComment Comment hi def link cmakeModule Include hi def link cmakeProperty Constant hi def link cmakeRegistry Underlined |