]> git.pld-linux.org Git - packages/vim.git/blame - 010_all_vim-6.3-vixie.patch
- updated to 0.5
[packages/vim.git] / 010_all_vim-6.3-vixie.patch
CommitLineData
9eb47a31
ER
1--- runtime/syntax/crontab.vim 2005-08-09 02:20:29.000000000 +0100
2+++ runtime/syntax/crontab.vim 2005-07-22 15:32:17.000000000 +0100
3@@ -17,25 +17,33 @@
99890e04
ER
4 finish
5 endif
6
9eb47a31
ER
7-syntax match crontabMin "^\s*[-0-9/,.*]\+" nextgroup=crontabHr skipwhite
8-syntax match crontabHr "\s[-0-9/,.*]\+" nextgroup=crontabDay skipwhite contained
9-syntax match crontabDay "\s[-0-9/,.*]\+" nextgroup=crontabMnth skipwhite contained
99890e04
ER
10+syntax match crontabMin "\_^[0-9\-\/\,\.]\{}\>\|\*\(/[0-9]\{}\)\?" nextgroup=crontabHr skipwhite
11+syntax match crontabHr "\<[0-9\-\/\,\.]\{}\>\|\*\(/[0-9]\{}\)\?" nextgroup=crontabDay skipwhite contained
12+syntax match crontabDay "\<[0-9\-\/\,\.]\{}\>\|\*\(/[0-9]\{}\)\?" nextgroup=crontabMnth skipwhite contained
13
9eb47a31 14-syntax match crontabMnth "\s[-a-z0-9/,.*]\+" nextgroup=crontabDow skipwhite contained
99890e04
ER
15+syntax match crontabMnth "\<[a-z0-9\-\/\,\.]\{}\>\|\*\(/[0-9]\{}\)\?" nextgroup=crontabDow skipwhite contained
16 syntax keyword crontabMnth12 contained jan feb mar apr may jun jul aug sep oct nov dec
17
9eb47a31 18-syntax match crontabDow "\s[-a-z0-9/,.*]\+" nextgroup=crontabCmd skipwhite contained
99890e04
ER
19+syntax match crontabDow "\<[a-z0-9\-\/\,\.]\{}\>\|\*\(/[0-9]\{}\)\?" nextgroup=crontabCmd skipwhite contained
20 syntax keyword crontabDow7 contained sun mon tue wed thu fri sat
21
22+syntax match crontabSpecial "@\w\+" nextgroup=crontabCmd skipwhite
9eb47a31 23+syntax match crontabCmdSpecial contained /\\.\|%/
99890e04
ER
24 " syntax region crontabCmd start="\<[a-z0-9\/\(]" end="$" nextgroup=crontabCmnt skipwhite contained contains=crontabCmnt keepend
25
9eb47a31 26 syntax region crontabCmd start="\S" end="$" nextgroup=crontabCmnt skipwhite contained keepend
99890e04 27+syntax region crontabCmd start="\S" end="$" nextgroup=crontabCmnt skipwhite contained contains=crontabCmnt,crontabCmdSpecial keepend
9eb47a31 28 syntax match crontabCmnt "^\s*#.*"
99890e04 29
9eb47a31
ER
30 syntax match crontabNick "^\s*@\(reboot\|yearly\|annually\|monthly\|weekly\|daily\|midnight\|hourly\)\>" nextgroup=crontabCmd skipwhite
31
32 syntax match crontabVar "^\s*\k\w*\s*="me=e-1
99890e04 33
9eb47a31
ER
34+syntax match crontabVar /^[A-Za-z][A-Za-z0-9\-\_]*/ nextgroup=crontabVarEq skipwhite
35+syntax match crontabVarEq contained /=/ nextgroup=CrontabVarValQ,CrontabVarVal skipwhite
36+syntax match crontabVarValQ contained /\(["']\).*\1/ skipwhite
37+syntax match crontabVarVal contained /["']\@!\S\+/ skipwhite
99890e04 38+
9eb47a31
ER
39 " Define the default highlighting.
40 " For version 5.7 and earlier: only when not done already
41 " For version 5.8 and later: only when an item doesn't have highlighting yet
42@@ -47,6 +55,7 @@
43 command -nargs=+ HiLink hi def link <args>
44 endif
45
46+ HiLink crontabSpecial PreProc
47 HiLink crontabMin Number
48 HiLink crontabHr PreProc
49 HiLink crontabDay Type
50@@ -66,6 +75,12 @@
99890e04
ER
51
52 " comment out next line for to suppress unix commands coloring.
53 HiLink crontabCmd Type
9eb47a31
ER
54+ HiLink crontabCmdSpecial Special
55+
56+ HiLink crontabVar Identifier
57+ HiLink crontabVarEq Special
58+ HiLink crontabVarVal Constant
59+ HiLink crontabVarValQ String
99890e04
ER
60
61 HiLink crontabCmnt Comment
62
This page took 0.062468 seconds and 4 git commands to generate.