Bug#300108: vim: Please update fstab syntax highlighting

Matthijs Mohlmann matthijs@cacholong.nl
Mon, 21 Mar 2005 15:32:45 +0100


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

Justin Pryzby wrote:
> On Thu, Mar 17, 2005 at 09:35:56PM +0100, Matthijs Mohlmann wrote:
>
>>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.
>
> Really?  I made the patch myself 2 hours ago.  :)
>
> I just installed vim=1:6.3-064+1 (sid), and can't see that it has
> those changes.
>
> Justin

Hi,

I'm now some more awake and looked again into it. But somehow this patch
is already applied upstream. Did you change the following file:
/usr/share/vim/vim63/syntax/fstab.vim

Matthijs

--------------enig8F927629A18847A36AA1D29B
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

iD8DBQFCPtsP2n1ROIkXqbARArtEAKCoRfCM8p+y3+1DevN/8Kf0Ij6puwCfRdNg
ZUUDtSE5LoaRXr3rAjT8Be4=
=gSRa
-----END PGP SIGNATURE-----

--------------enig8F927629A18847A36AA1D29B--