mirror of
https://github.com/leafOfTree/vim-vue-plugin.git
synced 2025-12-07 13:14:34 +08:00
Fix GetVueTag for blank lines between blocks
This commit is contained in:
@@ -141,7 +141,14 @@ endif
|
|||||||
|
|
||||||
function! s:SyntaxListAtEnd(lnum)
|
function! s:SyntaxListAtEnd(lnum)
|
||||||
let plnum = prevnonblank(a:lnum)
|
let plnum = prevnonblank(a:lnum)
|
||||||
let col = strlen(getline(plnum))
|
let pline = getline(plnum)
|
||||||
|
|
||||||
|
" return [] if prevnonblank is an end tag
|
||||||
|
if pline =~ '^<\/'
|
||||||
|
return []
|
||||||
|
endif
|
||||||
|
|
||||||
|
let col = strlen(pline)
|
||||||
return map(synstack(plnum, col), 'synIDattr(v:val, "name")')
|
return map(synstack(plnum, col), 'synIDattr(v:val, "name")')
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user