neovim / tree-sitter-vimdoc

Tree-sitter parser for Vim help files

Repository from Github https://github.comneovim/tree-sitter-vimdocRepository from Github https://github.comneovim/tree-sitter-vimdoc

Tags with a dot "." beforehand isn't handled correctly

dundargoc opened this issue · comments

The following doesn't conceal "|": vim.api.|nvim_get_keymap()|

Workaround: use backticks for the first part:

`vim.api.`|nvim_get_keymap()|

tangentially, I would discourage this kind of thing in help files. |nvim_get_keymap()| should be enough, it's noisy to spell out everywhere how to use things from Lua/Vimscript/this/that.

(Just for the record, in case others read this: The context for this issue was the Lua guide, where "how to use things from Lua" was the whole point.)

Backticks (codespan) are the escape-hatch in 99% of cases.

Marking this as wontfix because the parser cannot know if a | in the middle of an unbroken token is a tag or some other random vimdoc text.