runtime(vim): make VimKeywordPrg even smarter for regexes
Commit:
https://github.com/vim/vim/commit/580e457a2a5fa63b9be0bf5f2c81434e157bcc0a
Author: Konfekt <[email protected]>
Date: Tue Feb 25 20:53:55 2025 +0100
runtime(vim): make VimKeywordPrg even smarter for regexes
closes: https://github.com/vim/vim/issues/16729
Signed-off-by: Konfekt <[email protected]>
Signed-off-by: Christian Brabandt <[email protected]>
diff --git a/runtime/ftplugin/vim.vim b/runtime/ftplugin/vim.vim
index c9ea793ee..cf6ced9f8 100644
--- a/runtime/ftplugin/vim.vim
+++ b/runtime/ftplugin/vim.vim
@@ -1,7 +1,7 @@
" Vim filetype plugin
" Language: Vim
" Maintainer: Doug Kearns <[email protected]>
-" Last Change: 2025 Feb 23
+" Last Change: 2025 Feb 25
" Former Maintainer: Bram Moolenaar <[email protected]>
" Contributors: Riley Bruins <[email protected]> ('commentstring'),
" @Konfekt
@@ -85,6 +85,8 @@ if !exists("*" .. expand("<SID>") .. "Help")
return ':'.topic
elseif pre =~# '\<v:$'
return 'v:'.topic
+ elseif pre =~# '\$'
+ return '/\'.topic
elseif topic ==# 'v' && post =~# ':\w\+'
return 'v'.matchstr(post, ':\w\+')
else
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion visit
https://groups.google.com/d/msgid/vim_dev/E1tn164-00CnXY-OV%40256bit.org.