From 2c8475ff9c54b361f2145a694e6bb2b4da945841 Mon Sep 17 00:00:00 2001 From: Neil Date: Mon, 14 Feb 2022 22:17:00 -0800 Subject: [PATCH] Aha, self-contained again. --- src/lex.re_c.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/lex.re_c.c b/src/lex.re_c.c index f7d882f..8e968dc 100644 --- a/src/lex.re_c.c +++ b/src/lex.re_c.c @@ -209,15 +209,13 @@ scan: ws* @s0 date @s1 ws* ";"? / "]"? { x->s0 = s0, x->s1 = s1; expect_pop(); return x->symbol = ARG_DATE, 1; } - ws* @s0 [^\t\n\r\v\f;[\]\x00]* @s1 ws* ";"? / "]"? + ws* @s0 [^\t\n\r\v\f;[\]\x00]* @s1 ws* ";"? / "]"? { x->s0 = s0, x->s1 = s1; expect_pop(); return x->symbol = ARG_FREEFORM, 1; } "]" => text - { printf("]\n"); if(scan.command.size) { printf("huh?\n"); return 0; } - goto scan; - } + { if(scan.command.size) return 0; + goto scan; } * { return x->symbol = ERROR, 0; } */ - assert(0); }