Don't fatal when calling expect_one_of when recovering arg in parse_seq

This commit is contained in:
Michael Goulet 2024-04-19 13:12:12 -04:00
parent c5de414865
commit 2ef15523c1
3 changed files with 26 additions and 0 deletions

View file

@ -898,6 +898,7 @@ impl<'a> Parser<'a> {
}
// Attempt to keep parsing if it was an omitted separator.
self.last_unexpected_token_span = None;
match f(self) {
Ok(t) => {
// Parsed successfully, therefore most probably the code only