Get block tag of the end tag line

GetVueTag() returned '' on the end tag line like </template>, as the
check for blank lines after a block also applied to the end tag line
itself.
This commit is contained in:
leafOfTree committed 2026-10-19 13:42:16 +00:00
1 parent 1e6923dcd2
commit e0de1005bf
1 file changed
+3 -2
+3 -2
View File
@@ -143,8 +143,9 @@ function! s:SyntaxListAtEnd(lnum)
let plnum = prevnonblank(a:lnum)
let pline = getline(plnum)
" return [] if prevnonblank is an end tag
if pline =~ '^<\/'
" return [] if prevnonblank is an end tag, e.g. for blank lines between
" blocks, but not for the end tag line itself
if plnum != a:lnum && pline =~ '^<\/'
return []
endif