From b368fe65bb45dc4414c9cc2dabc7d84fa7690c36 Mon Sep 17 00:00:00 2001 From: Mathias Magnusson Date: Tue, 29 Jul 2025 23:01:38 +0200 Subject: store local variables on the stack --- src/Lexer.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/Lexer.zig') 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; } -- cgit v1.2.3