diff options
author | mattn <mattn.jp@gmail.com> | 2013-05-15 08:49:07 +0900 |
---|---|---|
committer | mattn <mattn.jp@gmail.com> | 2013-05-16 09:01:48 +0900 |
commit | a866d47b860d336b7aee84751d7f5b543ce5f88d (patch) | |
tree | 447fc60ba390af874097507b68cca75adb8c1369 /autoload | |
parent | efc09b1faa3fb90b2194c502768254973bb4341f (diff) | |
download | vim-sonictemplate-a866d47b860d336b7aee84751d7f5b543ce5f88d.tar.gz vim-sonictemplate-a866d47b860d336b7aee84751d7f5b543ce5f88d.tar.bz2 vim-sonictemplate-a866d47b860d336b7aee84751d7f5b543ce5f88d.zip |
Allow dash for filter
Diffstat (limited to 'autoload')
-rw-r--r-- | autoload/sonictemplate.vim | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/autoload/sonictemplate.vim b/autoload/sonictemplate.vim index 1728de8..a3da853 100644 --- a/autoload/sonictemplate.vim +++ b/autoload/sonictemplate.vim @@ -1,7 +1,7 @@ "============================================================================= " sonictemplate.vim " Author: Yasuhiro Matsumoto <mattn.jp@gmail.com> -" Last Change: 09-May-2013. +" Last Change: 15-May-2013. let s:save_cpo = &cpo set cpo&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_:\(\W\+\)}}\s*' let bf = matchstr(c, mx) if len(bf) > 0 call s:setopt('filter', substitute(bf, mx, '\1', '')) |