aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormattn <mattn.jp@gmail.com>2014-10-30 14:58:27 +0900
committermattn <mattn.jp@gmail.com>2014-10-30 14:58:27 +0900
commit42e3770909de7ae6628bb7656060ceb1993c5b4b (patch)
tree8af59b2b83993d2c37dbe3202126f6369284c152
parentf085dcd35d729f1098be69a325fdb3278f6f08f3 (diff)
downloadvim-sonictemplate-42e3770909de7ae6628bb7656060ceb1993c5b4b.tar.gz
vim-sonictemplate-42e3770909de7ae6628bb7656060ceb1993c5b4b.tar.bz2
vim-sonictemplate-42e3770909de7ae6628bb7656060ceb1993c5b4b.zip
Fix removing _define_
-rw-r--r--autoload/sonictemplate.vim2
1 files changed, 1 insertions, 1 deletions
diff --git a/autoload/sonictemplate.vim b/autoload/sonictemplate.vim
index 116a1aa..9f742ff 100644
--- a/autoload/sonictemplate.vim
+++ b/autoload/sonictemplate.vim
@@ -247,7 +247,7 @@ function! sonictemplate#apply(name, mode, ...) abort
endif
let var = substitute(match, mx, '\1', 'ig')
let val = eval(substitute(match, mx, '\2', 'ig'))
- let c = substitute(c, mx, '', 'g')
+ let c = substitute(c, '{{_define_:' . var . ':\(.\{-}\)}}\s*', '', 'g')
let c = substitute(c, '\V{{_var_:'.var.'}}', '\=val', 'g')
let s:vars[ft][var] = val
endwhile