Commit: runtime(doc): Vim9: dictionary in a lambda block is not documented
Christian Brabandt <[email protected]> Wed, 29 Jul 2026 20:30:08 +0200
| Newsgroups | gmane.editors.vim.devel |
|---|---|
| Message-ID | <[email protected]> |
runtime(doc): Vim9: dictionary in a lambda block is not documented Commit: https://github.com/vim/vim/commit/decab25acfcf11e614a11053b517cd5d5e622122 Author: Hirohito Higashi <[email protected]> Date: Tue Jul 28 20:39:43 2026 +0000 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) <[email protected]> Signed-off-by: Hirohito Higashi <[email protected]> Signed-off-by: Christian Brabandt <[email protected]> diff --git a/runtime/doc/vim9.txt b/runtime/doc/vim9.txt index 897246b5b..be987bf02 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. -- -- You received this message from the "vim_dev" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php --- You received this message because you are subscribed to the Google Groups "vim_dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion visit https://groups.google.com/d/msgid/vim_dev/E1wp92e-002rO1-5g%40256bit.org.