aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2018-08-21 09:10:51 +0200
committerMichał Górny <mgorny@gentoo.org>2018-08-21 09:10:51 +0200
commit4451cbdf4026a828232ba87b73f69feed54b41ab (patch)
treee9c8fe2fe2c6ad0d567e28ac176858376d04ed54 /syntax/gentoo-package-license.vim
parentsyntax/gentoo-make-conf: Remove USE_EXPAND var highlights (diff)
downloadgentoo-syntax-4451cbdf4026a828232ba87b73f69feed54b41ab.tar.gz
gentoo-syntax-4451cbdf4026a828232ba87b73f69feed54b41ab.tar.bz2
gentoo-syntax-4451cbdf4026a828232ba87b73f69feed54b41ab.zip
syntax: Move package.*/etc. common rules to common file
Diffstat (limited to 'syntax/gentoo-package-license.vim')
-rw-r--r--syntax/gentoo-package-license.vim11
1 files changed, 1 insertions, 10 deletions
diff --git a/syntax/gentoo-package-license.vim b/syntax/gentoo-package-license.vim
index 824d70a..8764a66 100644
--- a/syntax/gentoo-package-license.vim
+++ b/syntax/gentoo-package-license.vim
@@ -16,22 +16,13 @@ if exists("b:current_syntax")
finish
endif
-runtime syntax/gentoo-common.vim
-
-syn region GentooPackageLicenseComment start=/#/ end=/$/
- \ contains=GentooPackageLicenseEmail,GentooPackageLicenseDate,GentooBug
-
-syn match GentooPackageLicenseEmail contained /<[a-zA-Z0-9\-\_]\+@[a-zA-Z0-9\-\_\.]\+>/
-syn match GentooPackageLicenseDate contained /(\(\d\d\?\s\w\+\|\w\+\s\d\d\?\)\s\d\{4\})/
+runtime syntax/gentoo-package-common.vim
syn match GentooPackageLicenseAtom /^[^ \t\n#]\+\S\+\/\S\+/
\ nextgroup=GentooPackageLicenseLicense skipwhite
syn match GentooPackageLicenseLicense contained /-\?@\?\([a-zA-Z0-9\-_.+]\+\|\*\)/
\ nextgroup=GentooPackageLicenseLicense skipwhite
-hi def link GentooPackageLicenseComment Comment
-hi def link GentooPackageLicenseEmail Special
-hi def link GentooPackageLicenseDate Number
hi def link GentooPackageLicenseAtom Identifier
hi def link GentooPackageLicenseLicense Keyword