Description of problem: devpts and sysfs are highlighted as errors Version-Release number of selected component (if applicable): vim-common-6.4.007-4 How reproducible: Always Steps to Reproduce: 1. vim /etc/fstab 2. 3. Actual results: Expected results: Additional info:
Created attachment 130936 [details] Patch for /usr/share/vim/vim64/syntax/fstab.vim
Created attachment 130939 [details] Improved patch for /usr/share/vim/vim64/syntax/fstab.vim, does mtab too! As /etc/mtab is formatted identically to /etc/fstab, I made this syntax file work for both.
Created attachment 130941 [details] Patch for /usr/share/vim/vim64/filetype.vim
Comment on attachment 130941 [details] Patch for /usr/share/vim/vim64/filetype.vim This allows vim to recognize /etc/mtab as an fstab-style file.
There are two more changes that should be made to allow normal mtab files to not trigger error highlights: 1. /dev/mapper/VolGroup00-LogVol00 gets the '-' highlighted as an error 2. automount(pid1234) gets the 'automount()' highlighted as an error (do 'service autofs start' to demonstrate it) My syntax-highlighting-fu is not worthy enough to subdue these bugs. And as with all syntax highlighting changes, this bug is purely cosmetic. :-)
I'm going to release vim-7.0-022 as an update for FC5. All issues except those from comment #5 have been fixed in that release. Please note that vim-7.0-022 will be in FC5-testing for at least one week before I move it to FC5-updates.