Don't fatal when calling expect_one_of when recovering arg in parse_seq
This commit is contained in:
parent
c5de414865
commit
2ef15523c1
3 changed files with 26 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue