Am Montag, 19. Januar 2015 16:30:46 UTC+1 schrieb Craig Skinner: > Hi folks, > > This is my 1st post here: > > The diff below works to case de-sensitise mth/day in crontab files. > > crontab(5) man page saith: > ... > Names can be used in the month and day-of-week fields. Use the first > three letters of the particular day or month (case doesn't matter). > ... ^^^^^^^^^^^^^^^^^^^ > ^^^^^^^^^^^^^^^^^^^ > > > > --- crontab.vim Fri May 18 12:05:25 2012 > +++ /usr/local/share/vim/vim74/syntax/crontab.vim Sat Jan 17 17:22:48 2015 > @@ -5,7 +5,7 @@ > " License: This file can be redistribued and/or modified under the same terms > " as Vim itself. > " Filenames: /tmp/crontab.* used by "crontab -e" > -" Last Change: 2012-05-16 > +" Last Change: 2015-01-17 > " > " crontab line format: > " Minutes Hours Days Months Days_of_Week Commands # comments > @@ -22,11 +22,11 @@ syntax match crontabMin "^\s*[-0-9/,.*]\+" nextgroup=c > syntax match crontabHr "\s[-0-9/,.*]\+" nextgroup=crontabDay skipwhite > contained > syntax match crontabDay "\s[-0-9/,.*]\+" nextgroup=crontabMnth 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 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 "\s[-a-z0-9/,.*]\+" nextgroup=crontabCmd skipwhite > contained > -syntax keyword crontabDow7 contained sun mon tue wed thu fri sat > +syntax match crontabDow "\s[-A-z0-9/,.*]\+" nextgroup=crontabCmd skipwhite > contained > +syntax keyword crontabDow7 contained Mon Tue Wed Thu Fri Sat Sun > > syntax region crontabCmd start="\S" end="$" skipwhite contained keepend > contains=crontabPercent > syntax match crontabCmnt "^\s*#.*" contains=@Spell
This has also been requested in issue 132 (https://code.google.com/p/vim/issues/detail?id=132). @Bram, the maintainer seems to be unreachable and this is a relative small change, so perhaps you'd like to include that change nevertheless. Craig, would you volunteer to maintain that file, since the maintainer does not appear to be active anymore? Best, Christian -- -- You received this message from the "vim_dev" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php --- You received this message because you are subscribed to the Google Groups "vim_dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
