diff options
author | Bram Moolenaar <Bram@vim.org> | 2020-04-12 21:53:00 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2020-04-12 21:53:00 +0200 |
commit | 5e774c7579a4a00d3f44fdcfcb56861bd73372e4 (patch) | |
tree | 261c692f01dcda144b986707d0ca89c5c914daa5 /runtime | |
parent | 9c7e6dd653b62f54324f3c00d69cb348d8611a9f (diff) |
patch 8.2.0563: Vim9: cannot split a function linev8.2.0563
Problem: Vim9: cannot split a function line.
Solution: Continue in next line so long as the function isn't done.
Diffstat (limited to 'runtime')
-rw-r--r-- | runtime/doc/vim9.txt | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/runtime/doc/vim9.txt b/runtime/doc/vim9.txt index 1d7aec9460..88c35deff5 100644 --- a/runtime/doc/vim9.txt +++ b/runtime/doc/vim9.txt @@ -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 ~ |