diff options
author | Michał Górny <mgorny@gentoo.org> | 2018-08-21 09:58:26 +0200 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2018-08-21 09:58:26 +0200 |
commit | 76c9ab7ff4535cb2cfb3d38d40adc7e7f87f96b8 (patch) | |
tree | 3a774b3373f7fd8e2b9ba9f29e315d2d705adc80 | |
parent | syntax/gentoo-package-use: Support '*' and '-*' flag wildcards (diff) | |
download | gentoo-syntax-76c9ab7ff4535cb2cfb3d38d40adc7e7f87f96b8.tar.gz gentoo-syntax-76c9ab7ff4535cb2cfb3d38d40adc7e7f87f96b8.tar.bz2 gentoo-syntax-76c9ab7ff4535cb2cfb3d38d40adc7e7f87f96b8.zip |
syntax/gentoo-package-keywords: Use distinct highlights for st/~/**
-rw-r--r-- | syntax/gentoo-package-keywords.vim | 13 |
1 files 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" |