Bug#568378: vim: crontab syntax highlighting should treat day/month names case insensitively

Chris Butler chrisb at debian.org
Thu Feb 4 11:37:31 UTC 2010


Package: vim
Version: 1:7.1.314-3+lenny2
Severity: minor
Tags: patch

vim's syntax highlighting for crontabs breaks if a day or month name is
specified with a capital letter, e.g:

* * * * Mon-Fri mycommand

However, cron seems to treat these values as case-insensitive. The
attached patch fixes this by adding "syntax case ignore" before the
syntax.

Conversely, the @foo special time specifiers (e.g. "@reboot", "@hourly")
ARE case-sensitive. The patch also defines the syntax so that the
incorrect case is displayed as an error, with the correct case displayed
as before.

-- System Information:
Debian Release: 5.0.4
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.26-2-openvz-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8) (ignored: LC_ALL set to en_GB.UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages vim depends on:
ii  libacl1               2.2.47-2           Access control list shared library
ii  libc6                 2.7-18lenny2       GNU C Library: Shared libraries
ii  libgpm2               1.20.4-3.1         General Purpose Mouse - shared lib
ii  libncurses5           5.7+20081213-1     shared libraries for terminal hand
ii  libselinux1           2.0.65-5           SELinux shared libraries
ii  vim-common            1:7.1.314-3+lenny2 Vi IMproved - Common files
ii  vim-runtime           1:7.1.314-3+lenny2 Vi IMproved - Runtime files

vim recommends no packages.

Versions of packages vim suggests:
ii  exuberant-ctags [ctags]       1:5.7-4    build tag file indexes of source c
pn  vim-doc                       <none>     (no description available)
ii  vim-scripts                   20080722-1 plugins for vim, adding bells and 

-- no debconf information

-- 
Chris Butler <chrisb at debian.org>
  GnuPG Key ID: 1024D/D097A261
-------------- next part --------------
A non-text attachment was scrubbed...
Name: crontab.vim.patch
Type: text/x-diff
Size: 1390 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-vim-maintainers/attachments/20100204/c8b419b1/attachment.patch>


More information about the pkg-vim-maintainers mailing list