diff --git a/runtime/doc/syntax.txt b/runtime/doc/syntax.txt index db332fcd99..1dd486bb35 100644 --- a/runtime/doc/syntax.txt +++ b/runtime/doc/syntax.txt @@ -1,4 +1,4 @@ -*syntax.txt* For Vim version 9.1. Last change: 2025 Oct 08 +*syntax.txt* For Vim version 9.1. Last change: 2025 Oct 09 VIM REFERENCE MANUAL by Bram Moolenaar @@ -6501,7 +6501,7 @@ that Setup / Font / Enable Bold is NOT enabled. ============================================================================== -20. When syntax is slow *:syntime* +20. When syntax is slow *:synti* *:syntime* This is aimed at authors of a syntax file. @@ -6521,15 +6521,15 @@ this sequence: > This will display a list of syntax patterns that were used, sorted by the time it took to match them against the text. -:syntime on Start measuring syntax times. This will add some +:synti[me] on Start measuring syntax times. This will add some overhead to compute the time spent on syntax pattern matching. -:syntime off Stop measuring syntax times. +:synti[me] off Stop measuring syntax times. -:syntime clear Set all the counters to zero, restart measuring. +:synti[me] clear Set all the counters to zero, restart measuring. -:syntime report Show the syntax items used since ":syntime on" in the +:synti[me] report Show the syntax items used since ":syntime on" in the current window. Use a wider display to see more of the output. diff --git a/runtime/doc/tags b/runtime/doc/tags index 4f4a24d77e..28d21de707 100644 --- a/runtime/doc/tags +++ b/runtime/doc/tags @@ -3524,6 +3524,7 @@ $quote eval.txt /*$quote* :syntax-off syntax.txt /*:syntax-off* :syntax-on syntax.txt /*:syntax-on* :syntax-reset syntax.txt /*:syntax-reset* +:synti syntax.txt /*:synti* :syntime syntax.txt /*:syntime* :t change.txt /*:t* :tN tagsrch.txt /*:tN* diff --git a/runtime/syntax/generator/gen_syntax_vim.vim b/runtime/syntax/generator/gen_syntax_vim.vim index 9ecab6e7ea..57b89c8b5c 100644 --- a/runtime/syntax/generator/gen_syntax_vim.vim +++ b/runtime/syntax/generator/gen_syntax_vim.vim @@ -399,6 +399,7 @@ function s:get_vim_command_type(cmd_name) substitute swapname syntax + syntime tcl tcldo tclfile diff --git a/runtime/syntax/generator/vim.vim.base b/runtime/syntax/generator/vim.vim.base index 1f86d81c2c..722766eb46 100644 --- a/runtime/syntax/generator/vim.vim.base +++ b/runtime/syntax/generator/vim.vim.base @@ -2,7 +2,7 @@ " Language: Vim script " Maintainer: Hirohito Higashi " Doug Kearns -" Last Change: 2025 Oct 08 +" Last Change: 2025 Oct 09 " Former Maintainer: Charles E. Campbell " DO NOT CHANGE DIRECTLY. @@ -246,7 +246,7 @@ syn match vimNumber '\<0z\%(\x\x\)\+\%(\.\%(\x\x\)\+\)*' skipwhite nextgroup=@vi syn case match " All vimCommands are contained by vimIsCommand. {{{2 -syn cluster vimCmdList contains=vimAbb,vimAddress,vimAutocmd,vimAugroup,vimBehave,vimCall,vimCatch,vimCommandModifier,vimConst,vimDoautocmd,vimDebuggreedy,vimDef,vimDefFold,vimDefer,vimDelcommand,vimDelFunction,@vimEcho,vimElse,vimEnddef,vimEndfunction,vimEndif,vimEval,vimExecute,vimIsCommand,vimExtCmd,vimExFilter,vimExMark,vimFiletype,vimFor,vimFunction,vimFunctionFold,vimGrep,vimGrepAdd,vimGlobal,vimHelpgrep,vimHighlight,vimImport,vimLet,vimLoadkeymap,vimLockvar,vimMake,vimMap,vimMark,vimMatch,vimNotFunc,vimNormal,vimProfdel,vimProfile,vimRedir,vimSet,vimSleep,vimSort,vimSyntax,vimSynColor,vimSynLink,vimTerminal,vimThrow,vimUniq,vimUnlet,vimUnlockvar,vimUnmap,vimUserCmd,vimVimgrep,vimVimgrepadd,vimWincmd,vimMenu,vimMenutranslate,@vim9CmdList,@vimExUserCmdList,vimLua,vimMzScheme,vimPerl,vimPython,vimPython3,vimPythonX,vimRuby,vimTcl +syn cluster vimCmdList contains=vimAbb,vimAddress,vimAutocmd,vimAugroup,vimBehave,vimCall,vimCatch,vimCommandModifier,vimConst,vimDoautocmd,vimDebuggreedy,vimDef,vimDefFold,vimDefer,vimDelcommand,vimDelFunction,@vimEcho,vimElse,vimEnddef,vimEndfunction,vimEndif,vimEval,vimExecute,vimIsCommand,vimExtCmd,vimExFilter,vimExMark,vimFiletype,vimFor,vimFunction,vimFunctionFold,vimGrep,vimGrepAdd,vimGlobal,vimHelpgrep,vimHighlight,vimImport,vimLet,vimLoadkeymap,vimLockvar,vimMake,vimMap,vimMark,vimMatch,vimNotFunc,vimNormal,vimProfdel,vimProfile,vimRedir,vimSet,vimSleep,vimSort,vimSyntax,vimSyntime,vimSynColor,vimSynLink,vimTerminal,vimThrow,vimUniq,vimUnlet,vimUnlockvar,vimUnmap,vimUserCmd,vimVimgrep,vimVimgrepadd,vimWincmd,vimMenu,vimMenutranslate,@vim9CmdList,@vimExUserCmdList,vimLua,vimMzScheme,vimPerl,vimPython,vimPython3,vimPythonX,vimRuby,vimTcl syn cluster vim9CmdList contains=vim9Abstract,vim9Class,vim9Const,vim9Enum,vim9Export,vim9Final,vim9For,vim9Interface,vim9Type,vim9Var syn match vimCmdSep "\\\@1" skipwhite nextgroup=vimSyncGroup syn match vimSyncGroup contained "\<\h\w*\>" skipwhite nextgroup=vimSynRegPat,vimSyncNone syn keyword vimSyncNone contained NONE +" Syntime: {{{2 +" ======= +syn keyword vimSyntimeArg contained on off clear report skipwhite nextgroup=vimComment,vim9Comment,vimCmdSep +syn keyword vimSyntime synti[me] skipwhite nextgroup=vimSyntimeArg " Additional IsCommand: here by reasons of precedence {{{2 " ==================== syn match vimIsCommand "\s*\a\+" transparent contains=vimCommand,vimNotation @@ -2560,6 +2564,8 @@ if !exists("skip_vim_syntax_inits") hi def link vimSynSpell Type hi def link vimSyntax vimCommand hi def link vimSynType vimSpecial + hi def link vimSyntime vimCommand + hi def link vimSyntimeArg vimSpecial hi def link vimTcl vimCommand hi def link vimTerminal vimCommand hi def link vimTerminalContinue vimContinue diff --git a/runtime/syntax/testdir/dumps/vim_ex_syntime_00.dump b/runtime/syntax/testdir/dumps/vim_ex_syntime_00.dump new file mode 100644 index 0000000000..cb145648f8 --- /dev/null +++ b/runtime/syntax/testdir/dumps/vim_ex_syntime_00.dump @@ -0,0 +1,20 @@ +>"+0#0000e05#ffffff0| |V|i|m| |:|s|y|n|t|i|m|e| |c|o|m@1|a|n|d| +0#0000000&@52 +@75 +@75 +|s+0#af5f00255&|y|n|t|i|m|e| +0#0000000&|o+0#00e0003&|n| +0#0000000&@64 +|s+0#af5f00255&|y|n|t|i|m|e| +0#0000000&|o+0#00e0003&|f@1| +0#0000000&@63 +|s+0#af5f00255&|y|n|t|i|m|e| +0#0000000&|c+0#00e0003&|l|e|a|r| +0#0000000&@61 +|s+0#af5f00255&|y|n|t|i|m|e| +0#0000000&|r+0#00e0003&|e|p|o|r|t| +0#0000000&@60 +@75 +|s+0#af5f00255&|y|n|t|i|m|e| +0#0000000&|o+0#00e0003&|n| +0#0000000&||| |r+0#af5f00255&|e|d|r|a|w|!| +0#0000000&||| |s+0#af5f00255&|y|n|t|i|m|e| +0#0000000&|r+0#00e0003&|e|p|o|r|t| +0#0000000&@37 +@75 +|s+0#af5f00255&|y|n|t|i|m|e| +0#0000000&|o+0#00e0003&|n| +0#0000000&@4||| |e+0#af5f00255&|c|h|o| +0#0000000&|"+0#e000002&|.@2|"| +0#0000000&@47 +|s+0#af5f00255&|y|n|t|i|m|e| +0#0000000&|o+0#00e0003&|n| +0#0000000&@4|"+0#0000e05&| |c|o|m@1|e|n|t| +0#0000000&@50 +|s+0#af5f00255&|y|n|t|i|m|e| +0#0000000&|o+0#00e0003&|f@1| +0#0000000&@3||| |e+0#af5f00255&|c|h|o| +0#0000000&|"+0#e000002&|.@2|"| +0#0000000&@47 +|s+0#af5f00255&|y|n|t|i|m|e| +0#0000000&|o+0#00e0003&|f@1| +0#0000000&@3|"+0#0000e05&| |c|o|m@1|e|n|t| +0#0000000&@50 +|s+0#af5f00255&|y|n|t|i|m|e| +0#0000000&|c+0#00e0003&|l|e|a|r| +0#0000000&@1||| |e+0#af5f00255&|c|h|o| +0#0000000&|"+0#e000002&|.@2|"| +0#0000000&@47 +|s+0#af5f00255&|y|n|t|i|m|e| +0#0000000&|c+0#00e0003&|l|e|a|r| +0#0000000&@1|"+0#0000e05&| |c|o|m@1|e|n|t| +0#0000000&@50 +|s+0#af5f00255&|y|n|t|i|m|e| +0#0000000&|r+0#00e0003&|e|p|o|r|t| +0#0000000&||| |e+0#af5f00255&|c|h|o| +0#0000000&|"+0#e000002&|.@2|"| +0#0000000&@47 +|s+0#af5f00255&|y|n|t|i|m|e| +0#0000000&|r+0#00e0003&|e|p|o|r|t| +0#0000000&|"+0#0000e05&| |c|o|m@1|e|n|t| +0#0000000&@50 +@75 +@57|1|,|1| @10|T|o|p| diff --git a/runtime/syntax/testdir/dumps/vim_ex_syntime_01.dump b/runtime/syntax/testdir/dumps/vim_ex_syntime_01.dump new file mode 100644 index 0000000000..732b2e7673 --- /dev/null +++ b/runtime/syntax/testdir/dumps/vim_ex_syntime_01.dump @@ -0,0 +1,20 @@ +|s+0#af5f00255#ffffff0|y|n|t|i|m|e| +0#0000000&|o+0#00e0003&|f@1| +0#0000000&@3|"+0#0000e05&| |c|o|m@1|e|n|t| +0#0000000&@50 +|s+0#af5f00255&|y|n|t|i|m|e| +0#0000000&|c+0#00e0003&|l|e|a|r| +0#0000000&@1||| |e+0#af5f00255&|c|h|o| +0#0000000&|"+0#e000002&|.@2|"| +0#0000000&@47 +|s+0#af5f00255&|y|n|t|i|m|e| +0#0000000&|c+0#00e0003&|l|e|a|r| +0#0000000&@1|"+0#0000e05&| |c|o|m@1|e|n|t| +0#0000000&@50 +|s+0#af5f00255&|y|n|t|i|m|e| +0#0000000&|r+0#00e0003&|e|p|o|r|t| +0#0000000&||| |e+0#af5f00255&|c|h|o| +0#0000000&|"+0#e000002&|.@2|"| +0#0000000&@47 +|s+0#af5f00255&|y|n|t|i|m|e| +0#0000000&|r+0#00e0003&|e|p|o|r|t| +0#0000000&|"+0#0000e05&| |c|o|m@1|e|n|t| +0#0000000&@50 +> @74 +@75 +|d+0#af5f00255&|e|f| +0#0000000&|V|i|m|9|C|o|n|t|e|x|t|(+0#e000e06&|)| +0#0000000&@57 +@2|s+0#af5f00255&|y|n|t|i|m|e| +0#0000000&|o+0#00e0003&|n| +0#0000000&@62 +@2|s+0#af5f00255&|y|n|t|i|m|e| +0#0000000&|o+0#00e0003&|f@1| +0#0000000&@61 +@2|s+0#af5f00255&|y|n|t|i|m|e| +0#0000000&|c+0#00e0003&|l|e|a|r| +0#0000000&@59 +@2|s+0#af5f00255&|y|n|t|i|m|e| +0#0000000&|r+0#00e0003&|e|p|o|r|t| +0#0000000&@58 +@75 +@2|s+0#af5f00255&|y|n|t|i|m|e| +0#0000000&|o+0#00e0003&|n| +0#0000000&||| |r+0#af5f00255&|e|d|r|a|w|!| +0#0000000&||| |s+0#af5f00255&|y|n|t|i|m|e| +0#0000000&|r+0#00e0003&|e|p|o|r|t| +0#0000000&@35 +@75 +@2|s+0#af5f00255&|y|n|t|i|m|e| +0#0000000&|o+0#00e0003&|n| +0#0000000&@4||| |e+0#af5f00255&|c|h|o| +0#0000000&|"+0#e000002&|.@2|"| +0#0000000&@45 +@2|s+0#af5f00255&|y|n|t|i|m|e| +0#0000000&|o+0#00e0003&|n| +0#0000000&@4|#+0#0000e05&| |c|o|m@1|e|n|t| +0#0000000&@48 +@2|s+0#af5f00255&|y|n|t|i|m|e| +0#0000000&|o+0#00e0003&|f@1| +0#0000000&@3||| |e+0#af5f00255&|c|h|o| +0#0000000&|"+0#e000002&|.@2|"| +0#0000000&@45 +@2|s+0#af5f00255&|y|n|t|i|m|e| +0#0000000&|o+0#00e0003&|f@1| +0#0000000&@3|#+0#0000e05&| |c|o|m@1|e|n|t| +0#0000000&@48 +@57|1|9|,|0|-|1| @7|6|8|%| diff --git a/runtime/syntax/testdir/dumps/vim_ex_syntime_02.dump b/runtime/syntax/testdir/dumps/vim_ex_syntime_02.dump new file mode 100644 index 0000000000..3badec4e5b --- /dev/null +++ b/runtime/syntax/testdir/dumps/vim_ex_syntime_02.dump @@ -0,0 +1,20 @@ +| +0&#ffffff0@1|s+0#af5f00255&|y|n|t|i|m|e| +0#0000000&|o+0#00e0003&|f@1| +0#0000000&@3|#+0#0000e05&| |c|o|m@1|e|n|t| +0#0000000&@48 +@2|s+0#af5f00255&|y|n|t|i|m|e| +0#0000000&|c+0#00e0003&|l|e|a|r| +0#0000000&@1||| |e+0#af5f00255&|c|h|o| +0#0000000&|"+0#e000002&|.@2|"| +0#0000000&@45 +@2|s+0#af5f00255&|y|n|t|i|m|e| +0#0000000&|c+0#00e0003&|l|e|a|r| +0#0000000&@1|#+0#0000e05&| |c|o|m@1|e|n|t| +0#0000000&@48 +@2|s+0#af5f00255&|y|n|t|i|m|e| +0#0000000&|r+0#00e0003&|e|p|o|r|t| +0#0000000&||| |e+0#af5f00255&|c|h|o| +0#0000000&|"+0#e000002&|.@2|"| +0#0000000&@45 +@2|s+0#af5f00255&|y|n|t|i|m|e| +0#0000000&|r+0#00e0003&|e|p|o|r|t| +0#0000000&|#+0#0000e05&| |c|o|m@1|e|n|t| +0#0000000&@48 +>e+0#af5f00255&|n|d@1|e|f| +0#0000000&@68 +@75 +|~+0#4040ff13&| @73 +|~| @73 +|~| @73 +|~| @73 +|~| @73 +|~| @73 +|~| @73 +|~| @73 +|~| @73 +|~| @73 +|~| @73 +|~| @73 +| +0#0000000&@56|3|7|,|1| @9|B|o|t| diff --git a/runtime/syntax/testdir/input/vim_ex_syntime.vim b/runtime/syntax/testdir/input/vim_ex_syntime.vim new file mode 100644 index 0000000000..b085480532 --- /dev/null +++ b/runtime/syntax/testdir/input/vim_ex_syntime.vim @@ -0,0 +1,38 @@ +" Vim :syntime command + + +syntime on +syntime off +syntime clear +syntime report + +syntime on | redraw! | syntime report + +syntime on | echo "..." +syntime on " comment +syntime off | echo "..." +syntime off " comment +syntime clear | echo "..." +syntime clear " comment +syntime report | echo "..." +syntime report " comment + + +def Vim9Context() + syntime on + syntime off + syntime clear + syntime report + + syntime on | redraw! | syntime report + + syntime on | echo "..." + syntime on # comment + syntime off | echo "..." + syntime off # comment + syntime clear | echo "..." + syntime clear # comment + syntime report | echo "..." + syntime report # comment +enddef + diff --git a/runtime/syntax/vim.vim b/runtime/syntax/vim.vim index bbfbc6397a..05d8454f07 100644 --- a/runtime/syntax/vim.vim +++ b/runtime/syntax/vim.vim @@ -2,7 +2,7 @@ " Language: Vim script " Maintainer: Hirohito Higashi " Doug Kearns -" Last Change: 2025 Oct 08 +" Last Change: 2025 Oct 09 " Former Maintainer: Charles E. Campbell " DO NOT CHANGE DIRECTLY. @@ -37,8 +37,8 @@ syn cluster vimCommentGroup contains=vimTodo,@Spell syn keyword vimCommand contained al[l] ar[gs] arga[dd] argd[elete] argdo argded[upe] arge[dit] argg[lobal] argl[ocal] argu[ment] as[cii] b[uffer] bN[ext] ba[ll] bad[d] balt bd[elete] bf[irst] bl[ast] bm[odified] bn[ext] bp[revious] br[ewind] brea[k] breaka[dd] breakd[el] breakl[ist] bro[wse] buffers bufd[o] bun[load] bw[ipeout] c[hange] cN[ext] cNf[ile] cabo[ve] cad[dbuffer] cadde[xpr] caddf[ile] caf[ter] cb[uffer] cbe[fore] cbel[ow] cbo[ttom] cc ccl[ose] cd cdo ce[nter] cex[pr] cf[ile] cfd[o] cfir[st] cg[etfile] cgetb[uffer] cgete[xpr] changes che[ckpath] checkt[ime] chi[story] cl[ist] clip[reset] cla[st] clo[se] cle[arjumps] cn[ext] cnew[er] cnf[ile] col[der] colo[rscheme] comc[lear] comp[iler] con[tinue] conf[irm] cons[t] cope[n] cp[revious] cpf[ile] cq[uit] nextgroup=vimBang syn keyword vimCommand contained cr[ewind] cs[cope] cst[ag] cw[indow] delm[arks] deb[ug] defc[ompile] di[splay] dif[fupdate] diffg[et] diffo[ff] diffp[atch] diffpu[t] diffs[plit] difft[his] dig[raphs] disa[ssemble] dj[ump] dli[st] dr[op] ds[earch] dsp[lit] e[dit] ea[rlier] em[enu] endfo[r] endt[ry] endw[hile] ene[w] ex exi[t] exu[sage] f[ile] files fin[d] fina[lly] fini[sh] fir[st] fix[del] fo[ld] foldc[lose] foldd[oopen] folddoc[losed] foldo[pen] g[lobal] go[to] gu[i] gv[im] h[elp] helpc[lose] helpf[ind] helpt[ags] ha[rdcopy] hi[ghlight] his[tory] ij[ump] il[ist] int[ro] ip[ut] is[earch] isp[lit] ju[mps] l[ist] lN[ext] lNf[ile] la[st] lab[ove] lan[guage] lad[dexpr] laddb[uffer] laddf[ile] laf[ter] lat[er] lb[uffer] lbe[fore] lbel[ow] lbo[ttom] lc[d] lch[dir] nextgroup=vimBang syn keyword vimCommand contained lcl[ose] lcs[cope] ld[o] le[ft] lex[pr] lf[ile] lfd[o] lfir[st] lg[etfile] lgetb[uffer] lgete[xpr] lgr[ep] lgrepa[dd] lhi[story] ll lla[st] lli[st] lmak[e] lne[xt] lnew[er] lnf[ile] lo[adview] lockv[ar] lol[der] lop[en] lp[revious] lpf[ile] lr[ewind] lt[ag] lw[indow] ls m[ove] marks menut[ranslate] mes[sages] mk[exrc] mks[ession] mksp[ell] mkv[imrc] mkvie[w] mod[e] n[ext] nb[key] nbc[lose] nbs[tart] noh[lsearch] nu[mber] o[pen] ol[dfiles] on[ly] opt[ions] ow[nsyntax] p[rint] pa[ckadd] packl[oadall] pb[uffer] pc[lose] ped[it] po[p] pp[op] pre[serve] prev[ious] pro[mptfind] promptr[epl] ps[earch] pt[ag] ptN[ext] ptf[irst] ptj[ump] ptl[ast] ptn[ext] ptp[revious] ptr[ewind] pts[elect] pu[t] pw[d] q[uit] quita[ll] qa[ll] r[ead] rec[over] nextgroup=vimBang -syn keyword vimCommand contained red[o] redr[aw] redraws[tatus] redrawt[abline] redrawtabp[anel] reg[isters] res[ize] ret[ab] rew[ind] ri[ght] ru[ntime] rub[y] rubyd[o] rubyf[ile] rund[o] rv[iminfo] sN[ext] sa[rgument] sal[l] sav[eas] sb[uffer] sbN[ext] sba[ll] sbf[irst] sbl[ast] sbm[odified] sbn[ext] sbp[revious] sbr[ewind] scr[iptnames] scripte[ncoding] scriptv[ersion] scs[cope] setf[iletype] sf[ind] sfir[st] sh[ell] sim[alt] sig[n] sla[st] sn[ext] so[urce] spe[llgood] spelld[ump] spelli[nfo] spellr[epall] spellra[re] spellu[ndo] spellw[rong] spr[evious] sre[wind] st[op] sta[g] star[tinsert] startg[replace] startr[eplace] stopi[nsert] stj[ump] sts[elect] sun[hide] sus[pend] sv[iew] synti[me] sync[bind] smi[le] t tN[ext] ta[g] tags tabc[lose] tabd[o] tabe[dit] nextgroup=vimBang -syn keyword vimCommand contained tabf[ind] tabfir[st] tabm[ove] tabl[ast] tabn[ext] tabnew tabo[nly] tabp[revious] tabN[ext] tabr[ewind] tabs tc[d] tch[dir] te[aroff] tf[irst] tj[ump] tl[ast] tn[ext] tp[revious] tr[ewind] try ts[elect] u[ndo] undoj[oin] undol[ist] unh[ide] unlo[ckvar] up[date] v[global] ve[rsion] vi[sual] vie[w] viu[sage] vne[w] vs[plit] w[rite] wN[ext] wa[ll] wi[nsize] wind[o] winp[os] wl[restore] wn[ext] wp[revious] wq wqa[ll] wu[ndo] wv[iminfo] x[it] xa[ll] xr[estore] y[ank] z dl dell delel deletl deletel dp dep delp delep deletp deletep a i nextgroup=vimBang +syn keyword vimCommand contained red[o] redr[aw] redraws[tatus] redrawt[abline] redrawtabp[anel] reg[isters] res[ize] ret[ab] rew[ind] ri[ght] ru[ntime] rub[y] rubyd[o] rubyf[ile] rund[o] rv[iminfo] sN[ext] sa[rgument] sal[l] sav[eas] sb[uffer] sbN[ext] sba[ll] sbf[irst] sbl[ast] sbm[odified] sbn[ext] sbp[revious] sbr[ewind] scr[iptnames] scripte[ncoding] scriptv[ersion] scs[cope] setf[iletype] sf[ind] sfir[st] sh[ell] sim[alt] sig[n] sla[st] sn[ext] so[urce] spe[llgood] spelld[ump] spelli[nfo] spellr[epall] spellra[re] spellu[ndo] spellw[rong] spr[evious] sre[wind] st[op] sta[g] star[tinsert] startg[replace] startr[eplace] stopi[nsert] stj[ump] sts[elect] sun[hide] sus[pend] sv[iew] sync[bind] smi[le] t tN[ext] ta[g] tags tabc[lose] tabd[o] tabe[dit] tabf[ind] nextgroup=vimBang +syn keyword vimCommand contained tabfir[st] tabm[ove] tabl[ast] tabn[ext] tabnew tabo[nly] tabp[revious] tabN[ext] tabr[ewind] tabs tc[d] tch[dir] te[aroff] tf[irst] tj[ump] tl[ast] tn[ext] tp[revious] tr[ewind] try ts[elect] u[ndo] undoj[oin] undol[ist] unh[ide] unlo[ckvar] up[date] v[global] ve[rsion] vi[sual] vie[w] viu[sage] vne[w] vs[plit] w[rite] wN[ext] wa[ll] wi[nsize] wind[o] winp[os] wl[restore] wn[ext] wp[revious] wq wqa[ll] wu[ndo] wv[iminfo] x[it] xa[ll] xr[estore] y[ank] z dl dell delel deletl deletel dp dep delp delep deletp deletep a i nextgroup=vimBang " Lower priority :syn-match to allow for :command/function() distinction syn match vimCommand "\" nextgroup=vimBang @@ -300,7 +300,7 @@ syn match vimNumber '\<0z\%(\x\x\)\+\%(\.\%(\x\x\)\+\)*' skipwhite nextgroup=@vi syn case match " All vimCommands are contained by vimIsCommand. {{{2 -syn cluster vimCmdList contains=vimAbb,vimAddress,vimAutocmd,vimAugroup,vimBehave,vimCall,vimCatch,vimCommandModifier,vimConst,vimDoautocmd,vimDebuggreedy,vimDef,vimDefFold,vimDefer,vimDelcommand,vimDelFunction,@vimEcho,vimElse,vimEnddef,vimEndfunction,vimEndif,vimEval,vimExecute,vimIsCommand,vimExtCmd,vimExFilter,vimExMark,vimFiletype,vimFor,vimFunction,vimFunctionFold,vimGrep,vimGrepAdd,vimGlobal,vimHelpgrep,vimHighlight,vimImport,vimLet,vimLoadkeymap,vimLockvar,vimMake,vimMap,vimMark,vimMatch,vimNotFunc,vimNormal,vimProfdel,vimProfile,vimRedir,vimSet,vimSleep,vimSort,vimSyntax,vimSynColor,vimSynLink,vimTerminal,vimThrow,vimUniq,vimUnlet,vimUnlockvar,vimUnmap,vimUserCmd,vimVimgrep,vimVimgrepadd,vimWincmd,vimMenu,vimMenutranslate,@vim9CmdList,@vimExUserCmdList,vimLua,vimMzScheme,vimPerl,vimPython,vimPython3,vimPythonX,vimRuby,vimTcl +syn cluster vimCmdList contains=vimAbb,vimAddress,vimAutocmd,vimAugroup,vimBehave,vimCall,vimCatch,vimCommandModifier,vimConst,vimDoautocmd,vimDebuggreedy,vimDef,vimDefFold,vimDefer,vimDelcommand,vimDelFunction,@vimEcho,vimElse,vimEnddef,vimEndfunction,vimEndif,vimEval,vimExecute,vimIsCommand,vimExtCmd,vimExFilter,vimExMark,vimFiletype,vimFor,vimFunction,vimFunctionFold,vimGrep,vimGrepAdd,vimGlobal,vimHelpgrep,vimHighlight,vimImport,vimLet,vimLoadkeymap,vimLockvar,vimMake,vimMap,vimMark,vimMatch,vimNotFunc,vimNormal,vimProfdel,vimProfile,vimRedir,vimSet,vimSleep,vimSort,vimSyntax,vimSyntime,vimSynColor,vimSynLink,vimTerminal,vimThrow,vimUniq,vimUnlet,vimUnlockvar,vimUnmap,vimUserCmd,vimVimgrep,vimVimgrepadd,vimWincmd,vimMenu,vimMenutranslate,@vim9CmdList,@vimExUserCmdList,vimLua,vimMzScheme,vimPerl,vimPython,vimPython3,vimPythonX,vimRuby,vimTcl syn cluster vim9CmdList contains=vim9Abstract,vim9Class,vim9Const,vim9Enum,vim9Export,vim9Final,vim9For,vim9Interface,vim9Type,vim9Var syn match vimCmdSep "\\\@1" skipwhite nextgroup=vimSyncGroup syn match vimSyncGroup contained "\<\h\w*\>" skipwhite nextgroup=vimSynRegPat,vimSyncNone syn keyword vimSyncNone contained NONE +" Syntime: {{{2 +" ======= +syn keyword vimSyntimeArg contained on off clear report skipwhite nextgroup=vimComment,vim9Comment,vimCmdSep +syn keyword vimSyntime synti[me] skipwhite nextgroup=vimSyntimeArg " Additional IsCommand: here by reasons of precedence {{{2 " ==================== syn match vimIsCommand "\s*\a\+" transparent contains=vimCommand,vimNotation @@ -2622,6 +2626,8 @@ if !exists("skip_vim_syntax_inits") hi def link vimSynSpell Type hi def link vimSyntax vimCommand hi def link vimSynType vimSpecial + hi def link vimSyntime vimCommand + hi def link vimSyntimeArg vimSpecial hi def link vimTcl vimCommand hi def link vimTerminal vimCommand hi def link vimTerminalContinue vimContinue