Start anew
[git/jnareb-git.git] / share / vim / vim58 / syntax / crontab.vim
blob3597eea782c6b9ea83f2b4a02d219269d1d8e63e
1 " Vim syntax file
2 " Language:     crontab
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
8 " line format:
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
13 if version < 600
14   syntax clear
15 elseif exists("b:current_syntax")
16   finish
17 endif
19 syn sync lines=2
21 " times
22 syn match crontabStatement      "^\s\{}\S\{1,}\s\{1,}\S\{1,}\s\{1,}\S\{1,}\s\{1,}\S\{1,}\s\{1,}\S\{1,}\s"
24 " comments
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")
32   if version < 508
33     let did_crontab_syntax_inits = 1
34     command -nargs=+ HiLink hi link <args>
35   else
36     command -nargs=+ HiLink hi def link <args>
37   endif
39   HiLink crontabStatement       Statement
40   HiLink crontabComment         Comment
42   delcommand HiLink
43 endif
45 let b:current_syntax = "crontab"
47 " vim: ts=8