mirror of
https://github.com/leafOfTree/vim-vue-plugin.git
synced 2026-11-02 10:27:34 +08:00
Fix syntax for template inside template
This commit is contained in:
1 parent
347f62abae
commit
665d8a18b3
2 files changed
+7
-7
No files matched your search
+6
-6
@@ -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