Permalink
Browse files

Match modelines which use +=/-=/^=

Signed-off-by: James McCoy <vega.james@gmail.com>
  • Loading branch information...
1 parent 6463c58 commit a6e48cd3fb81979e1ecd1a86fbd4a26f37ad93ae @jamessan committed Dec 15, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 plugin/securemodelines.vim
@@ -55,7 +55,7 @@ fun! <SID>IsInList(list, i) abort
endfun
fun! <SID>DoOne(item) abort
- let l:matches = matchlist(a:item, '^\([a-z]\+\)\%(=[a-zA-Z0-9_\-.]\+\)\?$')
+ let l:matches = matchlist(a:item, '^\([a-z]\+\)\%([-+^]\?=[a-zA-Z0-9_\-.]\+\)\?$')
if len(l:matches) > 0
if <SID>IsInList(g:secure_modelines_allowed_items, l:matches[1])
exec "setlocal " . a:item

0 comments on commit a6e48cd

Please sign in to comment.