mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-12-27 21:43:37 +00:00
Reset parser step count when bumping
This commit is contained in:
parent
9ed1829f1f
commit
c110481dd4
1 changed files with 1 additions and 0 deletions
|
@ -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 a new issue