1 function! Pl#Match#Add(pat, expr) " {{{
4 function! Pl#Match#Any(...) " {{{
7 for match_name in a:000
9 " Skip empty match parameters
13 if has_key(g:Powerline#Matches#matches, match_name)
14 call add(matches, g:Powerline#Matches#matches[match_name])
20 return ['match', 'any', matches]
22 function! Pl#Match#Validate(theme) " {{{
23 let match = a:theme.matches[1]
28 let matches = a:theme.matches[2]
31 " Empty match array matches everything
35 for [eval, re] in matches
36 if match(eval(eval), '\v'. re) != -1