summaryrefslogtreecommitdiff
path: root/src/libzisp/io/parser.zig
diff options
context:
space:
mode:
Diffstat (limited to 'src/libzisp/io/parser.zig')
-rw-r--r--src/libzisp/io/parser.zig11
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");