aboutsummaryrefslogtreecommitdiff
path: root/vim/syntax/paludis-licenses-conf.vim
diff options
context:
space:
mode:
Diffstat (limited to 'vim/syntax/paludis-licenses-conf.vim')
-rw-r--r--vim/syntax/paludis-licenses-conf.vim13
1 files changed, 8 insertions, 5 deletions
diff --git a/vim/syntax/paludis-licenses-conf.vim b/vim/syntax/paludis-licenses-conf.vim
index 382fb1e44..6a15da45f 100644
--- a/vim/syntax/paludis-licenses-conf.vim
+++ b/vim/syntax/paludis-licenses-conf.vim
@@ -1,7 +1,7 @@
" Vim syntax file
" Language: Paludis licenses.conf files
" Author: Ciaran McCreesh
-" Copyright: Copyright (c) 2007 Ciaran McCreesh
+" Copyright: Copyright (c) 2007, 2011 Ciaran McCreesh
" Licence: You may redistribute this under the same terms as Vim itself
"
" Syntax highlighting for Paludis licenses.conf files.
@@ -18,21 +18,24 @@ endif
syn region PaludisLicensesConfComment start=/^\s*#/ end=/$/
syn match PaludisLicensesConfPDS /^[^ \t#\/]\+\/[^ \t#\/]\+\s*/
- \ nextgroup=PaludisLicensesConfLicense,PaludisLicensesConfContinuation
+ \ nextgroup=PaludisLicensesConfLicense,PaludisLicensesConfLicenseGroup,PaludisLicensesConfContinuation
\ contains=PaludisLicensesConfWildcard
syn match PaludisLicensesConfWildcard contained /\(\*\/\@=\|\/\@<=\*\)/
syn match PaludisLicensesConfSet /^[^ \t#\/]\+\S\@!/
- \ nextgroup=PaludisLicensesConfLicense,PaludisLicensesConfContinuation skipwhite
+ \ nextgroup=PaludisLicensesConfLicense,PaludisLicensesConfLicenseGroup,PaludisLicensesConfContinuation skipwhite
syn match PaludisLicensesConfLicense contained /-\?[a-zA-Z0-9\-_*]\+/
- \ nextgroup=PaludisLicensesConfLicense,PaludisLicensesConfContinuation skipwhite
+ \ nextgroup=PaludisLicensesConfLicense,PaludisLicensesConfLicenseGroup,PaludisLicensesConfContinuation skipwhite
+syn match PaludisLicensesConfLicenseGroup contained /@[a-zA-Z0-9\-_*]\+/
+ \ nextgroup=PaludisLicensesConfLicense,PaludisLicensesConfLicenseGroup,PaludisLicensesConfContinuation skipwhite
syn match PaludisLicensesConfContinuation contained /\\$/
- \ nextgroup=PaludisLicensesConfLicense,PaludisLicensesConfContinuation skipwhite skipnl
+ \ nextgroup=PaludisLicensesConfLicense,PaludisLicensesConfLicenseGroup,PaludisLicensesConfContinuation skipwhite skipnl
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 PaludisLicensesConfLicense Macro
hi def link PaludisLicensesConfContinuation Preproc
let b:current_syntax = "paludis-licenses-conf"