fix: inner </template> indentation error

This commit is contained in:
yemai
2019-07-22 17:55:16 +08:00
parent 7e324fdcc8
commit 39ec53975a

View File

@@ -19,7 +19,7 @@ endif
let s:name = 'vim-vue-plugin' let s:name = 'vim-vue-plugin'
" Let <template> handled by HTML " Let <template> handled by HTML
let s:vue_tag = '\v^\s*\<(script|style)' let s:vue_tag = '\v^\s*\<(script|style)'
let s:vue_end_tag = '\v^\s*\<\/(template|script|style)' let s:vue_end_tag = '\v^\s*\<\/(script|style)'
let s:empty_tag = '\v\<(area|base|br|col|embed|hr|input|img|keygen|link|meta|param|source|track|wbr)[^/]*\>' let s:empty_tag = '\v\<(area|base|br|col|embed|hr|input|img|keygen|link|meta|param|source|track|wbr)[^/]*\>'
let s:end_tag = '^\s*\/\?>\s*' let s:end_tag = '^\s*\/\?>\s*'
"}}} "}}}
@@ -128,8 +128,10 @@ function! GetVueIndent()
else else
call s:Log('syntax: javascript') call s:Log('syntax: javascript')
if len(b:javascript_indentexpr) if len(b:javascript_indentexpr)
echom 'eval'
let ind = eval(b:javascript_indentexpr) let ind = eval(b:javascript_indentexpr)
else else
echom 'cindent'
let ind = cindent(v:lnum) let ind = cindent(v:lnum)
endif endif
endif endif