aboutsummaryrefslogtreecommitdiff
path: root/syntax
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2018-08-21 09:39:20 +0200
committerMichał Górny <mgorny@gentoo.org>2018-08-21 09:39:20 +0200
commit3a424a1a9bc37c46fa841208a897b693eff3cf34 (patch)
tree51417d611eb422cef773829754970ce0ca4183ee /syntax
parentsyntax: Move atom definition into gentoo-package-common (diff)
downloadgentoo-syntax-3a424a1a9bc37c46fa841208a897b693eff3cf34.tar.gz
gentoo-syntax-3a424a1a9bc37c46fa841208a897b693eff3cf34.tar.bz2
gentoo-syntax-3a424a1a9bc37c46fa841208a897b693eff3cf34.zip
syntax/gentoo-package-common: Fix handling 1-char atoms (e.g. '*')
Diffstat (limited to 'syntax')
-rw-r--r--syntax/gentoo-package-common.vim2
1 files changed, 1 insertions, 1 deletions
diff --git a/syntax/gentoo-package-common.vim b/syntax/gentoo-package-common.vim
index fe234c7..fb258c5 100644
--- a/syntax/gentoo-package-common.vim
+++ b/syntax/gentoo-package-common.vim
@@ -16,7 +16,7 @@ syn region GentooPackageComment start=/#/ end=/$/
syn match GentooPackageEmail contained /<[a-zA-Z0-9\-\_]\+@[a-zA-Z0-9\-\_\.]\+>/
syn match GentooPackageDate contained /(\(\d\d\?\s\w\+\|\w\+\s\d\d\?\)\s\d\{4\})/
-syn match GentooPackageAtom /^[\ \t]*[^ \t\n#]\+\S\+\/\S\+/
+syn match GentooPackageAtom /^[\ \t]*[^ \t\n#]\+\S*\/\S\+/
\ nextgroup=@GentooPackagePostAtom skipwhite
hi def link GentooPackageComment Comment