| 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 packages | Assignee: | Vim Maintainers <vim> |
| Status: | RESOLVED FIXED | ||
| Severity: | minor | ||
| Priority: | High | ||
| Version: | unspecified | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Package list: | Runtime testing required: | --- | |
Thanks. I've committed this to the repository and will make the next release. |
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.