Mercurial > vim
diff runtime/doc/vim9.txt @ 20011:628011800942 v8.2.0561
patch 8.2.0561: Vim9: cannot split function call in multiple lines
Commit: https://github.com/vim/vim/commit/e6085c53506e38d07334faa1002ee90b1933b128
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Apr 12 20:19:16 2020 +0200
patch 8.2.0561: Vim9: cannot split function call in multiple lines
Problem: Vim9: cannot split function call in multiple lines.
Solution: Find more arguments in following lines.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 12 Apr 2020 20:30:04 +0200 |
parents | 844c7646f61b |
children | bf377a9ffccb |
line wrap: on
line diff
--- a/runtime/doc/vim9.txt +++ b/runtime/doc/vim9.txt @@ -184,6 +184,19 @@ example, when a list spans multiple line 'one', 'two', ] +And when a dict spans multiple lines: > + let mydict = #{ + one: 1, + two: 2, + } +Function call: > + let result = Func( + arg1, + arg2 + ) + +Note that "enddef" cannot be used at the start of a continuation line, it ends +the current function. No curly braces expansion ~