aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2011-09-06 20:55:15 +0100
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2011-09-06 20:55:15 +0100
commit18a44349596464f1ae6a18da5fff2afcbccab2c9 (patch)
tree351e1fe160cc29765141abbaccba6086f30303d8
parent31c65620a222fcb6f0f8746016e28321ccbe24c1 (diff)
downloadpaludis-18a44349596464f1ae6a18da5fff2afcbccab2c9.tar.gz
paludis-18a44349596464f1ae6a18da5fff2afcbccab2c9.tar.xz
Syntax for groups
-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 382fb1e..6a15da4 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"