stsewd / tree-sitter-rst

reStructuredText grammar for tree-sitter
https://stsewd.dev/tree-sitter-rst/
MIT License
50 stars 7 forks source link

Fix parsing of quoted literal blocks #23

Closed stsewd closed 2 years ago

stsewd commented 2 years ago

The current implementation was a little naive, and as a result it was skipping adding an indentation level. We already have the information if the next token will be a indented or quoted literal block, so use that information.

Fixes https://github.com/stsewd/tree-sitter-rst/issues/21