aboutsummaryrefslogtreecommitdiff
path: root/autoload/sonictemplate.vim
diff options
context:
space:
mode:
authorYasuhiro Matsumoto <mattn.jp@gmail.com>2015-10-02 19:48:21 +0900
committerYasuhiro Matsumoto <mattn.jp@gmail.com>2015-10-02 19:48:21 +0900
commit89f67a9bacbcdcccd631dc4c0deab45c1c402eb7 (patch)
tree6bd6dcb9aebda582a559b4963467ca3f4d1b2507 /autoload/sonictemplate.vim
parentb7fcf86759361752f669721742b308dc60c1f96e (diff)
downloadvim-sonictemplate-89f67a9bacbcdcccd631dc4c0deab45c1c402eb7.tar.gz
vim-sonictemplate-89f67a9bacbcdcccd631dc4c0deab45c1c402eb7.tar.bz2
vim-sonictemplate-89f67a9bacbcdcccd631dc4c0deab45c1c402eb7.zip
java package name
Diffstat (limited to 'autoload/sonictemplate.vim')
-rw-r--r--autoload/sonictemplate.vim1
1 files changed, 1 insertions, 0 deletions
diff --git a/autoload/sonictemplate.vim b/autoload/sonictemplate.vim
index 9f742ff..de61a07 100644
--- a/autoload/sonictemplate.vim
+++ b/autoload/sonictemplate.vim
@@ -253,6 +253,7 @@ function! sonictemplate#apply(name, mode, ...) abort
endwhile
sandbox let c = substitute(c, '{{_if_:\(.\{-}\);\(.\{-}\)\(;\(.\{-}\)\)\{-}}}', '\=eval(submatch(1))?submatch(2):submatch(4)', 'g')
sandbox let c = substitute(c, '{{_expr_:\(.\{-}\)}}', '\=eval(submatch(1))', 'g')
+ silent! let c = substitute(c, '{{_lang_util_:\(.\{-}\)}}', '\=sonictemplate#lang#{ft}#util(submatch(1))', 'g')
if len(c) == 0
return
endif