diff options
author | Bram Moolenaar <Bram@vim.org> | 2020-04-12 20:19:16 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2020-04-12 20:19:16 +0200 |
commit | e6085c53506e38d07334faa1002ee90b1933b128 (patch) | |
tree | c9bb45883c6ac69a7ff2a02606190aa7d42634be /runtime | |
parent | 2196bce56fcd56b0eaece50c079bac99f5bc31af (diff) |
patch 8.2.0561: Vim9: cannot split function call in multiple linesv8.2.0561
Problem: Vim9: cannot split function call in multiple lines.
Solution: Find more arguments in following lines.
Diffstat (limited to 'runtime')
-rw-r--r-- | runtime/doc/vim9.txt | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/runtime/doc/vim9.txt b/runtime/doc/vim9.txt index b7b05b4974..c7286ecdf5 100644 --- a/runtime/doc/vim9.txt +++ b/runtime/doc/vim9.txt @@ -184,6 +184,19 @@ example, when a list spans multiple lines: > '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 ~ |