mirror of
https://github.com/leafOfTree/vim-vue-plugin.git
synced 2025-12-08 05:34:44 +08:00
Fix syntax for template inside template
This commit is contained in:
@@ -81,16 +81,16 @@ function! s:GetIndentByContext()
|
||||
let prevline = getline(s:PrevNonBlankNonComment(v:lnum))
|
||||
let curline = getline(v:lnum)
|
||||
|
||||
if curline =~ s:block_tag
|
||||
let ind = 0
|
||||
endif
|
||||
|
||||
if prevline =~ s:block_tag
|
||||
if prevline !~ s:template_tag
|
||||
" 0 for blocks except template as it can be nested
|
||||
if curline =~ s:block_tag && curline !~ s:template_tag
|
||||
let ind = 0
|
||||
endif
|
||||
endif
|
||||
|
||||
if prevline =~ s:block_tag && prevline !~ s:template_tag
|
||||
let ind = 0
|
||||
endif
|
||||
|
||||
return ind
|
||||
endfunction
|
||||
|
||||
|
||||
Reference in New Issue
Block a user