diff runtime/doc/vim9.txt @ 20015:c001ee73519a v8.2.0563

patch 8.2.0563: Vim9: cannot split a function line Commit: https://github.com/vim/vim/commit/5e774c7579a4a00d3f44fdcfcb56861bd73372e4 Author: Bram Moolenaar <Bram@vim.org> Date: Sun Apr 12 21:53:00 2020 +0200 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.
author Bram Moolenaar <Bram@vim.org>
date Sun, 12 Apr 2020 22:00:04 +0200
parents bf377a9ffccb
children c85d4e173cc9
line wrap: on
line diff
--- a/runtime/doc/vim9.txt
+++ b/runtime/doc/vim9.txt
@@ -210,6 +210,13 @@ possible AFTER the operators.  For examp
 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 ~