From 56a4d13975f443fc9e81f0acbb1a896122aa5857 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Thu, 12 Sep 2024 13:05:08 -0400 Subject: Automatic promotion to single-argument enum tags with a unique type --- parse.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'parse.c') diff --git a/parse.c b/parse.c index 1aff4bc9..62eb7bdf 100644 --- a/parse.c +++ b/parse.c @@ -733,6 +733,8 @@ PARSER(parse_array) { whitespace(&pos); item_type = expect(ctx, pos-1, &pos, parse_type, "I couldn't parse a type for this array"); whitespace(&pos); + match(&pos, ","); + whitespace(&pos); } for (;;) { @@ -843,6 +845,8 @@ PARSER(parse_set) { if (match(&pos, ":")) return NULL; whitespace(&pos); + match(&pos, ","); + whitespace(&pos); } for (;;) { -- cgit v1.2.3