aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2019-05-29 03:10:47 +1200
committerTom Ryder <tom@sanctum.geek.nz>2019-05-29 03:10:47 +1200
commit0c917eab078f5d16f874390f04adc11eba9e3cb7 (patch)
tree35dd359d174b53dbd75a1d5f05b9643450155544
parentMerge branch 'release/v4.58.0' into develop (diff)
downloaddotfiles-0c917eab078f5d16f874390f04adc11eba9e3cb7.tar.gz
dotfiles-0c917eab078f5d16f874390f04adc11eba9e3cb7.zip
Color Vim script :CompilerSet commands better
-rw-r--r--vim/after/syntax/vim.vim17
1 files changed, 17 insertions, 0 deletions
diff --git a/vim/after/syntax/vim.vim b/vim/after/syntax/vim.vim
index acb5cdc5..c5417413 100644
--- a/vim/after/syntax/vim.vim
+++ b/vim/after/syntax/vim.vim
@@ -1,2 +1,19 @@
" Remove special highlighting for double-quoted strings in comments
syntax clear vimCommentString
+
+" Highlight :CompilerSet commands like :set/:setlocal
+syntax keyword vimCommand contained
+ \ CompilerSet
+syntax region vimSet matchgroup=vimCommand
+ \ start="\<CompilerSet\>"
+ \ end="$" end="|" end="<[cC][rR]>"
+ \ keepend
+ \ matchgroup=vimNotation
+ \ oneline
+ \ skip="\%(\\\\\)*\\."
+ \ contains=vimSetEqual
+ \,vimOption
+ \,vimErrSetting
+ \,vimComment
+ \,vimSetString
+ \,vimSetMod