Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 116732 - gentoo-syntax: gentoo-package-use.vim has wrong regexp for use flags
Summary: gentoo-syntax: gentoo-package-use.vim has wrong regexp for use flags
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Lowest enhancement (vote)
Assignee: Vim Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-12-25 13:25 UTC by Kai Ruhnau
Modified: 2005-12-25 14:48 UTC (History)
0 users

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 Kai Ruhnau 2005-12-25 13:25:36 UTC
In /usr/share/vim/vimfiles/syntax/gentoo-package-use.vim the regular expressions for GentooPackageUseUse and GentooPackageUseUnuse forget to mention the leading number of some useflags like 3dfx 3dnow and others.

Fix:

--- gentoo-package-use.vim      2005-12-25 22:10:21.000000000 +0100
+++ /usr/share/vim/vimfiles/syntax/gentoo-package-use.vim       2005-12-25 22:15:17.000000000 +0100
@@ -26,9 +26,9 @@

 syn match  GentooPackageUseAtom /^[^ \t\n#]\+-\S\+\/\S\+/
            \ nextgroup=GentooPackageUseUse,GentooPackageUseUnuse skipwhite
-syn match  GentooPackageUseUse contained /[a-zA-Z][a-zA-Z0-9\-_]*/
+syn match  GentooPackageUseUse contained /[a-zA-Z0-9][a-zA-Z0-9\-_]*/
            \ nextgroup=GentooPackageUseUse,GentooPackageUseUnuse skipwhite
-syn match  GentooPackageUseUnuse contained /-[a-zA-Z][a-zA-Z0-9\-_]*/
+syn match  GentooPackageUseUnuse contained /-[a-zA-Z0-9][a-zA-Z0-9\-_]*/
            \ nextgroup=GentooPackageUseUse,GentooPackageUseUnuse skipwhite

 hi def link GentooPackageUseComment          Comment
Comment 1 Ciaran McCreesh 2005-12-25 14:31:32 UTC
Hrm, didn't I fix this one in ~arch already?
Comment 2 Kai Ruhnau 2005-12-25 14:48:22 UTC
Yes, you did, sorry.
After syncing I got notice of gentoo-syntax-20051221.

Thanks