Skip to content

Commit 7dba04f

Browse files
dkearnschrisbra
authored andcommitted
runtime(doc,vim): Update base syntax, match full :syntime command
- Use the optional tail command-name spec at :help :syntime. - Match full :syntime command and highlight args. Signed-off-by: Doug Kearns <dougkearns@gmail.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
1 parent 08c39d2 commit 7dba04f

File tree

9 files changed

+124
-12
lines changed

9 files changed

+124
-12
lines changed

runtime/doc/syntax.txt

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*syntax.txt* For Vim version 9.1. Last change: 2025 Oct 08
1+
*syntax.txt* For Vim version 9.1. Last change: 2025 Oct 09
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -6501,7 +6501,7 @@ that Setup / Font / Enable Bold is NOT enabled.
65016501

65026502

65036503
==============================================================================
6504-
20. When syntax is slow *:syntime*
6504+
20. When syntax is slow *:synti* *:syntime*
65056505

65066506
This is aimed at authors of a syntax file.
65076507

@@ -6521,15 +6521,15 @@ this sequence: >
65216521
This will display a list of syntax patterns that were used, sorted by the time
65226522
it took to match them against the text.
65236523

6524-
:syntime on Start measuring syntax times. This will add some
6524+
:synti[me] on Start measuring syntax times. This will add some
65256525
overhead to compute the time spent on syntax pattern
65266526
matching.
65276527

6528-
:syntime off Stop measuring syntax times.
6528+
:synti[me] off Stop measuring syntax times.
65296529

6530-
:syntime clear Set all the counters to zero, restart measuring.
6530+
:synti[me] clear Set all the counters to zero, restart measuring.
65316531

6532-
:syntime report Show the syntax items used since ":syntime on" in the
6532+
:synti[me] report Show the syntax items used since ":syntime on" in the
65336533
current window. Use a wider display to see more of
65346534
the output.
65356535

