Bug#300108: vim: Please update fstab syntax highlighting

Matthijs Mohlmann Matthijs Mohlmann <matthijs@cacholong.nl>, 300108@bugs.debian.org
Thu, 17 Mar 2005 21:35:56 +0100


This is an OpenPGP/MIME signed message (RFC 2440 and 3156)
--------------enig959E6F418819BFD2A046012C
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit

Justin Pryzby wrote:
> Package: vim
> Version: 1:6.3-058+1
> Severity: minor
> Tags: upstream patch patch
>
> In columns 1 (filesystem) and 3 (type), "sysfs" and "usbfs" are
> presently highlighted as white on red, apparently indicating an
> invalid entry:
>
> sysfs           /sys            sysfs                           0 0
> usbfs           /proc/bus/usb   usbfs   auto                    0 0
>
> In column 4 (options), "users" is sometimes colored as invalid, and
> sometimes not colored:
>
> /dev/fd0        /floppy         auto    users,noauto            0 0
>
> I've been unable to find how to fix NFS mounts marked as invalid:
>
> cetus.homeunix.net:/home/pryzbyj /mnt/cetus nfs defaults,users,noauto 0 0
>
>
> ------------------------------------------------------------------------
>
> --- new	2005-03-17 12:30:56.378741392 -0500
> +++ orig	2005-03-17 12:31:00.727080344 -0500
> @@ -19,8 +19,8 @@
>
>  " Device
>  syn cluster fsDeviceCluster contains=fsOperator,fsDeviceKeyword,fsDeviceError
> -syn match fsDeviceError /\%([^.a-zA-Z0-9_\/#@:]\|^\w\{-}\ze\W\)/ contained
> -syn keyword fsDeviceKeyword contained none proc linproc tmpfs sysfs usbfs
> +syn match fsDeviceError /\%([^a-zA-Z0-9_\/#@]\|^\w\{-}\ze\W\)/ contained
> +syn keyword fsDeviceKeyword contained none proc linproc tmpfs
>  syn keyword fsDeviceKeyword contained LABEL nextgroup=fsDeviceLabel
>  syn match fsDeviceLabel contained /=[^ \t]\+/hs=s+1 contains=fsOperator
>
> @@ -32,7 +32,7 @@
>  " Type
>  syn cluster fsTypeCluster contains=fsTypeKeyword,fsTypeError
>  syn match fsTypeError /\s\+\zs\w\+/ contained
> -syn keyword fsTypeKeyword contained adfs affs auto autofs cd9660 coda cramfs devfs devpts efs ext2 ext3 fdesc hfs hpfs iso9660 kernfs linprocfs mfs minix msdos ncpfs nfs ntfs nwfs null portal proc procfs qnx4 reiserfs romfs smbfs std sysv swap tmpfs udf ufs umap umsdos union vfat xfs sysfs usbfs
> +syn keyword fsTypeKeyword contained adfs affs auto autofs cd9660 coda cramfs devfs devpts efs ext2 ext3 fdesc hfs hpfs iso9660 kernfs linprocfs mfs minix msdos ncpfs nfs ntfs nwfs null portal proc procfs qnx4 reiserfs romfs smbfs std sysv swap tmpfs udf ufs umap umsdos union vfat xfs
>
>  " Options
>  " -------
> @@ -44,7 +44,7 @@
>  syn keyword fsOptionsYesNo yes no
>  syn cluster fsOptionsCheckCluster contains=fsOptionsExt2Check,fsOptionsFatCheck
>  syn keyword fsOptionsSize 512 1024 2048
> -syn keyword fsOptionsGeneral async atime auto current defaults dev exec force fstab noatime noauto noclusterr noclusterw nodev noexec nosuid nosymfollow nouser owner ro rdonly rw rq sw xx suid suiddir sync kudzu union update user supermount users
> +syn keyword fsOptionsGeneral async atime auto current defaults dev exec force fstab noatime noauto noclusterr noclusterw nodev noexec nosuid nosymfollow nouser owner ro rdonly rw rq sw xx suid suiddir sync kudzu union update user supermount
>  syn match fsOptionsGeneral /_netdev/
>
>  " Options: adfs

Thanks for your bug report,

If i look in my /usr/share/vim/vim63/syntax/fstab.vim then this patch is
already applied.

That is for the version in sid and sarge.

Matthijs

--------------enig959E6F418819BFD2A046012C
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFCOeow2n1ROIkXqbARAnntAJ9WQU9eG52phPZPyJmrqDZoN6hKlgCcC37o
+Hz2YUCYdLH5Vyjedj+kwAc=
=peaD
-----END PGP SIGNATURE-----

--------------enig959E6F418819BFD2A046012C--