diff options
author | mattn <mattn.jp@gmail.com> | 2014-10-30 14:58:27 +0900 |
---|---|---|
committer | mattn <mattn.jp@gmail.com> | 2014-10-30 14:58:27 +0900 |
commit | 42e3770909de7ae6628bb7656060ceb1993c5b4b (patch) | |
tree | 8af59b2b83993d2c37dbe3202126f6369284c152 | |
parent | f085dcd35d729f1098be69a325fdb3278f6f08f3 (diff) | |
download | vim-sonictemplate-42e3770909de7ae6628bb7656060ceb1993c5b4b.tar.gz vim-sonictemplate-42e3770909de7ae6628bb7656060ceb1993c5b4b.tar.bz2 vim-sonictemplate-42e3770909de7ae6628bb7656060ceb1993c5b4b.zip |
Fix removing _define_
-rw-r--r-- | autoload/sonictemplate.vim | 2 |
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 |