aboutsummaryrefslogtreecommitdiff
path: root/vim
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2009-08-09 15:36:38 +0100
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2009-08-09 02:49:19 +0100
commit7d26dfa099626ddc354f1793b071f3b5c12b8923 (patch)
tree788f1736bbfc268e771673d3a731ebec6256ab42 /vim
parentb27f5bc69db94543a9018b5150222ffab7f659e6 (diff)
downloadpaludis-7d26dfa099626ddc354f1793b071f3b5c12b8923.tar.gz
paludis-7d26dfa099626ddc354f1793b071f3b5c12b8923.tar.xz
Add parameterised choice values.
Diffstat (limited to 'vim')
-rw-r--r--vim/syntax/paludis-use-conf.vim7
1 files changed, 5 insertions, 2 deletions
diff --git a/vim/syntax/paludis-use-conf.vim b/vim/syntax/paludis-use-conf.vim
index fbb91854d..02dae6ea0 100644
--- a/vim/syntax/paludis-use-conf.vim
+++ b/vim/syntax/paludis-use-conf.vim
@@ -1,7 +1,7 @@
" Vim syntax file
" Language: Paludis use.conf files
" Author: Ciaran McCreesh
-" Copyright: Copyright (c) 2007 Ciaran McCreesh
+" Copyright: Copyright (c) 2007, 2009 Ciaran McCreesh
" Licence: You may redistribute this under the same terms as Vim itself
"
" Syntax highlighting for Paludis use.conf files.
@@ -23,7 +23,9 @@ syn match PaludisUseConfPDS /^[^ \t#\/]\+\/[^ \t#\/]\+\s*/
syn match PaludisUseConfWildcard contained /\(\*\/\@=\|\/\@<=\*\)/
syn match PaludisUseConfSet /^[^ \t#\/]\+\S\@!/
\ nextgroup=PaludisUseConfFlag,PaludisUseConfPrefix,PaludisUseConfContinuation skipwhite
-syn match PaludisUseConfFlag contained /\S\@<![a-zA-Z0-9\-_*]\+\S\@!/
+syn match PaludisUseConfFlag contained /\S\@<![a-zA-Z0-9\-_*]\+\(\S\@!\|=\@=\)/
+ \ nextgroup=PaludisUseConfFlag,PaludisUseConfFlagValue,PaludisUseConfPrefix,PaludisUseConfContinuation skipwhite
+syn match PaludisUseConfFlagValue contained /=\S*/
\ nextgroup=PaludisUseConfFlag,PaludisUseConfPrefix,PaludisUseConfContinuation skipwhite
syn match PaludisUseConfPrefix contained /[a-zA-Z0-9_*][a-zA-Z0-9\-_*]*:/
\ nextgroup=PaludisUseConfFlag,PaludisUseConfPrefix,PaludisUseConfContinuation skipwhite
@@ -36,6 +38,7 @@ hi def link PaludisUseConfSet Special
hi def link PaludisUseConfWildcard Special
hi def link PaludisUseConfPrefix Constant
hi def link PaludisUseConfFlag Keyword
+hi def link PaludisUseConfFlagValue Type
hi def link PaludisUseConfContinuation Preproc
let b:current_syntax = "paludis-use-conf"