summaryrefslogtreecommitdiffstats
path: root/syntax/cmake.vim
diff options
context:
space:
mode:
authorDan Reif <35710107+CH-DanReif@users.noreply.github.com>2018-06-05 14:18:09 -0700
committerGitHub <noreply@github.com>2018-06-05 14:18:09 -0700
commitd362dca9b3373c2ddc8526eaa80b02bfaa274c7d (patch)
tree3016d45f4f2714937790a989be8adda3fe942ae3 /syntax/cmake.vim
parenta26134de3c09f9725667e14e7073a701bcff4e19 (diff)
parent1f34e0adcfb54b45760d7570d4c270a939daa03b (diff)
downloadvim-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.vim9
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