Reset parser step count when bumping

This commit is contained in:
Jonas Schievink 2022-12-19 16:27:00 +01:00
parent 9ed1829f1f
commit c110481dd4

View file

@ -237,6 +237,7 @@ impl<'t> Parser<'t> {
fn do_bump(&mut self, kind: SyntaxKind, n_raw_tokens: u8) { fn do_bump(&mut self, kind: SyntaxKind, n_raw_tokens: u8) {
self.pos += n_raw_tokens as usize; self.pos += n_raw_tokens as usize;
self.steps.set(0);
self.push_event(Event::Token { kind, n_raw_tokens }); self.push_event(Event::Token { kind, n_raw_tokens });
} }