1
0
forked from aniani/vim

runtime(vim): Update base-syntax, fix nested function folding (#14397)

Only match function folding start and end patterns at the start of a
line, excluding heredocs and :append/:change/:insert commands.

Fixes #14393

Signed-off-by: Christian Brabandt <cb@256bit.org>
Signed-off-by: Doug Kearns <dougkearns@gmail.com>
This commit is contained in:
dkearns
2024-04-15 04:32:56 +10:00
committed by GitHub
parent c59a8648b2
commit 4ba70cab37
41 changed files with 582 additions and 78 deletions

View File

@@ -108,3 +108,23 @@ def Foo()
"useless string"
enddef
" fold-region ending
def Foo()
# enddef
enddef
def Foo()
echo "enddef"
enddef
def Foo()
let x =<< END
endfunction
END
enddef
:def Foo()
:enddef