Only do parser recovery on retried macro matching
This prevents issues with eager parser recovery during macro matching.
This commit is contained in:
parent
6d651a295e
commit
b7b67228f9
5 changed files with 60 additions and 10 deletions
|
@ -503,8 +503,8 @@ impl<'a> Parser<'a> {
|
|||
parser
|
||||
}
|
||||
|
||||
pub fn forbid_recovery(mut self) -> Self {
|
||||
self.recovery = Recovery::Forbidden;
|
||||
pub fn recovery(mut self, recovery: Recovery) -> Self {
|
||||
self.recovery = recovery;
|
||||
self
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue