Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 274949 - app-editors/vim-core-7.2.402: exluding last two fields in fstab is highlighted as error
Summary: app-editors/vim-core-7.2.402: exluding last two fields in fstab is highlighte...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High minor (vote)
Assignee: Vim Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-06-21 14:00 UTC by Toralf Förster
Modified: 2011-03-15 09:12 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2009-06-21 14:00:39 UTC
Lines like "/dev/sdb1 /mnt/sdb1 auto noauto,user,noatime" within /etc/fstab must have a trailing space at the end b/c otherwise "noauto,user,noatime" is marked in red color.


Reproducible: Always
Comment 1 Wormo (RETIRED) gentoo-dev 2009-06-26 06:20:46 UTC
Thanks for the report, assigning to maintainers
Comment 2 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2009-07-20 02:42:09 UTC
I don't know how to reproduce this one. Looks normal to me.
Comment 3 Toralf Förster gentoo-dev 2009-07-20 09:10:47 UTC
Those lines looks like :

/dev/sdb2               /mnt/sdb2       auto            noauto,user,noatime
Comment 4 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2010-02-12 21:56:29 UTC
(In reply to comment #3)
> Those lines looks like :
> 
> /dev/sdb2               /mnt/sdb2       auto            noauto,user,noatime
> 

You forgot that last dump/pass variables. Don't you need it?
Comment 5 Toralf Förster gentoo-dev 2010-02-13 07:51:55 UTC
(In reply to comment #4
> You forgot that last dump/pass variables. Don't you need it?
Until now - not IMHO. Most of these drives are VFAT / NTFS / NTFS-3G (fuse) which are not permanently mounted.

Comment 6 Dror Levin (RETIRED) gentoo-dev 2010-04-01 21:38:22 UTC
The fstab syntax file is not part of the app-vim/gentoo-syntax package, but part of vim-core.
Comment 7 Tim Harder gentoo-dev 2011-03-14 21:22:22 UTC
I'm not seeing this issue with the latest stable version (7.3.50) currently in the tree. If this bug is still an issue, please reopen.
Comment 8 Toralf Förster gentoo-dev 2011-03-15 08:54:35 UTC
If I replace every space with a tab and out that line into /etc/fstab than no issue is seen.
However if I put an additional tab between "auto" and "noauto,user,noatime" then the issue appears again.
Comment 9 Tim Harder gentoo-dev 2011-03-15 09:12:00 UTC
(In reply to comment #8)
> If I replace every space with a tab and out that line into /etc/fstab than no
> issue is seen.
> However if I put an additional tab between "auto" and "noauto,user,noatime"
> then the issue appears again.

Ok, now I see what you mean. Apparently the syntax files depend on the dump/pass variables being specified as mentioned previously so you can use "0 0" if you want the syntax highlighting to be correct since that is what is used if nothing is set.

Feel free to attach a patch if you want to fix the bug to make syntax highlighting work correctly with the optional dump and pass fields. Or even better, send it upstream. Thanks.