Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 100122

Summary: app-vim/gentoo-syntax: syntax file for /etc/portage/package.use doesn't highlight USE flags beginning with a number
Product: Gentoo Linux Reporter: Laércio Benedito de Sousa Júnior <lbsousajr>
Component: Current packagesAssignee: Vim Maintainers <vim>
Status: RESOLVED FIXED    
Severity: minor    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Laércio Benedito de Sousa Júnior 2005-07-24 08:38:48 UTC
The syntax file for /etc/portage/package.use in package app-vim/gentoo-syntax
doesn't highlight the USE flags begin with a number.

This can be easily fixed by modifying the following lines in file
/usr/share/vim/vimfiles/syntax/gentoo-package-use.vim:

line 29: (CURRENT) syn match  GentooPackageUseUse contained
/[a-zA-Z][a-zA-Z0-9\-_]*/
         (FIXED)   syn match  GentooPackageUseUse contained
/[a-zA-Z0-9][a-zA-Z0-9\-_]*/

line 31: (CURRENT) syn match  GentooPackageUseUnuse contained
/-[a-zA-Z][a-zA-Z0-9\-_]*/
         (FIXED)   syn match  GentooPackageUseUnuse contained
/-[a-zA-Z0-9][a-zA-Z0-9\-_]*/


Reproducible: Always
Steps to Reproduce:
1. Enable syntax highlighting and syntax plugins in VIM
2. With app-vim/gentoo-syntax installed, open file /etc/portage/package.use in VIM
3.

Actual Results:  
The USE flags beginning with a number, and all other following that, don't
appear highlighted.

Expected Results:  
The USE flags beginning with a number must appear correctly highlighted.
Comment 1 Ryan Phillips (RETIRED) gentoo-dev 2005-07-25 09:10:41 UTC
Thanks. I've committed this to the repository and will make the next release.