Closed black-desk closed 2 years ago
I didn't think of this case. The >
s are marked as being part of the code block and get forwarded to the bash grammar.
It seems that there will be no way to fix this if it is not possible to pass something that is not continuous as a whole thing to another tree-sitter parser.
There is actually. See @combined
as explained in the "Injections" section here. But I think that would mean parsing all code blocks as if they were one document? I'm not sure how that actually works in this particular use case.
This was fixed by the most recent update. If you are using nvim-treesitter update the plugin and then run :TSUpdate
to get the newest parser. You might need some changes to your config, see https://github.com/MDeiml/tree-sitter-markdown/issues/45#issuecomment-1167311394
Thanks
something like this will break the AST:
playground shows that:
It seems this problem is very hard to fix.