mirror of
https://github.com/leafOfTree/vim-vue-plugin.git
synced 2026-11-04 11:22:53 +08:00
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:
1 file changed
+3
-2
+3
-2
@@ -143,8 +143,9 @@ function! s:SyntaxListAtEnd(lnum)
|
|||||||
let plnum = prevnonblank(a:lnum)
|
let plnum = prevnonblank(a:lnum)
|
||||||
let pline = getline(plnum)
|
let pline = getline(plnum)
|
||||||
|
|
||||||
" return [] if prevnonblank is an end tag
|
" return [] if prevnonblank is an end tag, e.g. for blank lines between
|
||||||
if pline =~ '^<\/'
|
" blocks, but not for the end tag line itself
|
||||||
|
if plnum != a:lnum && pline =~ '^<\/'
|
||||||
return []
|
return []
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user