diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2024-09-12 13:05:08 -0400 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2024-09-12 13:05:08 -0400 |
| commit | 56a4d13975f443fc9e81f0acbb1a896122aa5857 (patch) | |
| tree | 09ea8a4d14ff7e3d849f9ed3cb3b76b81094fff9 /parse.c | |
| parent | 43f4f3610e5258afbfb9e313c989e1e52f477c38 (diff) | |
Automatic promotion to single-argument enum tags with a unique type
Diffstat (limited to 'parse.c')
| -rw-r--r-- | parse.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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 (;;) { |
