Closed HiPhish closed 3 months ago
parsing works correctly using the tree-sitter cli. this is an issue with injections (rust inside rust), and does not belong in this repo.
Fair enough, but where does it belong then? Neovim?
probably nvim-treesitter, though it's likely unsolvable you either lose macro injections or deal with spurious parse errors
Did you check existing issues?
Tree-Sitter CLI Version, if relevant (output of
tree-sitter --version
)No response
Describe the bug
Neovim user and maintainer of HiPhish/rainbow-delimiters.nvim here. I have a Rust file and Neovim reports four errors.
I don't know much about Rust, so maybe the code is invalid? The code itself does not make much sense, it's just a test file for trying out the rainbow delimiter highlighting. See also this PR and this issue:
Steps To Reproduce/Bad Parse Tree
The offending source code is
The resulting tree is
Expected Behavior/Parse Tree
There should be no errors in the tree.
Repro
No response