commit:     76c9ab7ff4535cb2cfb3d38d40adc7e7f87f96b8
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Tue Aug 21 07:58:26 2018 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Tue Aug 21 07:58:26 2018 +0000
URL:        https://gitweb.gentoo.org/proj/gentoo-syntax.git/commit/?id=76c9ab7f

syntax/gentoo-package-keywords: Use distinct highlights for st/~/**

 syntax/gentoo-package-keywords.vim | 13 ++++++++++---
 1 file changed, 10 insertions(+), 3 deletions(-)

diff --git a/syntax/gentoo-package-keywords.vim 
b/syntax/gentoo-package-keywords.vim
index 85bc35b..95bdeeb 100644
--- a/syntax/gentoo-package-keywords.vim
+++ b/syntax/gentoo-package-keywords.vim
@@ -18,10 +18,17 @@ endif
 
 runtime syntax/gentoo-package-common.vim
 
-syn match  GentooPackageKeywordsKeyword contained 
/-\?[-~]\?\([a-z0-9\-]\+\|\*\)/
-    \ nextgroup=GentooPackageKeywordsKeyword skipwhite
-syn cluster GentooPackagePostAtom contains=GentooPackageKeywordsKeyword
+syn match  GentooPackageKeywordsStableKeyword contained 
/-\?\([a-z0-9\-]\+\|\*\)/
+    \ nextgroup=@GentooPackagePostAtom skipwhite
+syn match  GentooPackageKeywordsKeyword contained /-\?\~\([a-z0-9\-]\+\|\*\)/
+    \ nextgroup=@GentooPackagePostAtom skipwhite
+syn match  GentooPackageKeywordsAllKeyword contained /-\?\*\*/
+    \ nextgroup=@GentooPackagePostAtom skipwhite
+syn cluster GentooPackagePostAtom contains=GentooPackageKeywordsKeyword,
+    \ GentooPackageKeywordsStableKeyword,GentooPackageKeywordsAllKeyword
 
 hi def link GentooPackageKeywordsKeyword          Keyword
+hi def link GentooPackageKeywordsStableKeyword    Special
+hi def link GentooPackageKeywordsAllKeyword       Type
 
 let b:current_syntax = "gentoo-package-keywords"

Reply via email to