Don't fatal when calling expect_one_of when recovering arg in parse_seq
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user