diff --git a/src/lexer.rs b/src/lexer.rs index 992d785..447f28a 100644 --- a/src/lexer.rs +++ b/src/lexer.rs @@ -124,7 +124,7 @@ impl<'t> Lexer<'t> { '|' => self.then().emit(TokenKind::Bar), '}' => self.then().emit(TokenKind::CloseCurly), c if c.is_numeric() => self.number::(), - &c if is_xid_start(c) => self.then().identifier(), + &c if is_xid_start(c) => self.identifier(), c => todo!("Unrecognized character: {c}"), } }