reStructuredText grammar for tree-sitter. Based on the specification from https://docutils.sourceforge.io/docs/ref/rst/restructuredtext.html.
Check the playground at https://stsewd.dev/tree-sitter-rst/.
Note: this grammar is still under development, a lot of things may change!
body
.reference
nodes,
here they are standalone_hyperlink
nodes.
This is to avoid confusion with inline references nodes
(that are a reference
node).Validate length of adornments in sections?
The spec doesn't mention this, but this paragraph does.
The underline/overline must be at least as long as the title text.
https://docutils.sourceforge.io/docs/user/rst/quickstart.html
Check the CONTRIBUTING.md file
TODO
, FIXME(user)
.