bug: incorrect code lines in TSX parser
Neovim version (nvim -v)
NVIM v0.10.0
Operating system/version
MacOS 14.5
Output of :AerialInfo
Aerial Info
Filetype: lspinfo Aerial ignores this window: Buftype 'nofile' is "special". See the 'ignore' config in :help aerial-options Configured backends: treesitter (not supported) [No treesitter parser for lspinfo] lsp (not supported) [No LSP client found that supports symbols] markdown (not supported) [Filetype is not markdown] asciidoc (not supported) [Filetype is not asciidoc] man (not supported) [Filetype is not man] Show symbols: Class, Constructor, Enum, Function, Interface, Module, Method, Struct
Describe the bug
Just stumbled upon.
This is default tsx_test.tsx spec file of the repo. return <div> is duplicated and later all lines are shifted +1. This bug was present before aerial v1.8.0, but spec was incorrectly fixed on version bunp with the bug present.
What is the severity of this bug?
tolerable (can work around it)
Steps To Reproduce
Just open tsx_test.tsx from the repo.
Expected Behavior
There should be no duplication and later items should not be shifted.
Minimal example file
No response
Minimal init.lua
No response
Additional context
No response
I believe this was due to a change upstream in the treesitter parser. If you revert to an earlier version of nvim-treesitter it should exhibit the previous behavior.