3 " Maintainer: John Hoelzel johnh51@bigfoot.com
4 " Last Change: 2001 May 10
5 " Filenames: Linux: */crontab.*
6 " URL: http://bigfoot.com/~johnh51/vim/syntax/crontab.vim
9 " Minutes Hours Days Months Days_of_Week Commands # comments
11 " For version 5.x: Clear all syntax items
12 " For version 6.x: Quit when a syntax file was already loaded
15 elseif exists("b:current_syntax")
22 syn match crontabStatement "^\s\{}\S\{1,}\s\{1,}\S\{1,}\s\{1,}\S\{1,}\s\{1,}\S\{1,}\s\{1,}\S\{1,}\s"
25 syn region crontabComment start="#" end="$"
28 " Define the default highlighting.
29 " For version 5.7 and earlier: only when not done already
30 " For version 5.8 and later: only when an item doesn't have highlighting yet
31 if version >= 508 || !exists("did_crontab_syntax_inits")
33 let did_crontab_syntax_inits = 1
34 command -nargs=+ HiLink hi link <args>
36 command -nargs=+ HiLink hi def link <args>
39 HiLink crontabStatement Statement
40 HiLink crontabComment Comment
45 let b:current_syntax = "crontab"