mirror of
https://github.com/vim/vim.git
synced 2025-09-23 03:43:49 -04:00
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>
This commit is contained in:
committed by
Christian Brabandt
parent
9b41e8f766
commit
580e457a2a
@@ -1,7 +1,7 @@
|
|||||||
" Vim filetype plugin
|
" Vim filetype plugin
|
||||||
" Language: Vim
|
" Language: Vim
|
||||||
" Maintainer: Doug Kearns <dougkearns@gmail.com>
|
" Maintainer: Doug Kearns <dougkearns@gmail.com>
|
||||||
" Last Change: 2025 Feb 23
|
" Last Change: 2025 Feb 25
|
||||||
" Former Maintainer: Bram Moolenaar <Bram@vim.org>
|
" Former Maintainer: Bram Moolenaar <Bram@vim.org>
|
||||||
" Contributors: Riley Bruins <ribru17@gmail.com> ('commentstring'),
|
" Contributors: Riley Bruins <ribru17@gmail.com> ('commentstring'),
|
||||||
" @Konfekt
|
" @Konfekt
|
||||||
@@ -85,6 +85,8 @@ if !exists("*" .. expand("<SID>") .. "Help")
|
|||||||
return ':'.topic
|
return ':'.topic
|
||||||
elseif pre =~# '\<v:$'
|
elseif pre =~# '\<v:$'
|
||||||
return 'v:'.topic
|
return 'v:'.topic
|
||||||
|
elseif pre =~# '\\$'
|
||||||
|
return '/\'.topic
|
||||||
elseif topic ==# 'v' && post =~# ':\w\+'
|
elseif topic ==# 'v' && post =~# ':\w\+'
|
||||||
return 'v'.matchstr(post, ':\w\+')
|
return 'v'.matchstr(post, ':\w\+')
|
||||||
else
|
else
|
||||||
|
Reference in New Issue
Block a user