]> git.pld-linux.org Git - packages/vim.git/blob - 013_all_vim-7.0-cron-vars-79981.patch
updated to 7.4.663
[packages/vim.git] / 013_all_vim-7.0-cron-vars-79981.patch
1 # foo=bar highlighting in crontab files. Gentoo bug 79981.
2
3 --- vim70aa/runtime/syntax/crontab.vim.orig     2005-01-29 19:47:38.639175808 +0000
4 +++ vim70aa/runtime/syntax/crontab.vim  2005-01-29 19:51:58.631650944 +0000
5 @@ -35,6 +35,11 @@
6  syntax region crontabCmd  start="\S" end="$" nextgroup=crontabCmnt skipwhite contained contains=crontabCmnt,crontabCmdSpecial keepend
7  syntax match  crontabCmnt /#.*/
8  
9 +syntax match crontabVar /^[A-Za-z][A-Za-z0-9\-\_]*/ nextgroup=crontabVarEq skipwhite
10 +syntax match crontabVarEq contained /=/ nextgroup=CrontabVarValQ,CrontabVarVal skipwhite
11 +syntax match crontabVarValQ contained /\(["']\).*\1/ skipwhite
12 +syntax match crontabVarVal contained /["']\@!\S\+/ skipwhite
13 +
14  " Define the default highlighting.
15  " For version 5.7 and earlier: only when not done already
16  " For version 5.8 and later: only when an item doesn't have highlighting yet
17 @@ -66,6 +71,11 @@
18    HiLink crontabCmd            Type
19    HiLink crontabCmdSpecial     Special
20  
21 +  HiLink crontabVar            Identifier
22 +  HiLink crontabVarEq          Special
23 +  HiLink crontabVarVal         Constant
24 +  HiLink crontabVarValQ                String
25 +
26    HiLink crontabCmnt           Comment
27  
28    delcommand HiLink
This page took 0.02662 seconds and 3 git commands to generate.