1
0

Fix lexing bug that I just created

This commit is contained in:
Jeff 2024-09-12 05:12:38 -04:00
parent d4d58e793b
commit 6ff25a22ec

View File

@ -403,6 +403,10 @@ impl<'src> Lexer<'src> {
self.next_char(); self.next_char();
while let Some(peek_char) = self.peek_char() { while let Some(peek_char) = self.peek_char() {
if peek_char == ' ' {
break;
}
if let '0'..='9' = peek_char { if let '0'..='9' = peek_char {
self.next_char(); self.next_char();