aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Kelly <pioto@gentoo.org>2007-02-12 15:44:47 +0000
committerMike Kelly <pioto@gentoo.org>2007-02-12 15:44:47 +0000
commit8fcd22e463e3eca3abc650c855c657a36e0c3830 (patch)
tree0f8f082fc1f8e6ef2dda8d368bb19c919c1d0fc7
parentMake gentoo-use-desc.vim accept qualified package names according to the upco... (diff)
downloadgentoo-syntax-8fcd22e463e3eca3abc650c855c657a36e0c3830.tar.gz
gentoo-syntax-8fcd22e463e3eca3abc650c855c657a36e0c3830.tar.bz2
gentoo-syntax-8fcd22e463e3eca3abc650c855c657a36e0c3830.zip
Make gentoo-use-desc.vim accept USE flags as specified by PMS.
svn path=/trunk/; revision=26
-rw-r--r--doc/gentoo-syntax.txt3
-rw-r--r--syntax/gentoo-use-desc.vim2
2 files changed, 4 insertions, 1 deletions
diff --git a/doc/gentoo-syntax.txt b/doc/gentoo-syntax.txt
index 03c48ed..e6d6ee0 100644
--- a/doc/gentoo-syntax.txt
+++ b/doc/gentoo-syntax.txt
@@ -274,6 +274,9 @@ Authors: Ciaran McCreesh <ciaranm at gentoo dot org>
3. ChangeLog *gentoo-syntax-changelog*
20070212 pioto
+ * Make gentoo-use-desc.vim accept USE flags as specified by PMS.
+
+ 20070212 pioto
* Make gentoo-use-desc.vim accept qualified package names
according to the upcoming PMS standard (allow + in PN, for
example).
diff --git a/syntax/gentoo-use-desc.vim b/syntax/gentoo-use-desc.vim
index 9c5ace0..ed641c0 100644
--- a/syntax/gentoo-use-desc.vim
+++ b/syntax/gentoo-use-desc.vim
@@ -23,7 +23,7 @@ syn region GentooUseDescComment start=/#/ end=/$/
syn match GentooUseDescPackage /^\(#\)\@!\([a-zA-Z0-9\-\_+\.]\+\/[a-zA-Z0-9\-\_+]\+\)\?/ nextgroup=GentooUseDescColon,GentooUseDescFlag skipwhite
syn match GentooUseDescColon /:/ contained nextgroup=GentooUseDescFlag
-syn match GentooUseDescFlag contained /[a-zA-Z0-9\-\_]\+/ nextgroup=GentooUseDescDash skipwhite
+syn match GentooUseDescFlag contained /[a-zA-Z0-9\-\_+@:]\+/ nextgroup=GentooUseDescDash skipwhite
syn match GentooUseDescDash /-\s*/ contained nextgroup=GentooUseDescDesc skipwhite
syn region GentooUseDescDesc start=// end=/$/ contained skipwhite