Skip to content

Commit 580e457

Browse files
Konfektchrisbra
authored andcommitted
runtime(vim): make VimKeywordPrg even smarter for regexes
closes: #16729 Signed-off-by: Konfekt <Konfekt@users.noreply.github.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
1 parent 9b41e8f commit 580e457

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

runtime/ftplugin/vim.vim

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
" Vim filetype plugin
22
" Language: Vim
33
" Maintainer: Doug Kearns <dougkearns@gmail.com>
4-
" Last Change: 2025 Feb 23
4+
" Last Change: 2025 Feb 25
55
" Former Maintainer: Bram Moolenaar <Bram@vim.org>
66
" Contributors: Riley Bruins <ribru17@gmail.com> ('commentstring'),
77
" @Konfekt
@@ -85,6 +85,8 @@ if !exists("*" .. expand("<SID>") .. "Help")
8585
return ':'.topic
8686
elseif pre =~# '\<v:$'
8787
return 'v:'.topic
88+
elseif pre =~# '\\$'
89+
return '/\'.topic
8890
elseif topic ==# 'v' && post =~# ':\w\+'
8991
return 'v'.matchstr(post, ':\w\+')
9092
else

0 commit comments

Comments
 (0)