authorgravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2026-02-12 02:22:32 -08:00
committergravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2026-02-12 02:22:32 -08:00
log33e66a5d2fb789b9e35ffe7298188dd2710aed5a
treeffb0b9930c9ee51f3b75694b36ae21b7e6ad43cc
parentaf9c467d2eea9ca07e1ba66b2b02c1e6fc082ffb

use extras.parseDigits


1 files changed, 1 insertions(+), 1 deletions(-)

src/astgen.zig+1-1
...@@ -223,7 +223,7 @@ const Parser = struct {...@@ -223,7 +223,7 @@ const Parser = struct {
223 if (temp.len == 0 and self.nextIs(.word)) {223 if (temp.len == 0 and self.nextIs(.word)) {
224 const next_word = self.eat(.word);224 const next_word = self.eat(.word);
225 if (extras.matchesAll(u8, next_word, std.ascii.isDigit)) {225 if (extras.matchesAll(u8, next_word, std.ascii.isDigit)) {
226 ret = ret ++ &[_]Arg{.{ .int = std.fmt.parseUnsigned(u64, next_word, 10) catch unreachable }};226 ret = ret ++ &[_]Arg{.{ .int = extras.parseDigits(u64, next_word, 10) catch unreachable }};
227 continue;227 continue;
228 }228 }
229 temp = temp ++ &[_]string{next_word};229 temp = temp ++ &[_]string{next_word};