aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2007-04-17 07:48:48 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2007-04-17 07:48:48 +0000
commitd21cb17f778ea4a06120719d65e4e1c8a0c7fc7f (patch)
tree0a1f0fb6ca97260bca74d10933cefae3e38d795f
parentd099cef48cd25a65f34bb48506c8ee75f335cea8 (diff)
downloadpaludis-d21cb17f778ea4a06120719d65e4e1c8a0c7fc7f.tar.gz
paludis-d21cb17f778ea4a06120719d65e4e1c8a0c7fc7f.tar.xz
Show * in vim syntax files
-rw-r--r--vim/syntax/paludis-keywords-conf.vim3
-rw-r--r--vim/syntax/paludis-licenses-conf.vim3
-rw-r--r--vim/syntax/paludis-package-mask-conf.vim3
-rw-r--r--vim/syntax/paludis-use-conf.vim3
4 files changed, 12 insertions, 0 deletions
diff --git a/vim/syntax/paludis-keywords-conf.vim b/vim/syntax/paludis-keywords-conf.vim
index d22e23d..a9d788d 100644
--- a/vim/syntax/paludis-keywords-conf.vim
+++ b/vim/syntax/paludis-keywords-conf.vim
@@ -19,6 +19,8 @@ syn region PaludisKeywordsConfComment start=/^\s*#/ end=/$/
syn match PaludisKeywordsConfPDS /^[^ \t#\/]\+\/[^ \t#\/]\+\s*/
\ nextgroup=PaludisKeywordsConfKeyword,PaludisKeywordsConfContinuation
+ \ contains=PaludisKeywordsConfWildcard
+syn match PaludisKeywordsConfWildcard contained /\(\*\/\@=\|\/\@<=\*\)/
syn match PaludisKeywordsConfSet /^[^ \t#\/]\+\S\@!/
\ nextgroup=PaludisKeywordsConfKeyword,PaludisKeywordsConfContinuation skipwhite
syn match PaludisKeywordsConfKeyword contained /-\?\~\?[a-zA-Z0-9\-_*]\+/
@@ -28,6 +30,7 @@ syn match PaludisKeywordsConfContinuation contained /\\$/
hi def link PaludisKeywordsConfComment Comment
hi def link PaludisKeywordsConfPDS Identifier
+hi def link PaludisKeywordsConfWildcard Special
hi def link PaludisKeywordsConfSet Special
hi def link PaludisKeywordsConfKeyword Keyword
hi def link PaludisKeywordsConfContinuation Preproc
diff --git a/vim/syntax/paludis-licenses-conf.vim b/vim/syntax/paludis-licenses-conf.vim
index 496d249..142e658 100644
--- a/vim/syntax/paludis-licenses-conf.vim
+++ b/vim/syntax/paludis-licenses-conf.vim
@@ -19,6 +19,8 @@ syn region PaludisLicensesConfComment start=/^\s*#/ end=/$/
syn match PaludisLicensesConfPDS /^[^ \t#\/]\+\/[^ \t#\/]\+\s*/
\ nextgroup=PaludisLicensesConfLicense,PaludisLicensesConfContinuation
+ \ contains=PaludisLicensesConfWildcard
+syn match PaludisLicensesConfWildcard contained /\(\*\/\@=\|\/\@<=\*\)/
syn match PaludisLicensesConfSet /^[^ \t#\/]\+\S\@!/
\ nextgroup=PaludisLicensesConfLicense,PaludisLicensesConfContinuation skipwhite
syn match PaludisLicensesConfLicense contained /-\?[a-zA-Z0-9\-_*]\+/
@@ -28,6 +30,7 @@ syn match PaludisLicensesConfContinuation contained /\\$/
hi def link PaludisLicensesConfComment Comment
hi def link PaludisLicensesConfPDS Identifier
+hi def link PaludisLicensesConfWildcard Special
hi def link PaludisLicensesConfSet Special
hi def link PaludisLicensesConfLicense Keyword
hi def link PaludisLicensesConfContinuation Preproc
diff --git a/vim/syntax/paludis-package-mask-conf.vim b/vim/syntax/paludis-package-mask-conf.vim
index 7f86a88..0bdc305 100644
--- a/vim/syntax/paludis-package-mask-conf.vim
+++ b/vim/syntax/paludis-package-mask-conf.vim
@@ -18,11 +18,14 @@ endif
syn region PaludisPackageMaskConfComment start=/^\s*#/ end=/$/
syn match PaludisPackageMaskConfPDS /^[^ \t#\/]\+\/[^ \t#\/]\+\s*/
+ \ contains=PaludisPackageMaskConfWildcard
+syn match PaludisPackageMaskConfWildcard contained /\(\*\/\@=\|\/\@<=\*\)/
syn match PaludisPackageMaskConfSet /^[^ \t#\/]\+\S\@!/
hi def link PaludisPackageMaskConfComment Comment
hi def link PaludisPackageMaskConfPDS Identifier
hi def link PaludisPackageMaskConfSet Special
+hi def link PaludisPackageMaskConfWildcard Special
let b:current_syntax = "paludis-package-mask-conf"
diff --git a/vim/syntax/paludis-use-conf.vim b/vim/syntax/paludis-use-conf.vim
index d2304cb..2779ece 100644
--- a/vim/syntax/paludis-use-conf.vim
+++ b/vim/syntax/paludis-use-conf.vim
@@ -19,6 +19,8 @@ syn region PaludisUseConfComment start=/^\s*#/ end=/$/
syn match PaludisUseConfPDS /^[^ \t#\/]\+\/[^ \t#\/]\+\s*/
\ nextgroup=PaludisUseConfFlag,PaludisUseConfContinuation
+ \ contains=PaludisUseConfWildcard
+syn match PaludisUseConfWildcard contained /\(\*\/\@=\|\/\@<=\*\)/
syn match PaludisUseConfSet /^[^ \t#\/]\+\S\@!/
\ nextgroup=PaludisUseConfFlag,PaludisUseConfPrefix,PaludisUseConfContinuation skipwhite
syn match PaludisUseConfFlag contained /[a-zA-Z0-9\-_*]\+:\@!/
@@ -31,6 +33,7 @@ syn match PaludisUseConfContinuation contained /\\$/
hi def link PaludisUseConfComment Comment
hi def link PaludisUseConfPDS Identifier
hi def link PaludisUseConfSet Special
+hi def link PaludisUseConfWildcard Special
hi def link PaludisUseConfPrefix Constant
hi def link PaludisUseConfFlag Keyword
hi def link PaludisUseConfContinuation Preproc