mirror of
https://github.com/leafOfTree/vim-vue-plugin.git
synced 2025-12-08 21:54:46 +08:00
fix: inner </template> indentation error
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user