]> git.pld-linux.org Git - packages/vim.git/blob - 010_all_vim-6.3-vixie.patch
- up to 6.4.001 (but some todo issues left)
[packages/vim.git] / 010_all_vim-6.3-vixie.patch
1 # Support for vixie-cron style @SPECS in crontab syntax highlighting.
2
3 --- vim70aa/runtime/syntax/crontab.vim  2004-08-03 08:15:48.000000000 +0100
4 +++ vim70aa/runtime/syntax/crontab.vim  2004-08-27 04:08:40.677471216 +0100
5 @@ -16,19 +16,23 @@
6    finish
7  endif
8  
9 -syntax match  crontabMin     "\_^[0-9\-\/\,\.]\{}\>\|\*"  nextgroup=crontabHr   skipwhite
10 -syntax match  crontabHr       "\<[0-9\-\/\,\.]\{}\>\|\*"  nextgroup=crontabDay  skipwhite contained
11 -syntax match  crontabDay      "\<[0-9\-\/\,\.]\{}\>\|\*"  nextgroup=crontabMnth skipwhite contained
12 +syntax match  crontabMin     "\_^[0-9\-\/\,\.]\{}\>\|\*\(/[0-9]\{}\)\?"  nextgroup=crontabHr   skipwhite
13 +syntax match  crontabHr       "\<[0-9\-\/\,\.]\{}\>\|\*\(/[0-9]\{}\)\?"  nextgroup=crontabDay  skipwhite contained
14 +syntax match  crontabDay      "\<[0-9\-\/\,\.]\{}\>\|\*\(/[0-9]\{}\)\?"  nextgroup=crontabMnth skipwhite contained
15  
16 -syntax match  crontabMnth  "\<[a-z0-9\-\/\,\.]\{}\>\|\*"  nextgroup=crontabDow  skipwhite contained
17 +syntax match  crontabMnth  "\<[a-z0-9\-\/\,\.]\{}\>\|\*\(/[0-9]\{}\)\?"  nextgroup=crontabDow  skipwhite contained
18  syntax keyword crontabMnth12 contained   jan feb mar apr may jun jul aug sep oct nov dec
19  
20 -syntax match  crontabDow   "\<[a-z0-9\-\/\,\.]\{}\>\|\*"  nextgroup=crontabCmd  skipwhite contained
21 +syntax match  crontabDow   "\<[a-z0-9\-\/\,\.]\{}\>\|\*\(/[0-9]\{}\)\?"  nextgroup=crontabCmd  skipwhite contained
22  syntax keyword crontabDow7   contained    sun mon tue wed thu fri sat
23  
24 +syntax match crontabSpecial  "@\w\+" nextgroup=crontabCmd skipwhite
25 +
26  "  syntax region crontabCmd  start="\<[a-z0-9\/\(]" end="$" nextgroup=crontabCmnt skipwhite contained contains=crontabCmnt keepend
27  
28 -syntax region crontabCmd  start="\S" end="$" nextgroup=crontabCmnt skipwhite contained contains=crontabCmnt keepend
29 +syntax match crontabCmdSpecial contained /\\.\|%/
30 +
31 +syntax region crontabCmd  start="\S" end="$" nextgroup=crontabCmnt skipwhite contained contains=crontabCmnt,crontabCmdSpecial keepend
32  syntax match  crontabCmnt /#.*/
33  
34  " Define the default highlighting.
35 @@ -51,6 +55,8 @@
36    HiLink crontabMnthS          Number
37    HiLink crontabMnthN          Number
38  
39 +  HiLink crontabSpecial                PreProc
40 +
41    HiLink crontabDow            PreProc
42    HiLink crontabDow7           PreProc
43    HiLink crontabDowS           PreProc
44 @@ -58,6 +64,7 @@
45  
46  " comment out next line for to suppress unix commands coloring.
47    HiLink crontabCmd            Type
48 +  HiLink crontabCmdSpecial     Special
49  
50    HiLink crontabCmnt           Comment
51  
This page took 0.029689 seconds and 3 git commands to generate.