]> git.ipfire.org Git - thirdparty/vim.git/commit
runtime(vim): Fix for :VimKeywordPrg when syntax does not match
authorMark Woods <mwoods.online.ie@gmail.com>
Tue, 3 Feb 2026 14:48:58 +0000 (14:48 +0000)
committerChristian Brabandt <cb@256bit.org>
Tue, 3 Feb 2026 14:48:58 +0000 (14:48 +0000)
commitac5af8ecd3025c2739ab79f6b8529ea0415c1380
tree23aa2bbe4395129245d27b2905ed4ec87fa6f6f8
parent0eb8e4de49fd712bb0ce1ac640087c39f4ceb0c0
runtime(vim): Fix for :VimKeywordPrg when syntax does not match

When using vim9-syntax plugin, :VimKeywordPrg does not lookup functions
correctly, as it relies solely on syntax names to find the help topic.

The syntax keyword used for builtin function is vi9FuncNameBuiltin in
vim9-syntax plugin, not vimFuncName expected by :VimKeywordPrg, so the
fallback rules apply, and there is no fallback rule for function calls.

Fix by just checking if the first char after topic is '(', and if so
assume help topic is a function.

closes: #19320

Signed-off-by: Mark Woods <mwoods.online.ie@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
runtime/ftplugin/vim.vim