commit e5dae58704613b99eb403933203cac0c0f9c2f37
parent c730374d440ad32c2a57ccef3278226a87821c34
Author: zeertzjq <zeertzjq@outlook.com>
Date: Thu, 26 Jun 2025 08:14:31 +0800
vim-patch:037c32e: runtime(vim): Update base-syntax, match unamed register alias (#34648)
The unamed register may be referenced as both @" and @@.
Remove the unused vimPlainRegister syntax group.
fixes: vim/vim#17603.
closes: vim/vim#17605
https://github.com/vim/vim/commit/037c32e4288fd37a8d87e73bb586de6280aa5e67
Co-authored-by: Doug Kearns <dougkearns@gmail.com>
Diffstat:
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/runtime/syntax/vim.vim b/runtime/syntax/vim.vim
@@ -949,8 +949,7 @@ syn match vimRange "[`'][a-zA-Z0-9],[`'][a-zA-Z0-9]" contains=vimMark skipwhite
syn match vimRegister '[^,;[{: \t]\zs"[a-zA-Z0-9.%#:_\-/]\ze[^a-zA-Z_":0-9]'
syn match vimRegister '@"'
-syn match vimPlainRegister contained '"[a-zA-Z0-9\-:.%#*+=]'
-syn match vimLetRegister contained '@["0-9\-a-zA-Z:.%#=*+~_/]'
+syn match vimLetRegister contained '@["@0-9\-a-zA-Z:.%#=*+~_/]'
syn match vimAddress ",\zs[.$]" skipwhite nextgroup=vimSubst1
syn match vimAddress "%\ze\a" skipwhite nextgroup=vimString,vimSubst1
@@ -2297,7 +2296,6 @@ if !exists("skip_vim_syntax_inits")
hi def link vimPattern Type
hi def link vimPerl vimCommand
hi def link vimPlainMark vimMark
- hi def link vimPlainRegister vimRegister
hi def link vimProfile vimCommand
hi def link vimProfileArg vimSpecial
hi def link vimProfileBang vimBang