codekingpro/portable-devtools
115k
1" Vim syntax file2" Language: crontab3" Maintainer: David Necas (Yeti) <yeti@physics.muni.cz>4" Original Maintainer: John Hoelzel johnh51@users.sourceforge.net5" License: This file can be redistribued and/or modified under the same terms6" as Vim itself.7" Filenames: /tmp/crontab.* used by "crontab -e"8" Last Change: 2022-09-229"10" crontab line format:11" Minutes Hours Days Months Days_of_Week Commands # comments12 13" quit when a syntax file was already loaded14if exists("b:current_syntax")15 finish16endif17 18syntax match crontabNick "^\s*@\(reboot\|yearly\|annually\|monthly\|weekly\|daily\|midnight\|hourly\|every_minute\|every_second\)\>" nextgroup=crontabCmd skipwhite19 20syntax match crontabVar "^\s*\k\w*\s*="me=e-121 22syntax case ignore23 24syntax match crontabMin "^\s*[-~0-9/,.*]\+" nextgroup=crontabHr skipwhite25syntax match crontabHr "\s[-~0-9/,.*]\+" nextgroup=crontabDay skipwhite contained26syntax match crontabDay "\s[-~0-9/,.*]\+" nextgroup=crontabMnth skipwhite contained27 28syntax match crontabMnth "\s[-~a-z0-9/,.*]\+" nextgroup=crontabDow skipwhite contained29syntax keyword crontabMnth12 contained jan feb mar apr may jun jul aug sep oct nov dec30 31syntax match crontabDow "\s[-~a-z0-9/,.*]\+" nextgroup=crontabCmd skipwhite contained32syntax keyword crontabDow7 contained sun mon tue wed thu fri sat33 34syntax region crontabCmd start="\S" end="$" skipwhite contained keepend contains=crontabPercent35syntax match crontabCmnt "^\s*#.*" contains=@Spell36syntax match crontabPercent "[^\\]%.*"lc=1 contained37 38" Define the default highlighting.39" Only when an item doesn't have highlighting yet40 41hi def link crontabMin Number42hi def link crontabHr PreProc43hi def link crontabDay Type44 45hi def link crontabMnth Number46hi def link crontabMnth12 Number47hi def link crontabMnthS Number48hi def link crontabMnthN Number49 50hi def link crontabDow PreProc51hi def link crontabDow7 PreProc52hi def link crontabDowS PreProc53hi def link crontabDowN PreProc54 55hi def link crontabNick Special56hi def link crontabVar Identifier57hi def link crontabPercent Special58 59" comment out next line for to suppress unix commands coloring.60hi def link crontabCmd Statement61 62hi def link crontabCmnt Comment63 64 65let b:current_syntax = "crontab"66 67" vim: ts=868 