From d005017de79d94b5779707c9585e94199271de01 Mon Sep 17 00:00:00 2001 From: mattn Date: Wed, 15 May 2013 08:51:37 +0900 Subject: Allow underscore for filter name --- autoload/sonictemplate.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'autoload') 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', '')) -- cgit v1.2.3-54-g00ecf