comparison 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
comparison
equal deleted inserted replaced
34184:c781be83e11e 34185:bfb925ee6bc8
8 " 2023 Dec 10 by Vim Project (improve variable matching) 8 " 2023 Dec 10 by Vim Project (improve variable matching)
9 " 2023 Dec 21 by Vim Project (improve ex command matching) 9 " 2023 Dec 21 by Vim Project (improve ex command matching)
10 " 2023 Dec 30 by Vim Project (:syntax improvements) 10 " 2023 Dec 30 by Vim Project (:syntax improvements)
11 " 2024 Jan 14 by Vim Project (TermResponseAll autocommand) 11 " 2024 Jan 14 by Vim Project (TermResponseAll autocommand)
12 " 2024 Jan 15 by Vim Project (:hi ctermfont attribute) 12 " 2024 Jan 15 by Vim Project (:hi ctermfont attribute)
13 " 2024 Jan 23 by Vim Project (add :[23]match commands)
13 " Version: 9.0-25 14 " Version: 9.0-25
14 " URL: http://www.drchip.org/astronaut/vim/index.html#SYNTAX_VIM 15 " URL: http://www.drchip.org/astronaut/vim/index.html#SYNTAX_VIM
15 " Automatically generated keyword lists: {{{1 16 " Automatically generated keyword lists: {{{1
16 17
17 " Quit when a syntax file was already loaded {{{2 18 " Quit when a syntax file was already loaded {{{2
93 syn keyword vimFuncName contained and argv assert_fails assert_notmatch autocmd_delete browse bufloaded byteidx charclass chdir ch_log ch_sendexpr col copy debugbreak diff_hlID empty execute expandcmd filewritable float2nr foldclosedend funcref getbufoneline getcharpos getcmdscreenpos getcwd getftype getmatches getreg gettabwinvar getwinposy has_key histnr iconv inputlist invert items job_stop keys line2byte listener_remove maparg matchadd matchfuzzypos min or popup_close popup_findinfo popup_locate popup_settext prompt_getprompt prop_add_list prop_type_add pum_getpos rand readfile reltimefloat remote_read repeat screenattr screenrow searchpair setbufline setcmdline setline setreg sha256 sign_getplaced sign_unplace slice sound_playfile sqrt str2nr strftime strpart strwidth swapname synstack tabpagewinnr tempname term_getansicolors term_getscrolled terminalprops term_setapi term_wait test_garbagecollect_soon test_null_blob test_null_list test_refcount test_void timer_stopall trunc uniq visualmode win_execute winheight win_move_separator winsaveview writefile 94 syn keyword vimFuncName contained and argv assert_fails assert_notmatch autocmd_delete browse bufloaded byteidx charclass chdir ch_log ch_sendexpr col copy debugbreak diff_hlID empty execute expandcmd filewritable float2nr foldclosedend funcref getbufoneline getcharpos getcmdscreenpos getcwd getftype getmatches getreg gettabwinvar getwinposy has_key histnr iconv inputlist invert items job_stop keys line2byte listener_remove maparg matchadd matchfuzzypos min or popup_close popup_findinfo popup_locate popup_settext prompt_getprompt prop_add_list prop_type_add pum_getpos rand readfile reltimefloat remote_read repeat screenattr screenrow searchpair setbufline setcmdline setline setreg sha256 sign_getplaced sign_unplace slice sound_playfile sqrt str2nr strftime strpart strwidth swapname synstack tabpagewinnr tempname term_getansicolors term_getscrolled terminalprops term_setapi term_wait test_garbagecollect_soon test_null_blob test_null_list test_refcount test_void timer_stopall trunc uniq visualmode win_execute winheight win_move_separator winsaveview writefile
94 syn keyword vimFuncName contained append asin assert_false assert_report autocmd_get browsedir bufname byteidxcomp charcol ch_evalexpr ch_logfile ch_sendraw complete cos deepcopy digraph_get environ exepath expr10 filter floor foldlevel function getbufvar getcharsearch getcmdtype getenv getimstatus getmousepos getreginfo gettagstack getwinvar haslocaldir hlexists indent inputrestore isabsolutepath job_getchannel join keytrans lispindent localtime mapcheck matchaddpos matchlist mkdir pathshorten popup_create popup_findpreview popup_menu popup_show prompt_setcallback prop_clear prop_type_change pumvisible range reduce reltimestr remote_send resolve screenchar screenstring searchpairpos setbufvar setcmdpos setloclist settabvar shellescape sign_jump sign_unplacelist sort sound_stop srand strcharlen strgetchar strptime submatch synconcealed system tagfiles term_dumpdiff term_getattr term_getsize term_list term_setkill test_alloc_fail test_getvalue test_null_channel test_null_partial test_setmouse timer_info tolower type utf16idx wildmenumode win_findbuf win_id2tabwin win_move_statusline win_screenpos xor 95 syn keyword vimFuncName contained append asin assert_false assert_report autocmd_get browsedir bufname byteidxcomp charcol ch_evalexpr ch_logfile ch_sendraw complete cos deepcopy digraph_get environ exepath expr10 filter floor foldlevel function getbufvar getcharsearch getcmdtype getenv getimstatus getmousepos getreginfo gettagstack getwinvar haslocaldir hlexists indent inputrestore isabsolutepath job_getchannel join keytrans lispindent localtime mapcheck matchaddpos matchlist mkdir pathshorten popup_create popup_findpreview popup_menu popup_show prompt_setcallback prop_clear prop_type_change pumvisible range reduce reltimestr remote_send resolve screenchar screenstring searchpairpos setbufvar setcmdpos setloclist settabvar shellescape sign_jump sign_unplacelist sort sound_stop srand strcharlen strgetchar strptime submatch synconcealed system tagfiles term_dumpdiff term_getattr term_getsize term_list term_setkill test_alloc_fail test_getvalue test_null_channel test_null_partial test_setmouse timer_info tolower type utf16idx wildmenumode win_findbuf win_id2tabwin win_move_statusline win_screenpos xor
95 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 96 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
96 97
97 "--- syntax here and above generated by mkvimvim --- 98 "--- syntax here and above generated by mkvimvim ---
99
100 syn keyword vimCommand contained 2mat[ch] 3mat[ch]
101
98 " Special Vim Highlighting (not automatic) {{{1 102 " Special Vim Highlighting (not automatic) {{{1
99 103
100 " Set up folding commands for this syntax highlighting file {{{2 104 " Set up folding commands for this syntax highlighting file {{{2
101 if exists("g:vimsyn_folding") && g:vimsyn_folding =~# '[afhlmpPrt]' 105 if exists("g:vimsyn_folding") && g:vimsyn_folding =~# '[afhlmpPrt]'
102 if g:vimsyn_folding =~# 'a' 106 if g:vimsyn_folding =~# 'a'
187 syn match vimNumber '0[0-7]\+' skipwhite nextgroup=vimGlobal,vimSubst,vimCommand,vimComment,vim9Comment 191 syn match vimNumber '0[0-7]\+' skipwhite nextgroup=vimGlobal,vimSubst,vimCommand,vimComment,vim9Comment
188 syn match vimNumber '0[bB][01]\+' skipwhite nextgroup=vimGlobal,vimSubst,vimCommand,vimComment,vim9Comment 192 syn match vimNumber '0[bB][01]\+' skipwhite nextgroup=vimGlobal,vimSubst,vimCommand,vimComment,vim9Comment
189 193
190 " All vimCommands are contained by vimIsCommand. {{{2 194 " All vimCommands are contained by vimIsCommand. {{{2
191 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 195 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
192 syn match vimIsCommand "\<\h\w*\>" contains=vimCommand 196 syn match vimIsCommand "\<\%(\h\w*\|[23]mat\%[ch]\)\>" contains=vimCommand
193 syn match vimVar contained "\<\h[a-zA-Z0-9#_]*\>" 197 syn match vimVar contained "\<\h[a-zA-Z0-9#_]*\>"
194 syn match vimVar "\<[bwglstav]:\h[a-zA-Z0-9#_]*\>" 198 syn match vimVar "\<[bwglstav]:\h[a-zA-Z0-9#_]*\>"
195 syn match vimVar "\s\zs&\%([lg]:\)\=\a\+\>" 199 syn match vimVar "\s\zs&\%([lg]:\)\=\a\+\>"
196 syn match vimVar "\s\zs&t_\S[a-zA-Z0-9]\>" 200 syn match vimVar "\s\zs&t_\S[a-zA-Z0-9]\>"
197 syn match vimVar "\s\zs&t_k;" 201 syn match vimVar "\s\zs&t_k;"