diff options
author | Bram Moolenaar <Bram@vim.org> | 2005-05-18 22:10:28 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2005-05-18 22:10:28 +0000 |
commit | d9d305836e1f3af1577d438642b3c1f9daba7db6 (patch) | |
tree | 8f3f167531adb63063c45929f3eab1f11ae8e442 /runtime/syntax/crontab.vim | |
parent | d8a4e563d0827c88caea9baf97f70083737fb9c9 (diff) | |
download | vim-git-d9d305836e1f3af1577d438642b3c1f9daba7db6.tar.gz |
updated for version 7.0072
Diffstat (limited to 'runtime/syntax/crontab.vim')
-rw-r--r-- | runtime/syntax/crontab.vim | 30 |
1 files changed, 19 insertions, 11 deletions
diff --git a/runtime/syntax/crontab.vim b/runtime/syntax/crontab.vim index b7b8ef6f1..372478c1e 100644 --- a/runtime/syntax/crontab.vim +++ b/runtime/syntax/crontab.vim @@ -1,9 +1,10 @@ " Vim syntax file -" Language: crontab 2.3.3 +" Language: crontab " Maintainer: John Hoelzel johnh51@users.sourceforge.net -" Last change: Mon Jun 9 2003 -" Filenames: /tmp/crontab.* used by "crontab -e" -" URL: http://johnh51.get.to/vim/syntax/crontab.vim +" Maintainer: David Necas (Yeti) <yeti@physics.muni.cz> +" Last Change: 2005-04-26 +" Filenames: /tmp/crontab.* used by "crontab -e" +" URL: http://trific.ath.cx/Ftp/vim/syntax/crontab.vim " " crontab line format: " Minutes Hours Days Months Days_of_Week Commands # comments @@ -16,20 +17,24 @@ elseif exists("b:current_syntax") finish endif -syntax match crontabMin "\_^[0-9\-\/\,\.]\{}\>\|\*" nextgroup=crontabHr skipwhite -syntax match crontabHr "\<[0-9\-\/\,\.]\{}\>\|\*" nextgroup=crontabDay skipwhite contained -syntax match crontabDay "\<[0-9\-\/\,\.]\{}\>\|\*" nextgroup=crontabMnth skipwhite contained +syntax match crontabMin "^\s*[-0-9/,.*]\+" nextgroup=crontabHr skipwhite +syntax match crontabHr "\s[-0-9/,.*]\+" nextgroup=crontabDay skipwhite contained +syntax match crontabDay "\s[-0-9/,.*]\+" nextgroup=crontabMnth skipwhite contained -syntax match crontabMnth "\<[a-z0-9\-\/\,\.]\{}\>\|\*" nextgroup=crontabDow skipwhite contained +syntax match crontabMnth "\s[-a-z0-9/,.*]\+" nextgroup=crontabDow skipwhite contained syntax keyword crontabMnth12 contained jan feb mar apr may jun jul aug sep oct nov dec -syntax match crontabDow "\<[a-z0-9\-\/\,\.]\{}\>\|\*" nextgroup=crontabCmd skipwhite contained +syntax match crontabDow "\s[-a-z0-9/,.*]\+" nextgroup=crontabCmd skipwhite contained syntax keyword crontabDow7 contained sun mon tue wed thu fri sat " syntax region crontabCmd start="\<[a-z0-9\/\(]" end="$" nextgroup=crontabCmnt skipwhite contained contains=crontabCmnt keepend -syntax region crontabCmd start="\S" end="$" nextgroup=crontabCmnt skipwhite contained contains=crontabCmnt keepend -syntax match crontabCmnt /#.*/ +syntax region crontabCmd start="\S" end="$" nextgroup=crontabCmnt skipwhite contained keepend +syntax match crontabCmnt "^\s*#.*" + +syntax match crontabNick "^\s*@\(reboot\|yearly\|annually\|monthly\|weekly\|daily\|midnight\|hourly\)\>" nextgroup=crontabCmd skipwhite + +syntax match crontabVar "^\s*\k\w*\s*="me=e-1 " Define the default highlighting. " For version 5.7 and earlier: only when not done already @@ -56,6 +61,9 @@ if version >= 508 || !exists("did_crontab_syn_inits") HiLink crontabDowS PreProc HiLink crontabDowN PreProc + HiLink crontabNick Special + HiLink crontabVar Identifier + " comment out next line for to suppress unix commands coloring. HiLink crontabCmd Type |