Open alxdb opened 1 month ago
Does it work if you add empty lines between them?
(This is another instance of @injection.combined
fixing some things while breaking others...)
It doesn't make a difference, just tried with the following example:
{
foo = # lua
"foo";
-- bax = { };
bar = # lua
"bar";
}
If you look at :InspectTree, you see a bunch of parsing
(ERROR)` nodes. Can you give an example snippet that parses correctly and has the same issue?
{
foo = # lua
''require("foo")'';
baz = { };
bar = # lua
''require("bar")'';
}
^ This has no errors before commenting out baz
(using commentstring
ofc, not just with #
).
This will be fixed if https://github.com/neovim/neovim/pull/29601 is ever merged, but it depends on an upstream consensus
Describe the bug
When using the single comment style of language injection, as introduced in #6418, the nix code between two injections has the incorrect commentstring
To Reproduce
use the above example
Expected behavior
The commentstring should be that of
nix
Output of
:checkhealth nvim-treesitter
Output of
nvim --version
Additional context
No response