blob: 438ce59656675b8869e576ffab946caeeadf37f1 (
plain) (
tree)
|
|
" Remove special highlighting for double-quoted strings and colon labels in
" comments
syntax clear vimCommentString
syntax clear vimCommentTitle
" Highlight :CompilerSet commands like :set/:setlocal, but only in compiler
" scripts in recognisable paths
if expand('%:p:h:t') ==# 'compiler'
\ && expand('%:e') ==# 'vim'
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
endif
|