[vim/vim] Fix for :VimKeywordPrg when syntax does not match (PR #19320)

2 views
Skip to first unread message

Mark Woods

unread,
Feb 3, 2026, 4:21:48 AM (23 hours ago) Feb 3
to vim/vim, Subscribed

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 in 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.

cc @Konfekt

Related to: lacygoill/vim9-syntax#14


You can view, comment on, or merge this pull request online at:

  https://github.com/vim/vim/pull/19320

Commit Summary

  • ce9ec1e Fix for :VimKeywordPrg when syntax does not match

File Changes

(1 file)

Patch Links:


Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/19320@github.com>

Enno

unread,
Feb 3, 2026, 4:53:40 AM (22 hours ago) Feb 3
to vim/vim, Subscribed
Konfekt left a comment (vim/vim#19320)

Thank you. I just checked @dkearns 's overhaul c65643c and @tpope 's original https://github.com/tpope/vim-scriptease/blob/4cc639dd70061bb1489f4d3655861ebd9bc896fa/autoload/scriptease.vim#L738 but both rely solely on syntax checking. It is sensible to add regex detection fallbacks


Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/19320/c3840260904@github.com>

Christian Brabandt

unread,
Feb 3, 2026, 9:47:34 AM (18 hours ago) Feb 3
to vim/vim, Subscribed
chrisbra left a comment (vim/vim#19320)

thanks


Reply to this email directly, view it on GitHub.

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/19320/c3841772047@github.com>

Christian Brabandt

unread,
Feb 3, 2026, 9:51:04 AM (18 hours ago) Feb 3
to vim/vim, Subscribed

Closed #19320 via ac5af8e.


Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/19320/issue_event/22499791041@github.com>

Reply all
Reply to author
Forward
0 new messages