aboutsummaryrefslogtreecommitdiff
path: root/vim
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2011-02-21 19:54:57 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2011-02-26 15:25:00 +0000
commitd465cb3a77b010a7c0ab791e69012143ad5405b7 (patch)
tree7b64a6d88356296a19219f89789d28322fe3a419 /vim
parent393adbc779c4bf332e9bb966a14f73fea002ae41 (diff)
downloadpaludis-d465cb3a77b010a7c0ab791e69012143ad5405b7.tar.gz
paludis-d465cb3a77b010a7c0ab791e69012143ad5405b7.tar.xz
Allow unmasking by token kind in Paludis configs
Diffstat (limited to 'vim')
-rw-r--r--vim/syntax/paludis-package-mask-conf.vim8
1 files changed, 7 insertions, 1 deletions
diff --git a/vim/syntax/paludis-package-mask-conf.vim b/vim/syntax/paludis-package-mask-conf.vim
index 2b9e9a676..32bf8d139 100644
--- a/vim/syntax/paludis-package-mask-conf.vim
+++ b/vim/syntax/paludis-package-mask-conf.vim
@@ -1,7 +1,7 @@
" Vim syntax file
" Language: Paludis package_{un,}mask.conf files
" Author: Ciaran McCreesh
-" Copyright: Copyright (c) 2007, 2010 Ciaran McCreesh
+" Copyright: Copyright (c) 2007, 2010, 2011 Ciaran McCreesh
" Licence: You may redistribute this under the same terms as Vim itself
"
" Syntax highlighting for Paludis package_{un,}mask.conf files.
@@ -19,13 +19,19 @@ syn region PaludisPackageMaskConfComment start=/^\s*#/ end=/$/
syn match PaludisPackageMaskConfPDS /^[^ \t#\/]\+\/[^ \t#\/]\+\s*/
\ contains=PaludisPackageMaskConfWildcard
+ \ nextgroup=PaludisPackageMaskToken skipwhite
syn match PaludisPackageMaskConfWildcard contained /\(\*\/\@=\|\/\@<=\*\)/
+ \ nextgroup=PaludisPackageMaskToken skipwhite
syn match PaludisPackageMaskConfSet /^[^ \t#\/]\+\S\@!/
+ \ nextgroup=PaludisPackageMaskToken skipwhite
+syn match PaludisPackageMaskToken /\w\+/
+ \ contained skipwhite nextgroup=PaludisPackageMaskToken
hi def link PaludisPackageMaskConfComment Comment
hi def link PaludisPackageMaskConfPDS Identifier
hi def link PaludisPackageMaskConfSet Special
hi def link PaludisPackageMaskConfWildcard Special
+hi def link PaludisPackageMaskToken Macro
let b:current_syntax = "paludis-package-mask-conf"