From 39c0425c4c6ed52e280310fdbef5bfc11df195a1 Mon Sep 17 00:00:00 2001 From: zeertzjq Date: Thu, 2 Oct 2025 08:41:04 +0800 Subject: [PATCH] vim-patch:0977c8b: runtime(vim): Update base syntax, contain user command replacement text (#35979) Ensure that :command replacement text terminates at the end of the logical line. Add :command to the generator exclusion list. fixes: vim/vim#18414 (@Dougaak) fixes: vim/vim#18448 (Maxim Kim) closes: vim/vim#18415 https://github.com/vim/vim/commit/0977c8b03e7eca56bb640acd2fd1c6f5fc825899 Co-authored-by: Doug Kearns --- runtime/syntax/vim.vim | 1 + 1 file changed, 1 insertion(+) diff --git a/runtime/syntax/vim.vim b/runtime/syntax/vim.vim index 8aa7532120..c9148d5226 100644 --- a/runtime/syntax/vim.vim +++ b/runtime/syntax/vim.vim @@ -851,6 +851,7 @@ syn region vimUserCmdReplacement contained \ skip=+\n\s*\%(\\\|["#]\\ \)+ \ end="$" \ contains=@vimContinue,@vimUserCmdList,vimComFilter + \ keepend syn region vimUserCmdBlock contained \ matchgroup=vimSep \ start="{"