runtime/doc/tags

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3524,6 +3524,7 @@ $quote eval.txt /*$quote*
35243524
:syntax-off syntax.txt /*:syntax-off*
35253525
:syntax-on syntax.txt /*:syntax-on*
35263526
:syntax-reset syntax.txt /*:syntax-reset*
3527+
:synti syntax.txt /*:synti*
35273528
:syntime syntax.txt /*:syntime*
35283529
:t change.txt /*:t*
35293530
:tN tagsrch.txt /*:tN*

runtime/syntax/generator/gen_syntax_vim.vim

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -399,6 +399,7 @@ function s:get_vim_command_type(cmd_name)
399399
substitute
400400
swapname
401401
syntax
402+
syntime
402403
tcl
403404
tcldo
404405
tclfile

runtime/syntax/generator/vim.vim.base

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
" Language: Vim script
33
" Maintainer: Hirohito Higashi <h.east.727 ATMARK gmail.com>
44
" Doug Kearns <dougkearns@gmail.com>
5-
" Last Change: 2025 Oct 08
5+
" Last Change: 2025 Oct 09
66
" Former Maintainer: Charles E. Campbell
77

88
" DO NOT CHANGE DIRECTLY.
@@ -246,7 +246,7 @@ syn match vimNumber '\<0z\%(\x\x\)\+\%(\.\%(\x\x\)\+\)*' skipwhite nextgroup=@vi
246246
syn case match
247247

248248
" All vimCommands are contained by vimIsCommand. {{{2
249-
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
249+
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
250250
syn cluster vim9CmdList contains=vim9Abstract,vim9Class,vim9Const,vim9Enum,vim9Export,vim9Final,vim9For,vim9Interface,vim9Type,vim9Var
251251
syn match vimCmdSep "\\\@1<!|" skipwhite nextgroup=@vimCmdList,vimSubst1,@vimFunc
252252
syn match vimCmdSep ":\+" skipwhite nextgroup=@vimCmdList,vimSubst1
@@ -1791,6 +1791,10 @@ syn match vimSyncKey contained "\<groupthere\>" skipwhite nextgroup=vimSyncGroup
17911791
syn match vimSyncGroup contained "\<\h\w*\>" skipwhite nextgroup=vimSynRegPat,vimSyncNone
17921792
syn keyword vimSyncNone contained NONE
17931793

1794+
" Syntime: {{{2
1795+
" =======
1796+
syn keyword vimSyntimeArg contained on off clear report skipwhite nextgroup=vimComment,vim9Comment,vimCmdSep
1797+
syn keyword vimSyntime synti[me] skipwhite nextgroup=vimSyntimeArg
17941798
" Additional IsCommand: here by reasons of precedence {{{2
17951799
" ====================
17961800
syn match vimIsCommand "<Bar>\s*\a\+" transparent contains=vimCommand,vimNotation
@@ -2560,6 +2564,8 @@ if !exists("skip_vim_syntax_inits")
25602564
hi def link vimSynSpell Type
25612565
hi def link vimSyntax vimCommand
25622566
hi def link vimSynType vimSpecial
2567+
hi def link vimSyntime vimCommand
2568+
hi def link vimSyntimeArg vimSpecial
25632569
hi def link vimTcl vimCommand
25642570
hi def link vimTerminal vimCommand
25652571
hi def link vimTerminalContinue vimContinue
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
>"+0#0000e05#ffffff0| |V|i|m| |:|s|y|n|t|i|m|e| |c|o|m@1|a|n|d| +0#0000000&@52
2+
@75
3+
@75
4+
|s+0#af5f00255&|y|n|t|i|m|e| +0#0000000&|o+0#00e0003&|n| +0#0000000&@64
5+
|s+0#af5f00255&|y|n|t|i|m|e| +0#0000000&|o+0#00e0003&|f@1| +0#0000000&@63
6+
|s+0#af5f00255&|y|n|t|i|m|e| +0#0000000&|c+0#00e0003&|l|e|a|r| +0#0000000&@61
7+
|s+0#af5f00255&|y|n|t|i|m|e| +0#0000000&|r+0#00e0003&|e|p|o|r|t| +0#0000000&@60
8+
@75
9+
|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
10+
@75
11+
|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
12+
|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
13+
|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
14+
|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
15+
|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
16+
|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
17+
|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
18+
|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
19+
@75
20+
@57|1|,|1| @10|T|o|p|
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
|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
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&@47
3+
|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
4+
|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
5+
|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
6+
> @74
7+
@75
8+
|d+0#af5f00255&|e|f| +0#0000000&|V|i|m|9|C|o|n|t|e|x|t|(+0#e000e06&|)| +0#0000000&@57
9+
@2|s+0#af5f00255&|y|n|t|i|m|e| +0#0000000&|o+0#00e0003&|n| +0#0000000&@62
10+
@2|s+0#af5f00255&|y|n|t|i|m|e| +0#0000000&|o+0#00e0003&|f@1| +0#0000000&@61
11+
@2|s+0#af5f00255&|y|n|t|i|m|e| +0#0000000&|c+0#00e0003&|l|e|a|r| +0#0000000&@59
12+
@2|s+0#af5f00255&|y|n|t|i|m|e| +0#0000000&|r+0#00e0003&|e|p|o|r|t| +0#0000000&@58
13+
@75
14+
@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
15+
@75
16+
@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
17+
@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
18+
@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
19+
@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
20+
@57|1|9|,|0|-|1| @7|6|8|%|
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
| +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+
@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
3+
@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
4+
@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
5+
@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
6+
>e+0#af5f00255&|n|d@1|e|f| +0#0000000&@68
7+
@75
8+
|~+0#4040ff13&| @73
9+
|~| @73
10+
|~| @73
11+
|~| @73
12+
|~| @73
13+
|~| @73
14+
|~| @73
15+
|~| @73
16+
|~| @73
17+
|~| @73
18+
|~| @73
19+
|~| @73
20+
| +0#0000000&@56|3|7|,|1| @9|B|o|t|
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
" Vim :syntime command
2+
3+
4+
syntime on
5+
syntime off
6+
syntime clear
7+
syntime report
8+
9+
syntime on | redraw! | syntime report
10+
11+
syntime on | echo "..."
12+
syntime on " comment
13+
syntime off | echo "..."
14+
syntime off " comment
15+
syntime clear | echo "..."
16+
syntime clear " comment
17+
syntime report | echo "..."
18+
syntime report " comment
19+
20+
21+
def Vim9Context()
22+
syntime on
23+
syntime off
24+
syntime clear
25+
syntime report
26+
27+
syntime on | redraw! | syntime report
28+
29+
syntime on | echo "..."
30+
syntime on # comment
31+
syntime off | echo "..."
32+
syntime off # comment
33+
syntime clear | echo "..."
34+
syntime clear # comment
35+
syntime report | echo "..."
36+
syntime report # comment
37+
enddef
38+

runtime/syntax/vim.vim

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
" Language: Vim script
33
" Maintainer: Hirohito Higashi <h.east.727 ATMARK gmail.com>
44
" Doug Kearns <dougkearns@gmail.com>
5-
" Last Change: 2025 Oct 08
5+
" Last Change: 2025 Oct 09
66
" Former Maintainer: Charles E. Campbell
77

88
" DO NOT CHANGE DIRECTLY.
@@ -37,8 +37,8 @@ syn cluster vimCommentGroup contains=vimTodo,@Spell
3737
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
3838
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
3939
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
40-
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
41-
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
40+
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
41+
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
4242

4343
" Lower priority :syn-match to allow for :command/function() distinction
4444
syn match vimCommand "\<chd\%[ir]\>" nextgroup=vimBang
@@ -300,7 +300,7 @@ syn match vimNumber '\<0z\%(\x\x\)\+\%(\.\%(\x\x\)\+\)*' skipwhite nextgroup=@vi
300300
syn case match
301301

302302
" All vimCommands are contained by vimIsCommand. {{{2
303-
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
303+
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
304304
syn cluster vim9CmdList contains=vim9Abstract,vim9Class,vim9Const,vim9Enum,vim9Export,vim9Final,vim9For,vim9Interface,vim9Type,vim9Var
305305
syn match vimCmdSep "\\\@1<!|" skipwhite nextgroup=@vimCmdList,vimSubst1,@vimFunc
306306
syn match vimCmdSep ":\+" skipwhite nextgroup=@vimCmdList,vimSubst1
@@ -1853,6 +1853,10 @@ syn match vimSyncKey contained "\<groupthere\>" skipwhite nextgroup=vimSyncGroup
18531853
syn match vimSyncGroup contained "\<\h\w*\>" skipwhite nextgroup=vimSynRegPat,vimSyncNone
18541854
syn keyword vimSyncNone contained NONE
18551855

1856+
" Syntime: {{{2
1857+
" =======
1858+
syn keyword vimSyntimeArg contained on off clear report skipwhite nextgroup=vimComment,vim9Comment,vimCmdSep
1859+
syn keyword vimSyntime synti[me] skipwhite nextgroup=vimSyntimeArg
18561860
" Additional IsCommand: here by reasons of precedence {{{2
18571861
" ====================
18581862
syn match vimIsCommand "<Bar>\s*\a\+" transparent contains=vimCommand,vimNotation
@@ -2622,6 +2626,8 @@ if !exists("skip_vim_syntax_inits")
26222626
hi def link vimSynSpell Type
26232627
hi def link vimSyntax vimCommand
26242628
hi def link vimSynType vimSpecial
2629+
hi def link vimSyntime vimCommand
2630+
hi def link vimSyntimeArg vimSpecial
26252631
hi def link vimTcl vimCommand
26262632
hi def link vimTerminal vimCommand
26272633
hi def link vimTerminalContinue vimContinue

0 commit comments

Comments
 (0)