vim doesn't recognize UUID labels in fstab
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
vim |
Fix Released
|
Undecided
|
Unassigned | ||
vim (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: vim
Vim supports syntax highlighting for /etc/fstab, but displays UUID mounted devices as error:
UUID=d3f9559a-
The device part of this line is shown with white text on red background. To work arround this, I have a fstab.vim file in my ~/.vim/
syn keyword fsDeviceKeyword contained UUID nextgroup=
syn match fsDeviceUUID contained /=[^ \t]\+/hs=s+1 contains=fsOperator
hi def link fsDeviceUUID String
Those entries should be merged into /usr/share/
--- fstab.vim.orig 2007-04-22 09:43:29.000000000 +0200
+++ fstab.vim 2007-04-22 09:44:20.000000000 +0200
@@ -26,7 +26,9 @@
syn match fsDeviceError /\%([^a-
syn keyword fsDeviceKeyword contained none proc linproc tmpfs devpts sysfs usbfs
syn keyword fsDeviceKeyword contained LABEL nextgroup=
+syn keyword fsDeviceKeyword contained UUID nextgroup=
syn match fsDeviceLabel contained /=[^ \t]\+/hs=s+1 contains=fsOperator
+syn match fsDeviceUUID contained /=[^ \t]\+/hs=s+1 contains=fsOperator
" Mount Point
syn cluster fsMountPointCluster contains=
@@ -197,6 +199,7 @@
HiLink fsTypeKeyword Type
HiLink fsDeviceKeyword Identifier
HiLink fsDeviceLabel String
+ HiLink fsDeviceUUID String
HiLink fsFreqPassNumber Number
if exists(
Confirming both the bug as existing and the patch as fixing the problem