Closed justinmk closed 1 year ago
There's still a parse error (but not wrong highlighting) in
:h v_aB
(haven't tested whether that error fails the help_spec
test, but that's of course what I'm worried about)(but not in map.txt
on |,|
anymore 🎉 ).
There's still a parse error in
:h v_aB
Looks like the {
in "[count] [{"
is causing an error. Could be fixed by changing the "
to backticks.
Ah, I had assumed that the ERROR
node would be rooted at the misparsed node, but you are right. This file (and map.txt) has a bunch of careless quotes that merit cleaning up.
(I have hesitated to touch upstream docs so far, but if it's open season now...)
This definitely improves things, but also causes a few errors. Will see if those can be avoided with some tweaks.
(Continues https://github.com/neovim/tree-sitter-vimdoc/pull/103 )
Problem: In "vim.foo({bar})", {bar} is not recognized as (argument).
Solution: Add more special-cases for plain (word).
Closes #102
Notes
(url)
case: https://github.com/neovim/tree-sitter-vimdoc/blob/755b8011907be9427f73e4f3989e9ece584f0aa8/corpus/url.txt#L42