aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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