Subject: Re: patch for vim's /etc/fstab syntax highlighting
To: None <tech-pkg@netbsd.org>
From: Geert Hendrickx <geert.hendrickx@ua.ac.be>
List: tech-pkg
Date: 06/03/2005 15:14:15
--gKMricLos+KVdGMg
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

On Sat, May 21, 2005 at 01:33:57PM +0200, Geert Hendrickx wrote:
> Currently Vim (with syntax highlighting turned on) marks "ffs" and "lfs"
> in /etc/fstab as unknown filesystem types.  So I sent a very simple
> patch for the fstab syntax file to the vim people, but they responded
> that this file is unmaintained, and will not get updated before vim7.  
> 
> So I created a patch to include in pkgsrc/editors/vim-share/patches to
> make Vim recognize the FFS and LFS filesystems. :-)  
> 
> GH

In attachment an updated editors/vim-share/patch-ab which makes vim also
recognize the softdep, devmtime and nodevmtime filesystem options in
/etc/fstab syntax highlighting mode.  

GH

-- 
:wq

--gKMricLos+KVdGMg
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename=patch-ab

--- runtime/syntax/fstab.vim.orig	2003-04-30 15:36:32.000000000 +0200
+++ runtime/syntax/fstab.vim	2005-06-03 15:07:34.000000000 +0200
@@ -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
+syn keyword fsTypeKeyword contained adfs ados affs auto autofs cd9660 coda cramfs devfs devpts efs ext2 ext2fs ext3 fdesc ffs filecore hfs hpfs iso9660 kernfs lfs linprocfs mfs minix msdos ncpfs nfs ntfs nwfs null overlay portal proc procfs ptyfs 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
+syn keyword fsOptionsGeneral async atime auto current defaults dev devmtime exec force fstab noatime noauto noclusterr noclusterw nodev nodevmtime noexec nosuid nosymfollow nouser owner ro rdonly rw rq softdep sw xx suid suiddir sync kudzu union update user supermount
 syn match fsOptionsGeneral /_netdev/
 
 " Options: adfs

--gKMricLos+KVdGMg--