forked from NomicFoundation/slang
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve error recovery in delimited groups when can't parse anything
TerminatedBy can be a bit too greedy, i.e. we recovered some unexpected item definition just because... we recovered at a terminator. However, the delimited group is a reasonable boundary since it's simple (2-3 kinds of delimiters) and the opening delimiter must always match the closing one, so it produces more reliable and self-contained recovered phrases, so attempting to recover from a null parse in a delimited group makes more sense.
- Loading branch information
Showing
10 changed files
with
307 additions
and
63 deletions.
There are no files selected for viewing
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.