-
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Check for recovery mode and fix numeric list missparsing (#41)
I'm making the external scanner aware of tree-sitter correction mode (https://tree-sitter.github.io/tree-sitter/creating-parsers#other-external-scanner-details), this will hopefully help to move the parsing of text nodes to JS. While doing this also found a bug https://github.com/stsewd/tree-sitter-rst/blob/c7c2b24918e231072af2d10c03b4893818de9d5d/src/tree_sitter_rst/parser.c#L135-L137 That is trying to parse the text as a numeric bullet, even if the token isn't valid in that context, a check for ` && valid_symbols[T_NUMERIC_BULLET]` was added. Fixes #31
- Loading branch information
Showing
10 changed files
with
231 additions
and
164 deletions.
There are no files selected for viewing
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.