Hi,
could these two simple patches from pkgsrc be applied to Vim?
patch-ab adds a few NetBSD/*BSD specific filesystems and options for
correct /etc/fstab syntax highlighting on NetBSD.
patch-ae enables "ipfilter" syntax highlighting for ipf6.conf as well
(this file contains IPv6 ipfilter rules).
Thanks,
Geert
$NetBSD: patch-ab,v 1.5 2006/05/09 06:36:48 martti Exp $
--- runtime/syntax/fstab.vim.orig 2006-04-16 19:01:27.000000000 +0300
+++ runtime/syntax/fstab.vim 2006-05-06 14:20:57.000000000 +0300
@@ -36,7 +36,7 @@
" Type
syn cluster fsTypeCluster contains=fsTypeKeyword,fsTypeUnknown
syn match fsTypeUnknown /\s\+\zs\w\+/ contained
-syn keyword fsTypeKeyword contained adfs affs atfs audiofs auto autofs befs
bfs cd9660 cfs cifs coda cramfs devfs devpts e2compr efs ext2 ext3 fdesc hfs
hpfs iso9660 jffs jffs2 jfs kernfs linprocfs mfs minix msdos ncpfs nfs none
none ntfs null nwfs ovlfs portal proc procfs qnx4 reiserfs romfs shm smbfs std
subfs swap sysfs sysv tcfs tmpfs udf ufs umap umsdos union usbfs userfs vfat
vs3fs vxfs wrapfs wvfs xfs zisofs
+syn keyword fsTypeKeyword contained adfs ados affs atfs audiofs auto autofs
befs bfs cd9660 cfs cifs coda cramfs devfs devpts e2compr efs ext2 ext2fs ext3
fdesc ffs filecore hfs hpfs iso9660 jffs jffs2 jfs kernfs lfs linprocfs mfs
minix msdos ncpfs nfs none none ntfs null nwfs overlay ovlfs portal proc procfs
ptyfs qnx4 reiserfs romfs shm smbfs std subfs swap sysfs sysv tcfs tmpfs udf
ufs umap umsdos union usbfs userfs vfat vs3fs vxfs wrapfs wvfs xfs zisofs
" Options
" -------
@@ -48,7 +48,7 @@
syn keyword fsOptionsYesNo yes no
syn cluster fsOptionsCheckCluster contains=fsOptionsExt2Check,fsOptionsFatCheck
syn keyword fsOptionsSize 512 1024 2048
-syn keyword fsOptionsGeneral async atime auto bind current defaults dev devgid
devmode devuid dirsync exec force fstab kudzu loop mand move noatime noauto
noclusterr noclusterw nodev nodiratime noexec nomand nosuid nosymfollow nouser
owner rbind rdonly remount ro rq rw suid suiddir supermount sw sync union
update user[s] xx
+syn keyword fsOptionsGeneral async atime auto bind current defaults dev devgid
devmode devmtime devuid dirsync exec force fstab kudzu loop mand move noatime
noauto noclusterr noclusterw nodev nodevmtime nodiratime noexec nomand nosuid
nosymfollow nouser owner rbind rdonly remount ro rq rw suid suiddir supermount
sw sync union update user[s] xx
syn match fsOptionsGeneral /_netdev/
" Options: adfs
@@ -101,6 +101,9 @@
syn match fsOptionsKeywords contained /\<\%(dir\|file\|\)_umask=/
nextgroup=fsOptionsNumberOctal
syn match fsOptionsKeywords contained /\<\%(session\|part\)=/
nextgroup=fsOptionsNumber
+" Options: ffs
+syn keyword fsOptionsKeyWords contained softdep
+
" Options: hpfs
syn match fsOptionsKeywords contained /\<case=/ nextgroup=fsOptionsHpfsCase
syn keyword fsOptionsHpfsCase contained lower asis
$NetBSD: patch-ae,v 1.1 2006/11/23 12:36:08 ghen Exp $
--- runtime/filetype.vim.orig 2006-05-02 20:15:45.000000000 +0200
+++ runtime/filetype.vim
@@ -745,7 +745,7 @@ au BufNewFile,BufRead .indent.pro setf
au BufNewFile,BufRead *.inf,*.INF setf inform
" Ipfilter
-au BufNewFile,BufRead ipf.conf,ipf.rules setf ipfilter
+au BufNewFile,BufRead ipf.conf,ipf6.conf,ipf.rules setf ipfilter
" Informix 4GL (source - canonical, include file, I4GL+M4 preproc.)
au BufNewFile,BufRead *.4gl,*.4gh,*.m4gl setf fgl