Fix syntax for template inside template

This commit is contained in:
leafOfTree
2021-03-30 10:29:56 +08:00
parent 347f62abae
commit 665d8a18b3
2 changed files with 7 additions and 7 deletions

View File

@@ -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