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
https://github.com/vim/vim/pull/19320
(1 file)
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()
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.![]()
thanks
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.![]()