Bug#308890: fstab syntax highlighting does not understand "bind" mount option
Kyle Moffett
Kyle Moffett <mrmacman_g4@mac.com>, 308890@bugs.debian.org
Thu, 12 May 2005 22:45:19 -0400
This is a multi-part MIME message sent by reportbug.
--===============0008317270==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
Package: vim-common
Version: 1:6.3-071+1
Severity: normal
Tags: patch
The syntax file /usr/share/vim/vim63/syntax/fstab.vim does not support
the "bind" mount option used in /etc/fstab to indicate bind mounts. IE:
valid bind-mount syntax looks like this:
# <dev> <mntpoint> <fstype> <options> <dump> <order>
/source/dir /dest/dir none bind 0 0
I have attached a patch to fstab.vim, although the fix is quite simple,
just add "bind" to the list of supported mount opions.
-- System Information:
Debian Release: 3.1
APT prefers testing
APT policy: (990, 'testing'), (500, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)
Kernel: Linux 2.6.8-csl-srvr1-2-686-smp
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
Versions of packages vim-common depends on:
ii vim 1:6.3-071+1 Vi IMproved - enhanced vi editor
-- no debconf information
--===============0008317270==
Content-Type: text/x-c; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename="fstab.vim.patch"
--- fstab.vim.orig 2005-05-12 22:33:55.587450768 -0400
+++ fstab.vim 2005-05-12 22:35:09.036284848 -0400
@@ -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 devuid devgid devmode users
+syn keyword fsOptionsGeneral async atime auto bind 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 devuid devgid devmode users
syn match fsOptionsGeneral /_netdev/
" Options: adfs
--===============0008317270==--