mirror of
https://github.com/leafOfTree/vim-vue-plugin.git
synced 2026-11-02 02:17:33 +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 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
|
||||
|
||||
|
||||
Reference in new issue
Block a user