aboutsummaryrefslogtreecommitdiff
path: root/parse.c
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2024-09-12 13:05:08 -0400
committerBruce Hill <bruce@bruce-hill.com>2024-09-12 13:05:08 -0400
commit56a4d13975f443fc9e81f0acbb1a896122aa5857 (patch)
tree09ea8a4d14ff7e3d849f9ed3cb3b76b81094fff9 /parse.c
parent43f4f3610e5258afbfb9e313c989e1e52f477c38 (diff)
Automatic promotion to single-argument enum tags with a unique type
Diffstat (limited to 'parse.c')
-rw-r--r--parse.c4
1 files changed, 4 insertions, 0 deletions
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 (;;) {