From 2c53a6edbd65fd15397b41ff3bc1470af44d5b56 Mon Sep 17 00:00:00 2001 From: Michał Górny Date: Tue, 21 Aug 2018 10:01:42 +0200 Subject: 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" -- cgit v1.2.3-65-gdbad