neovim

Neovim text editor
git clone https://git.dasho.dev/neovim.git
Log | Files | Refs | README

commit 21a24117636c2b7d62c078a17f1a1182e23bdd1a
parent 52c61d96905d5f6e31da0038c0a8d20f43052946
Author: zeertzjq <zeertzjq@outlook.com>
Date:   Sun,  8 Jun 2025 08:38:19 +0800

vim-patch:1cccdeb: runtime(vim): Update base-syntax, improve Vim9 block start pattern

The opening curly brace must be followed by whitespace, comment or
trailing bar.

closes: vim/vim#17454

https://github.com/vim/vim/commit/1cccdebc0f20281daabce3bef0a5cec3a04ffd25

Co-authored-by: Doug Kearns <dougkearns@gmail.com>

Diffstat:
Mruntime/syntax/vim.vim | 7++++++-
1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/runtime/syntax/vim.vim b/runtime/syntax/vim.vim @@ -660,7 +660,12 @@ endif " Blocks: {{{2 " ====== -Vim9 syn region vim9Block matchgroup=vimSep start="{" end="^\s*\zs}" contains=@vimDefBodyList +Vim9 syn region vim9Block + \ matchgroup=vimSep + \ start="{\ze\s*\%($\|[#|]\)" + \ end="^\s*\zs}" + \ skipwhite nextgroup=vim9Comment,vimCmdSep + \ contains=@vimDefBodyList " Keymaps: {{{2 " =======