From 2c9b102a9fa84ef08cbc6fe6c29cba019c276b48 Mon Sep 17 00:00:00 2001 From: zeertzjq Date: Sat, 15 Nov 2025 18:25:35 +0800 Subject: [PATCH] vim-patch:fe24972: runtime(vim): Update base syntax, refine object constructor matching Match "object" and "<" ... ">" separately with dedicated syntax groups to allow for highlighting distinct from that generally used for types. closes: vim/vim#18721 https://github.com/vim/vim/commit/fe249721390cae1ad26f8637bdfe4716bb5bb241 Co-authored-by: Doug Kearns --- runtime/syntax/vim.vim | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/runtime/syntax/vim.vim b/runtime/syntax/vim.vim index 0f3b4ffce9..fe929823d7 100644 --- a/runtime/syntax/vim.vim +++ b/runtime/syntax/vim.vim @@ -571,9 +571,10 @@ syn match vimParamType contained ":\s" skipwhite skipnl nextgroup=@vimType conta syn match vimTypeSep contained ":\%(\s\|\n\)\@=" skipwhite nextgroup=@vimType syn keyword vimType contained blob bool channel float job number string void syn keyword vimTypeAny contained any -syn region vimTypeObject contained - \ matchgroup=vimType - \ start="\