From 0c917eab078f5d16f874390f04adc11eba9e3cb7 Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Wed, 29 May 2019 03:10:47 +1200 Subject: Color Vim script :CompilerSet commands better --- vim/after/syntax/vim.vim | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'vim/after') 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="\" + \ end="$" end="|" end="<[cC][rR]>" + \ keepend + \ matchgroup=vimNotation + \ oneline + \ skip="\%(\\\\\)*\\." + \ contains=vimSetEqual + \,vimOption + \,vimErrSetting + \,vimComment + \,vimSetString + \,vimSetMod -- cgit v1.2.3