Mercurial > vim
diff runtime/syntax/vim.vim @ 34185:bfb925ee6bc8
runtime(vim): Update syntax file (#13906)
Commit: https://github.com/vim/vim/commit/9c5b90db035b0e488f4cc686514a8d2a42265eb2
Author: dkearns <dougkearns@gmail.com>
Date: Wed Jan 24 06:34:28 2024 +1100
runtime(vim): Update syntax file (https://github.com/vim/vim/issues/13906)
Highlight :2match and :3match and add these to :help ex-cmd-index.
Signed-off-by: Doug Kearns <dougkearns@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Tue, 23 Jan 2024 20:45:05 +0100 |
parents | 36843e079f64 |
children | f2d904d44ebd |
line wrap: on
line diff
--- a/runtime/syntax/vim.vim +++ b/runtime/syntax/vim.vim @@ -10,6 +10,7 @@ " 2023 Dec 30 by Vim Project (:syntax improvements) " 2024 Jan 14 by Vim Project (TermResponseAll autocommand) " 2024 Jan 15 by Vim Project (:hi ctermfont attribute) +" 2024 Jan 23 by Vim Project (add :[23]match commands) " Version: 9.0-25 " URL: http://www.drchip.org/astronaut/vim/index.html#SYNTAX_VIM " Automatically generated keyword lists: {{{1 @@ -95,6 +96,9 @@ syn keyword vimFuncName contained append syn keyword vimFuncName contained appendbufline assert_beeps assert_inrange assert_true balloon_gettext bufadd bufnr call charidx ch_evalraw ch_open ch_setoptions complete_add cosh delete digraph_getlist escape exists extend finddir fmod foldtext garbagecollect getcellwidths getcharstr getcmdwintype getfontname getjumplist getmouseshape getregtype gettext glob hasmapto hlget index inputsave isdirectory job_info js_decode len list2blob log maplist matcharg matchstr mode perleval popup_dialog popup_getoptions "--- syntax here and above generated by mkvimvim --- + +syn keyword vimCommand contained 2mat[ch] 3mat[ch] + " Special Vim Highlighting (not automatic) {{{1 " Set up folding commands for this syntax highlighting file {{{2 @@ -189,7 +193,7 @@ syn match vimNumber '0[bB][01]\+' " 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\+\>"