Skip to content

Commit c110481

Browse files
author
Jonas Schievink
committed
Reset parser step count when bumping
1 parent 9ed1829 commit c110481

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Diff for: crates/parser/src/parser.rs

+1
Original file line numberDiff line numberDiff line change
@@ -237,6 +237,7 @@ impl<'t> Parser<'t> {
237237

238238
fn do_bump(&mut self, kind: SyntaxKind, n_raw_tokens: u8) {
239239
self.pos += n_raw_tokens as usize;
240+
self.steps.set(0);
240241
self.push_event(Event::Token { kind, n_raw_tokens });
241242
}
242243

0 commit comments

Comments
 (0)