aboutsummaryrefslogtreecommitdiff
path: root/vim/syntax/paludis-suggestions-conf.vim
diff options
context:
space:
mode:
Diffstat (limited to 'vim/syntax/paludis-suggestions-conf.vim')
-rw-r--r--vim/syntax/paludis-suggestions-conf.vim21
1 files changed, 10 insertions, 11 deletions
diff --git a/vim/syntax/paludis-suggestions-conf.vim b/vim/syntax/paludis-suggestions-conf.vim
index e76716058..11d62d93f 100644
--- a/vim/syntax/paludis-suggestions-conf.vim
+++ b/vim/syntax/paludis-suggestions-conf.vim
@@ -18,24 +18,23 @@ endif
syn region PaludisSuggestionsConfComment start=/^\s*#/ end=/$/
syn match PaludisSuggestionsConfPDS /^[^ \t#\/]\+\/[^ \t#\/]\+\s*/
- \ nextgroup=PaludisSuggestionsConfName,PaludisSuggestionsConfStars,PaludisSuggestionsConfContinuation
- \ contains=PaludisSuggestionsConfWildcard
+ \ nextgroup=PaludisSuggestionsConfName,PaludisSuggestionsConfGroup,PaludisSuggestionsConfContinuation
+ \ contains=PaludisSuggestionsConfWildcard
syn match PaludisSuggestionsConfWildcard contained /\(\*\/\@=\|\/\@<=\*\)/
-syn match PaludisSuggestionsConfSet /^[^ \t#\/]\+\S\@!/
- \ nextgroup=PaludisSuggestionsConfName,PaludisSuggestionsConfStars,PaludisSuggestionsConfContinuation skipwhite
-syn match PaludisSuggestionsConfName contained /-\?[a-zA-Z0-9\-_]\+\/[a-zA-Z0-9\-_+]\+/
- \ nextgroup=PaludisSuggestionsConfName,PaludisSuggestionsConfStars,PaludisSuggestionsConfContinuation skipwhite
-syn match PaludisSuggestionsConfStars contained /-\?\*\/\*/
- \ nextgroup=PaludisSuggestionsConfName,PaludisSuggestionsConfStars,PaludisSuggestionsConfContinuation skipwhite
+syn match PaludisSuggestionsConfGroup contained /-\?[a-zA-Z0-9\-_]\+\S\@!/
+ \ nextgroup=PaludisSuggestionsConfName,PaludisSuggestionsConfGroup,PaludisSuggestionsConfContinuation skipwhite
+ \ contains=PaludisSuggestionsConfWildcard
+syn match PaludisSuggestionsConfName contained /-\?\(\*\|[a-zA-Z0-9\-_]\+\)\/\(\*\|[a-zA-Z0-9\-_+]\)\+/
+ \ nextgroup=PaludisSuggestionsConfName,PaludisSuggestionsConfGroup,PaludisSuggestionsConfContinuation skipwhite
+ \ contains=PaludisSuggestionsConfWildcard
syn match PaludisSuggestionsConfContinuation contained /\\$/
- \ nextgroup=PaludisSuggestionsConfName,PaludisSuggestionsConfStars,PaludisSuggestionsConfContinuation skipwhite skipnl
+ \ nextgroup=PaludisSuggestionsConfName,PaludisSuggestionsConfGroup,PaludisSuggestionsConfContinuation skipwhite skipnl
hi def link PaludisSuggestionsConfComment Comment
hi def link PaludisSuggestionsConfPDS Identifier
hi def link PaludisSuggestionsConfWildcard Special
-hi def link PaludisSuggestionsConfSet Special
+hi def link PaludisSuggestionsConfGroup Macro
hi def link PaludisSuggestionsConfName Keyword
-hi def link PaludisSuggestionsConfStars Keyword
hi def link PaludisSuggestionsConfContinuation Preproc
let b:current_syntax = "paludis-suggestions-conf"