summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2018-08-21 09:51:10 +0200
committerMichał Górny <mgorny@gentoo.org>2018-08-21 09:51:31 +0200
commitad00dd068848520811e07034af2bc9fa5d2266e7 (patch)
treec79c25e2612e266fd32078c2d1254192118ae56b
parentsyntax/gentoo-package-use: Color USE_EXPAND distinctly (diff)
downloadgentoo-syntax-ad00dd068848520811e07034af2bc9fa5d2266e7.tar.gz
gentoo-syntax-ad00dd068848520811e07034af2bc9fa5d2266e7.tar.bz2
gentoo-syntax-ad00dd068848520811e07034af2bc9fa5d2266e7.zip
syntax/gentoo-package-use: Support '*' and '-*' flag wildcards
-rw-r--r--syntax/gentoo-package-use.vim4
1 files changed, 2 insertions, 2 deletions
diff --git a/syntax/gentoo-package-use.vim b/syntax/gentoo-package-use.vim
index 251367e..0a97da3 100644
--- a/syntax/gentoo-package-use.vim
+++ b/syntax/gentoo-package-use.vim
@@ -19,11 +19,11 @@ endif
runtime syntax/gentoo-package-common.vim
syn match GentooPackageUseUse contained
- \ /[a-zA-Z0-9][a-zA-Z0-9\-_]*\(:\)\@!/
+ \ /\([a-zA-Z0-9][a-zA-Z0-9\-_]*\|\*\)\(:\)\@!/
\ nextgroup=GentooPackageUseUse,GentooPackageUseUnuse,
\ GentooPackageUseExpand skipwhite
syn match GentooPackageUseUnuse contained
- \ /-[a-zA-Z0-9][a-zA-Z0-9\-_]*\(:\)\@!/
+ \ /-\([a-zA-Z0-9][a-zA-Z0-9\-_]*\|\*\)\(:\)\@!/
\ nextgroup=GentooPackageUseUse,GentooPackageUseUnuse,
\ GentooPackageUseExpand skipwhite
syn match GentooPackageUseExpand contained