aboutsummaryrefslogblamecommitdiff
path: root/vim/after/syntax/vim.vim
blob: e67803cc2a59886478d4a51087eb7251104448ba (plain) (tree)
1
2
3
4
5
6

                                                                   
 

                                                                           
                                   
















                                            
" Remove special highlighting for double-quoted strings in comments
syntax clear vimCommentString

" 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