diff options
| author | Taylan Kammer <taylan.kammer@gmail.com> | 2025-03-28 21:12:55 +0100 |
|---|---|---|
| committer | Taylan Kammer <taylan.kammer@gmail.com> | 2025-03-28 21:12:55 +0100 |
| commit | 2cbfacaedcc77e28e0a0473045cac689fb43a8ef (patch) | |
| tree | 866f9365ae87315b0d5e41a8fe27435b803ce706 /src/libzisp | |
| parent | d714cf3b57e39979b208369f9369b526409172b3 (diff) | |
blob
Diffstat (limited to 'src/libzisp')
| -rw-r--r-- | src/libzisp/io/parser.zig | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/src/libzisp/io/parser.zig b/src/libzisp/io/parser.zig index 209c548..99bf943 100644 --- a/src/libzisp/io/parser.zig +++ b/src/libzisp/io/parser.zig @@ -257,11 +257,11 @@ const cons = value.pair.cons; const is_test = builtin.is_test; const is_debug = builtin.mode == .Debug; -pub var detailed_debug = false; +const detailed_debug = false; // In debug, we want to see if we leak, so very small numbers. -const init_stack_capacity = if (is_debug) 32 else 32; -const init_chars_capacity = if (is_debug) 512 else 512; +const init_stack_capacity = if (is_debug) 2 else 32; +const init_chars_capacity = if (is_debug) 2 else 2048; // zig fmt: off const DOT = value.rune.pack("DOT"); @@ -640,11 +640,6 @@ fn returnContext(s: *State) !void { fn parseJoin(s: *State, d: Value, c: u8) !void { switch (c) { - ')', ']', '}' => { - // shortcut - s.unused_char = c; - return s.retval(d); - }, '.', ':', '|' => { s.context.char = c; s.unused_char = try s.readNoEof("join datum"); |
