commit:     2c53a6edbd65fd15397b41ff3bc1470af44d5b56
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Tue Aug 21 08:01:42 2018 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Tue Aug 21 08:01:42 2018 +0000
URL:        https://gitweb.gentoo.org/proj/gentoo-syntax.git/commit/?id=2c53a6ed

syntax/gentoo-package-license: Distinct hi for @group/-disable

 syntax/gentoo-package-license.vim | 15 +++++++++++----
 1 file changed, 11 insertions(+), 4 deletions(-)

diff --git a/syntax/gentoo-package-license.vim 
b/syntax/gentoo-package-license.vim
index 7e64c73..a80c3cd 100644
--- a/syntax/gentoo-package-license.vim
+++ b/syntax/gentoo-package-license.vim
@@ -18,10 +18,17 @@ endif
 
 runtime syntax/gentoo-package-common.vim
 
-syn match  GentooPackageLicenseLicense contained 
/-\?@\?\([a-zA-Z0-9\-_.+]\+\|\*\)/
-    \ nextgroup=GentooPackageLicenseLicense skipwhite
-syn cluster GentooPackagePostAtom contains=GentooPackageLicenseLicense
+syn match  GentooPackageLicenseLicense contained /\([a-zA-Z0-9\-_.+]\+\|\*\)/
+    \ nextgroup=@GentooPackagePostAtom skipwhite
+syn match  GentooPackageLicenseUnLicense contained 
/-\([a-zA-Z0-9\-_.+]\+\|\*\)/
+    \ nextgroup=@GentooPackagePostAtom skipwhite
+syn match  GentooPackageLicenseLicenseGroup contained /-\?@[a-zA-Z0-9\-_.+]\+/
+    \ nextgroup=@GentooPackagePostAtom skipwhite
+syn cluster GentooPackagePostAtom contains=GentooPackageLicenseLicense,
+    \ GentooPackageLicenseUnLicense,GentooPackageLicenseLicenseGroup
 
-hi def link GentooPackageLicenseLicense          Keyword
+hi def link GentooPackageLicenseLicense          Special
+hi def link GentooPackageLicenseUnLicense        Keyword
+hi def link GentooPackageLicenseLicenseGroup     Type
 
 let b:current_syntax = "gentoo-package-license"

Reply via email to