Handle folding in script and template/style separately

This commit is contained in:
leafOfTree
2020-04-13 14:53:02 +08:00
parent e237cabce1
commit 6a958cedcc
2 changed files with 28 additions and 13 deletions

View File

@@ -269,8 +269,12 @@ function! s:PrevNonBlacnkNonComment(lnum)
return prevlnum
endfunction
function! GetVueTag()
let lnum = getcurpos()[1]
function! GetVueTag(...)
if a:0 > 0
let lnum = a:1
else
let lnum = getcurpos()[1]
endif
let cursyns = s:SynsEOL(lnum)
let syn = get(cursyns, 0, '')