mirror of
https://github.com/leafOfTree/vim-vue-plugin.git
synced 2025-12-07 05:04:33 +08:00
Fix GetVueTag for blank lines between blocks
This commit is contained in:
@@ -141,7 +141,14 @@ endif
|
||||
|
||||
function! s:SyntaxListAtEnd(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")')
|
||||
endfunction
|
||||
|
||||
|
||||
Reference in New Issue
Block a user