comparison 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
comparison
equal deleted inserted replaced
20014:1609b2b2733d 20015:c001ee73519a
207 PosFunc(arg) : 207 PosFunc(arg) :
208 NegFunc(arg) 208 NegFunc(arg)
209 209
210 Note that "enddef" cannot be used at the start of a continuation line, it ends 210 Note that "enddef" cannot be used at the start of a continuation line, it ends
211 the current function. 211 the current function.
212
213 It is also possible to split a function header over multiple lines, in between
214 arguments: >
215 def MyFunc(
216 text: string,
217 separator = '-'
218 ): string
212 219
213 220
214 No curly braces expansion ~ 221 No curly braces expansion ~
215 222
216 |curly-braces-names| cannot be used. 223 |curly-braces-names| cannot be used.