neovim/tree-sitter-vimdoc

multiple keycodes must be separated by whitespace

Trard opened this issue · 1 comments

Trard commented

Found in https://neovim.io/doc/user/options.html#'wildmenu'

CTRL-N isn't highlighted, but it should be.

Context:

Keys that show the previous/next match, such as <Tab> or
CTRL-P/CTRL-N, cause the highlight to move to the appropriate match.
['wildmode'](https://neovim.io/doc/user/options.html#'wildmode') must specify "full": "longest" and "list" do not start
['wildmenu'](https://neovim.io/doc/user/options.html#'wildmenu') mode. You can check the current mode with [wildmenumode()](https://neovim.io/doc/user/builtin.html#wildmenumode()).

This, like 90% of the issues with this parser, is due to it relying on whitespace to separate tokens.

If you add whitespace to separate them as in CTRL-P / CTRL-N, both keycodes are parsed fine.