Package: vim-runtime
Version: 1:7.1-138+1
Severity: normal
Tags: patch

when using fuse, vim makes incorrect syntax highlight in fstab files            
This patch allows to solve the problem.
It can be someone will do better?


example fuse fstab record:

[EMAIL PROTECTED]:/share /share fuse 
IdentityFile=/home/dimka/.ssh/dgate,Compression=yes,CompressionLevel=9,reconnect
 0 0


-- System Information:
Debian Release: lenny/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing')
Architecture: i386 (i686)

Kernel: Linux 2.6.22-2-686 (SMP w/1 CPU core)
Locale: LANG=ru_RU.UTF-8, LC_CTYPE=ru_RU.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

vim-runtime depends on no packages.

Versions of packages vim-runtime recommends:
ii  vim                          1:7.1-138+1 Vi IMproved - enhanced vi editor
ii  vim-gtk                      1:7.1-138+1 Vi IMproved - enhanced vi editor -

-- debconf-show failed
--- fstab.vim	2007-10-13 21:42:28.000000000 +0400
+++ fstab.vim	2007-11-18 11:42:40.000000000 +0300
@@ -22,7 +22,7 @@
 
 " General
 syn cluster fsGeneralCluster contains=fsComment
-syn match fsComment /\s*#.*/
+syn match fsComment /\s\+#.*/
 syn match fsOperator /[,=:]/
 
 " Device
@@ -43,7 +43,7 @@
 " Type
 syn cluster fsTypeCluster contains=fsTypeKeyword,fsTypeUnknown
 syn match fsTypeUnknown /\s\+\zs\w\+/ contained
-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 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
+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 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 fuse
 
 " Options
 " -------

Reply via email to