aboutsummaryrefslogtreecommitdiff
path: root/vim/syntax/paludis-suggestions-conf.vim
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2010-12-19 18:55:31 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2010-12-19 18:55:31 +0000
commitc1f12a3490d56eb57902ccc9615c29ea03925383 (patch)
tree6468eaa51a1f4d016484289e22f950d84f813d8d /vim/syntax/paludis-suggestions-conf.vim
parentd83965fef9cb945a2dd42fc17d709fbfac1ce0fe (diff)
downloadpaludis-c1f12a3490d56eb57902ccc9615c29ea03925383.tar.gz
paludis-c1f12a3490d56eb57902ccc9615c29ea03925383.tar.xz
Support groups in suggestions.conf
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"