diff options
author | Brad King <brad.king@kitware.com> | 2023-12-12 13:40:36 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2023-12-12 13:40:56 (GMT) |
commit | 46c9feaec731d2ffa7ee6cfd9fc83845e7f4fe59 (patch) | |
tree | 6b3272da2f22c4e63d02a9bfb66d758addab5b01 /Auxiliary | |
parent | 00d3a4a290289a24ec9a6a12ff7056d9ae41e372 (diff) | |
parent | 56fb01a176891fab1152502c0c49a8b7b52f8b29 (diff) | |
download | CMake-46c9feaec731d2ffa7ee6cfd9fc83845e7f4fe59.zip CMake-46c9feaec731d2ffa7ee6cfd9fc83845e7f4fe59.tar.gz CMake-46c9feaec731d2ffa7ee6cfd9fc83845e7f4fe59.tar.bz2 |
Merge topic 'vim-syntax'
56fb01a176 vim: Fix syntax highlighting for bracket arguments and comments
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !9061
Diffstat (limited to 'Auxiliary')
-rw-r--r-- | Auxiliary/vim/syntax/cmake.vim | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Auxiliary/vim/syntax/cmake.vim b/Auxiliary/vim/syntax/cmake.vim index aa9ebe4..c95503b 100644 --- a/Auxiliary/vim/syntax/cmake.vim +++ b/Auxiliary/vim/syntax/cmake.vim @@ -19,10 +19,10 @@ endif let s:keepcpo= &cpo set cpo&vim -syn region cmakeBracketArgument start="\[\z(=\?\|=[0-9]*\)\[" end="\]\z1\]" contains=cmakeTodo,@Spell +syn region cmakeBracketArgument start="\[\z(=*\)\[" end="\]\z1\]" contains=cmakeTodo,@Spell -syn region cmakeComment start="#" end="$" contains=cmakeTodo,@Spell -syn region cmakeBracketComment start="\[\z(=*\)\[" end="\]\z1\]" contains=cmakeTodo,@Spell +syn region cmakeComment start="#\(\[=*\[\)\@!" end="$" contains=cmakeTodo,@Spell +syn region cmakeBracketComment start="#\[\z(=*\)\[" end="\]\z1\]" contains=cmakeTodo,@Spell syn match cmakeEscaped /\(\\\\\|\\"\|\\n\|\\t\)/ contained syn region cmakeRegistry start="\[" end="]" contained oneline contains=cmakeTodo,cmakeEscaped |