Tree-sitter grammar turns nested directives into block_quote
#52
Labels
decision needed
A decision needs to be taken to solve this
upstream
A problem originated from nvim-treesitter or tree-sitter
In my continued quest of getting better syntax highlighting for Sphinx RST files, I've noticed that the
tree-sitter-rst
grammar sometimes turns sequences of nested directives intoblock_quote
nodes (for the second, third, etc., sub-directive). It's possible that TreeSitter considers this to be a syntax/grammar error and that the presented tree is part of the minimum-error resolution strategy.Anyways, it would be great if the parser could at least accept nested directives, or allow me to inject RST into nodes by adding further queries on top of those provided by the
tree-sitter-rst
repository. But in this case, the problem is that the tree itself already has the wrong structure.The text was updated successfully, but these errors were encountered: