patch 8.2.0563: Vim9: cannot split a function line

Problem:    Vim9: cannot split a function line.
Solution:   Continue in next line so long as the function isn't done.
This commit is contained in:
Bram Moolenaar
2020-04-12 21:53:00 +02:00
parent 9c7e6dd653
commit 5e774c7579
6 changed files with 69 additions and 12 deletions

View File

@ -210,6 +210,13 @@ possible AFTER the operators. For example: >
Note that "enddef" cannot be used at the start of a continuation line, it ends
the current function.
It is also possible to split a function header over multiple lines, in between
arguments: >
def MyFunc(
text: string,
separator = '-'
): string
No curly braces expansion ~