mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-01 15:01:51 +00:00
Reset parser step count when bumping
This commit is contained in:
parent
9ed1829f1f
commit
c110481dd4
@ -237,6 +237,7 @@ impl<'t> Parser<'t> {
|
||||
|
||||
fn do_bump(&mut self, kind: SyntaxKind, n_raw_tokens: u8) {
|
||||
self.pos += n_raw_tokens as usize;
|
||||
self.steps.set(0);
|
||||
self.push_event(Event::Token { kind, n_raw_tokens });
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user