diff options
Diffstat (limited to 'src/Lexer.zig')
-rw-r--r-- | src/Lexer.zig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Lexer.zig b/src/Lexer.zig index 4a4d895..19e9cd4 100644 --- a/src/Lexer.zig +++ b/src/Lexer.zig @@ -134,7 +134,7 @@ fn integerLiteral(self: *Self) Token { fn identifierOrKeyword(self: *Self) Token { while (true) { const c = self.peekChar() orelse 0; - if ('a' <= c and c <= 'z' or 'A' <= c and c <= 'Z' or c == '_') { + if ('a' <= c and c <= 'z' or 'A' <= c and c <= 'Z' or c == '_' or '0' <= c and c <= '9') { _ = self.eatChar(); continue; } |