]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
runtime(doc): Vim9: dictionary in a lambda block is not documented
authorHirohito Higashi <h.east.727@gmail.com>
Tue, 28 Jul 2026 20:39:43 +0000 (20:39 +0000)
committerChristian Brabandt <cb@256bit.org>
Tue, 28 Jul 2026 20:39:43 +0000 (20:39 +0000)
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) <noreply@anthropic.com>
Signed-off-by: Hirohito Higashi <h.east.727@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
runtime/doc/vim9.txt

index 897246b5b023195c7bc56f10f26fe6d20595943d..be987bf0210d9292fbc5c66753eaa0405d0239ac 100644 (file)
@@ -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.