-
-
Notifications
You must be signed in to change notification settings - Fork 9
Open
Labels
upstreamA problem originated from nvim-treesitter or tree-sitterA problem originated from nvim-treesitter or tree-sitter
Description
The current version of the tree-sitter RST parser does not process RST grammar embedded into directives like .. warning::
, .. note::
, etc. See here for an example of such a document and the parse tree shown in NVIM. Note the absent syntax highlighting of the reference.

Curiously, it works when the directive is further annotated:
PS: I am skeptical if the document
element makes sense occurring within the tree in this way. When I try to add a custom tree-sitter rule that matches on this element to manually inject the RST grammar into document
, I get an error message from NVIM saying that the following structure is impossible.

Metadata
Metadata
Assignees
Labels
upstreamA problem originated from nvim-treesitter or tree-sitterA problem originated from nvim-treesitter or tree-sitter