Bug#300108: vim: Please update fstab syntax highlighting
Justin Pryzby
Justin Pryzby <justinpryzby@users.sourceforge.net>, 300108@bugs.debian.org
Thu, 17 Mar 2005 12:34:12 -0500
This is a multi-part MIME message sent by reportbug.
--===============2141368186==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
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
--===============2141368186==
Content-Type: text/x-c; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename="vim.fstab.patch"
--- 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
--===============2141368186==--