commit 7c9a4a2a713539c3b7508ed87dd01016bb75bee4
parent 2cd899f73092eb8570fb7fcd8b4b6771a13ffc86
Author: zeertzjq <zeertzjq@outlook.com>
Date: Mon, 29 Sep 2025 09:17:35 +0800
vim-patch:f4a6acd: runtime(vim): Update base syntax, allow Vim9 :echo tail comments
- Match comments after Vim9 :echo and :execute.
- Match comments after Vim9 and legacy :eval.
closes: vim/vim#18420
https://github.com/vim/vim/commit/f4a6acd86edfdaf0f2c1fc4fb0c6533069d0469e
Co-authored-by: Doug Kearns <dougkearns@gmail.com>
Diffstat:
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/runtime/syntax/vim.vim b/runtime/syntax/vim.vim
@@ -1272,7 +1272,7 @@ syn region vimEcho
\ end="\ze|"
\ excludenl end="$"
\ nextgroup=vimCmdSep
- \ contains=@vimContinue,@vimExprList
+ \ contains=@vimContinue,@vimExprList,vim9Comment
\ transparent
syn match vimEchohl "\<echohl\=\>" skipwhite nextgroup=vimGroup,vimHLGroup,vimEchohlNone,vimOnlyHLGroup,nvimHLGroup
@@ -1289,7 +1289,7 @@ syn region vimExecute
\ end="\ze|"
\ excludenl end="$"
\ nextgroup=vimCmdSep
- \ contains=@vimContinue,@vimExprList
+ \ contains=@vimContinue,@vimExprList,vim9Comment
\ transparent
syn region vimEval
@@ -1299,7 +1299,7 @@ syn region vimEval
\ end="\ze|"
\ excludenl end="$"
\ nextgroup=vimCmdSep
- \ contains=@vimContinue,@vimExprList
+ \ contains=@vimContinue,@vimExprList,vimComment,vim9Comment
\ transparent
" Filter: {{{2