From 6ff25a22ec2ac69cbba80315ebaa12ef45b0df51 Mon Sep 17 00:00:00 2001 From: Jeff Date: Thu, 12 Sep 2024 05:12:38 -0400 Subject: [PATCH] Fix lexing bug that I just created --- dust-lang/src/lexer.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/dust-lang/src/lexer.rs b/dust-lang/src/lexer.rs index 5a3728c..67721b0 100644 --- a/dust-lang/src/lexer.rs +++ b/dust-lang/src/lexer.rs @@ -403,6 +403,10 @@ impl<'src> Lexer<'src> { self.next_char(); while let Some(peek_char) = self.peek_char() { + if peek_char == ' ' { + break; + } + if let '0'..='9' = peek_char { self.next_char();