Your message dated Thu, 6 May 2010 22:43:33 -0400
with message-id <[email protected]>
has caused the   report #568378,
regarding vim: crontab syntax highlighting should treat day/month names case 
insensitively
to be marked as having been forwarded to the upstream software
author(s) David Necas <[email protected]>

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
568378: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=568378
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
David,

The attached patch updates the crontab syntax file to allow specifying
the month or day of week in any case.  This follows the behavior of
those cron daemons which allow using names instead of numbers for these
fields, as they specifically use a case-insensitive string comparison.

If the patch looks acceptable, would you mind forwarding an updated
version of the syntax file to Bram so it will be included in the
upcoming release?

Thanks,
-- 
James
GPG Key: 1024D/61326D40 2003-09-02 James Vega <[email protected]>
# HG changeset patch
# Parent 440b43011e0ba880662b34b405d747d9fb6b2d5b
Subject: Ignore case for month/day fields
 The versions of cron which support specifying the month and day fields via
 names instead of just numbers are case-insensitive when parsing the names.
Author: Chris Butler <[email protected]>
Bug-Debian: http://bugs.debian.org/568378
Forwarded: 2010-05-06
diff --git a/runtime/syntax/crontab.vim b/runtime/syntax/crontab.vim
--- a/runtime/syntax/crontab.vim
+++ b/runtime/syntax/crontab.vim
@@ -19,6 +19,12 @@
   finish
 endif
 
+syntax match crontabNick "^...@\(reboot\|yearly\|annually\|monthly\|weekly\|daily\|midnight\|hourly\)\>" nextgroup=crontabCmd skipwhite
+
+syntax match crontabVar "^\s*\k\w*\s*="me=e-1
+
+syntax case ignore
+
 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
@@ -33,10 +39,6 @@
 syntax match crontabCmnt "^\s*#.*"
 syntax match crontabPercent "[^\\]%.*"lc=1 contained
 
-syntax match crontabNick "^...@\(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
 " For version 5.8 and later: only when an item doesn't have highlighting yet

Attachment: signature.asc
Description: Digital signature


--- End Message ---

Reply via email to