diff options
Diffstat (limited to 'runtime/syntax/vim.vim')
-rw-r--r-- | runtime/syntax/vim.vim | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/runtime/syntax/vim.vim b/runtime/syntax/vim.vim index 049c18bba1..71556b4848 100644 --- a/runtime/syntax/vim.vim +++ b/runtime/syntax/vim.vim @@ -59,6 +59,9 @@ syn keyword vimOnlyHLGroup contained LineNrAbove LineNrBelow StatusLineTerm Term syn keyword nvimHLGroup contained Substitute TermCursor TermCursorNC "}}}2 syn case match + +syn keyword vimCommand contained 2mat[ch] 3mat[ch] + " Special Vim Highlighting (not automatic) {{{1 " Set up folding commands for this syntax highlighting file {{{2 @@ -150,7 +153,7 @@ syn match vimNumber '0[bB][01]\+' skipwhite nextgroup=vimGlobal,vimSubst " All vimCommands are contained by vimIsCommand. {{{2 syn match vimCmdSep "[:|]\+" skipwhite nextgroup=vimAbb,vimAddress,vimAutoCmd,vimAugroup,vimBehave,vimEcho,vimEchoHL,vimExecute,vimIsCommand,vimExtCmd,vimFilter,vimGlobal,vimHighlight,vimLet,vimMap,vimMark,vimNorm,vimSet,vimSyntax,vimUnlet,vimUnmap,vimUserCmd -syn match vimIsCommand "\<\h\w*\>" contains=vimCommand +syn match vimIsCommand "\<\%(\h\w*\|[23]mat\%[ch]\)\>" contains=vimCommand syn match vimVar contained "\<\h[a-zA-Z0-9#_]*\>" syn match vimVar "\<[bwglstav]:\h[a-zA-Z0-9#_]*\>" syn match vimVar "\s\zs&\%([lg]:\)\=\a\+\>" |