From: Hirohito Higashi Date: Tue, 28 Jul 2026 20:39:43 +0000 (+0000) Subject: runtime(doc): Vim9: dictionary in a lambda block is not documented X-Git-Tag: v9.2.0871~1 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=decab25acfcf11e614a11053b517cd5d5e622122;p=thirdparty%2Fvim.git runtime(doc): Vim9: dictionary in a lambda block is not documented Problem: It is not documented that inside a lambda block the closing "}" of a dictionary must not be at the start of a line. The note is only given for a command block, while the restriction is the same. Solution: Mention it at |inline-function| and refer to |command-block|. closes: #20872 fixes: #20693 Co-Authored-By: Claude Opus 5 (1M context) Signed-off-by: Hirohito Higashi Signed-off-by: Christian Brabandt --- diff --git a/runtime/doc/vim9.txt b/runtime/doc/vim9.txt index 897246b5b0..be987bf021 100644 --- a/runtime/doc/vim9.txt +++ b/runtime/doc/vim9.txt @@ -1,4 +1,4 @@ -*vim9.txt* For Vim version 9.2. Last change: 2026 Jul 22 +*vim9.txt* For Vim version 9.2. Last change: 2026 Jul 29 VIM REFERENCE MANUAL by Bram Moolenaar @@ -724,6 +724,10 @@ characters, e.g.: > }) No command can follow the "{", only a comment can be used there. +Since the block ends at the first line starting with "}", the closing "}" of a +dictionary inside the block must not be at the start of a line. See +|command-block| for an example and the workaround. + *command-block* *E1026* The block can also be used for defining a user command. Inside the block Vim9 syntax will be used.