diff options
author | Michał Górny <mgorny@gentoo.org> | 2018-08-21 10:01:42 +0200 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2018-08-21 10:01:42 +0200 |
commit | 2c53a6edbd65fd15397b41ff3bc1470af44d5b56 (patch) | |
tree | dee8f4a13298ec8e1610859aa8610aacb002d0a7 | |
parent | syntax/gentoo-package-keywords: Use distinct highlights for st/~/** (diff) | |
download | gentoo-syntax-20180821.tar.gz gentoo-syntax-20180821.tar.bz2 gentoo-syntax-20180821.zip |
syntax/gentoo-package-license: Distinct hi for @group/-disablegentoo-syntax-20180821
-rw-r--r-- | syntax/gentoo-package-license.vim | 15 |
1 files 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" |