]>
Commit | Line | Data |
---|---|---|
1eeb3fe4 JP |
1 | --- vim-8.2.2529/runtime/syntax/crontab.vim.orig 2021-03-02 13:31:41.344169187 +0100 |
2 | +++ vim-8.2.2529/runtime/syntax/crontab.vim 2021-03-02 13:33:36.243347329 +0100 | |
3 | @@ -19,25 +19,34 @@ | |
4 | ||
5 | syntax match crontabVar "^\s*\k\w*\s*="me=e-1 | |
6 | ||
7 | +syntax match crontabVar /^[A-Za-z][A-Za-z0-9\-\_]*/ nextgroup=crontabVarEq skipwhite | |
8 | +syntax match crontabVarEq contained /=/ nextgroup=CrontabVarValQ,CrontabVarVal skipwhite | |
9 | +syntax match crontabVarValQ contained /\(["']\).*\1/ skipwhite | |
10 | +syntax match crontabVarVal contained /["']\@!\S\+/ skipwhite | |
11 | + | |
12 | syntax case ignore | |
99890e04 | 13 | |
455038de AG |
14 | -syntax match crontabMin "^\s*[-0-9/,.*]\+" nextgroup=crontabHr skipwhite |
15 | -syntax match crontabHr "\s[-0-9/,.*]\+" nextgroup=crontabDay skipwhite contained | |
16 | -syntax match crontabDay "\s[-0-9/,.*]\+" nextgroup=crontabMnth skipwhite contained | |
17 | +syntax match crontabMin "\_^[0-9\-\/\,\.]\{}\>\|\*\(/[0-9]\{}\)\?" nextgroup=crontabHr skipwhite | |
18 | +syntax match crontabHr "\_^[0-9\-\/\,\.]\{}\>\|\*\(/[0-9]\{}\)\?" nextgroup=crontabDay skipwhite contained | |
19 | +syntax match crontabDay "\_^[0-9\-\/\,\.]\{}\>\|\*\(/[0-9]\{}\)\?" nextgroup=crontabMnth skipwhite contained | |
99890e04 | 20 | |
455038de AG |
21 | -syntax match crontabMnth "\s[-a-z0-9/,.*]\+" nextgroup=crontabDow skipwhite contained |
22 | +syntax match crontabMnth "\<[a-z0-9\-\/\,\.]\{}\>\|\*\(/[0-9]\{}\)\?" nextgroup=crontabDow skipwhite contained | |
23 | syntax keyword crontabMnth12 contained jan feb mar apr may jun jul aug sep oct nov dec | |
99890e04 | 24 | |
7928792f | 25 | syntax match crontabDow "\s[-a-z0-9/,.*]\+" nextgroup=crontabCmd skipwhite contained |
455038de | 26 | syntax keyword crontabDow7 contained sun mon tue wed thu fri sat |
99890e04 ER |
27 | |
28 | +syntax match crontabSpecial "@\w\+" nextgroup=crontabCmd skipwhite | |
9eb47a31 | 29 | +syntax match crontabCmdSpecial contained /\\.\|%/ |
455038de | 30 | syntax region crontabCmd start="\S" end="$" skipwhite contained keepend contains=crontabPercent |
7928792f ER |
31 | +syntax region crontabCmd start="\S" end="$" nextgroup=crontabCmnt skipwhite contained contains=crontabCmnt,crontabCmdSpecial keepend |
32 | syntax match crontabCmnt "^\s*#.*" contains=@Spell | |
455038de | 33 | syntax match crontabPercent "[^\\]%.*"lc=1 contained |
99890e04 | 34 | |
9eb47a31 | 35 | " Define the default highlighting. |
1eeb3fe4 | 36 | " Only when an item doesn't have highlighting yet |
dd43f8a2 | 37 | |
04e1d126 AM |
38 | +hi def link crontabSpecial PreProc |
39 | hi def link crontabMin Number | |
40 | hi def link crontabHr PreProc | |
41 | hi def link crontabDay Type | |
1eeb3fe4 | 42 | @@ -59,6 +68,13 @@ |
99890e04 | 43 | " comment out next line for to suppress unix commands coloring. |
04e1d126 | 44 | hi def link crontabCmd Statement |
455038de | 45 | |
04e1d126 | 46 | +hi def link crontabCmdSpecial Special |
1b38dc00 | 47 | + |
04e1d126 AM |
48 | +hi def link crontabVar Identifier |
49 | +hi def link crontabVarEq Special | |
50 | +hi def link crontabVarVal Constant | |
51 | +hi def link crontabVarValQ String | |
455038de | 52 | + |
04e1d126 | 53 | hi def link crontabCmnt Comment |
99890e04 | 54 | |
1eeb3fe4 | 55 |