Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 329311 - make gentoo-package-keywords.vim (app-vim/gentoo-syntax-20100215) accept tabs and spaces in the beginning of package atoms
Summary: make gentoo-package-keywords.vim (app-vim/gentoo-syntax-20100215) accept tabs...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal
Assignee: Dror Levin (RETIRED)
URL:
Whiteboard:
Keywords: InVCS
Depends on:
Blocks:
 
Reported: 2010-07-21 17:57 UTC by Angelo Arrifano (RETIRED)
Modified: 2010-12-12 03:17 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 Angelo Arrifano (RETIRED) gentoo-dev 2010-07-21 17:57:05 UTC
I like to append white spaces in the beginning of package atoms in package.keywords like this:
- -
 media-video/nvidia-settings           ~amd64
~media-video/ffmpeg-0.5_p21602         ~amd64
~media-libs/x264-0.0.20100118          ~amd64
 media-gfx/shotwell                    ~amd64
- -

This improves readability and portage seems to behave just fine with it.

Patch below makes vim colorize atoms prefixed by invisible characters, which otherwise are not colored.

--- /tmp/gentoo-package-keywords.vim	2010-07-21 19:33:51.797639028 +0200
+++ /usr/share/vim/vimfiles/syntax/gentoo-package-keywords.vim	2010-07-21 19:36:05.257618423 +0200
@@ -24,7 +24,7 @@
 syn match  GentooPackageKeywordsEmail contained /<[a-zA-Z0-9\-\_]\+@[a-zA-Z0-9\-\_\.]\+>/
 syn match  GentooPackageKeywordsDate  contained /(\(\d\d\?\s\w\+\|\w\+\s\d\d\?\)\s\d\{4\})/
 
-syn match  GentooPackageKeywordsAtom /^[^ \t\n#]\+\S\+\/\S\+/
+syn match  GentooPackageKeywordsAtom /^[\ \t]*[^ \t\n#]\+\S\+\/\S\+/
 	    \ nextgroup=GentooPackageKeywordsKeyword skipwhite
 syn match  GentooPackageKeywordsKeyword contained /-\?[-~]\?\([a-z0-9\-]\+\|\*\)/
 	    \ nextgroup=GentooPackageKeywordsKeyword skipwhite
Comment 1 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2010-12-12 03:17:39 UTC
Thanks for the patch(es)/fix(es).

+*gentoo-syntax-20101212 (12 Dec 2010)
+
+  12 Dec 2010; Jeremy Olexa <darkside@gentoo.org>
+  +gentoo-syntax-20101212.ebuild:
+  Version bump to fix bugs: 322247, 319809, 322871, 329311, 346477, 281481,
+  and other fixes