aboutsummaryrefslogtreecommitdiff
path: root/autoload
diff options
context:
space:
mode:
authormattn <mattn.jp@gmail.com>2013-05-15 08:51:37 +0900
committermattn <mattn.jp@gmail.com>2013-05-16 09:01:49 +0900
commitd005017de79d94b5779707c9585e94199271de01 (patch)
tree91c991ef19a5df6e51593a9923e21ba046ed315b /autoload
parent90f3d4fa65310db9a033875e63bc22197077fabb (diff)
downloadvim-sonictemplate-d005017de79d94b5779707c9585e94199271de01.tar.gz
vim-sonictemplate-d005017de79d94b5779707c9585e94199271de01.tar.bz2
vim-sonictemplate-d005017de79d94b5779707c9585e94199271de01.zip
Allow underscore for filter name
Diffstat (limited to 'autoload')
-rw-r--r--autoload/sonictemplate.vim2
1 files changed, 1 insertions, 1 deletions
diff --git a/autoload/sonictemplate.vim b/autoload/sonictemplate.vim
index a3da853..6d0981e 100644
--- a/autoload/sonictemplate.vim
+++ b/autoload/sonictemplate.vim
@@ -218,7 +218,7 @@ function! sonictemplate#apply(name, mode, ...) abort
if len(c) == 0
return
endif
- let mx = '{{_filter_:\(\W\+\)}}\s*'
+ let mx = '{{_filter_:\([a-zA-Z0-9_-]\+\)}}\s*'
let bf = matchstr(c, mx)
if len(bf) > 0
call s:setopt('filter', substitute(bf, mx, '\1', ''))