0
0
mirror of https://github.com/vim/vim.git synced 2025-07-24 10:45:12 -04:00

runtime(vim): recognize <...> strings (and keys) for 'keywordprg'

see :help E499 and :h key-notation

closes: #16795

Signed-off-by: Konfekt <Konfekt@users.noreply.github.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
Konfekt 2025-03-05 20:33:00 +01:00 committed by Christian Brabandt
parent f7087cbec7
commit 08a410f674
No known key found for this signature in database
GPG Key ID: F3F92DA383FDDE09

View File

@ -1,7 +1,7 @@
" Vim filetype plugin
" Language: Vim
" Maintainer: Doug Kearns <dougkearns@gmail.com>
" Last Change: 2025 Feb 25
" Last Change: 2025 Mar 05
" Former Maintainer: Bram Moolenaar <Bram@vim.org>
" Contributors: Riley Bruins <ribru17@gmail.com> ('commentstring'),
" @Konfekt
@ -85,6 +85,8 @@ if !exists("*" .. expand("<SID>") .. "Help")
return ':'.topic
elseif pre =~# '\<v:$'
return 'v:'.topic
elseif pre =~# '<$'
return '<'.topic.'>'
elseif pre =~# '\\$'
return '/\'.topic
elseif topic ==# 'v' && post =~# ':\w\+'