diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2025-05-01 15:51:01 -0400 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2025-05-01 15:51:01 -0400 |
| commit | 6356b037e9d4e87537b57ba13e37919f9490af2e (patch) | |
| tree | cd56789451000b8691ebe0f2e860fa657b2c868c /src/parse.c | |
| parent | bd2c4773e96a2d4a4754688a855f2edc5363c26e (diff) | |
Revert fix for empty set parsing
Diffstat (limited to 'src/parse.c')
| -rw-r--r-- | src/parse.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/parse.c b/src/parse.c index f5a9df88..e2f267c1 100644 --- a/src/parse.c +++ b/src/parse.c @@ -799,8 +799,11 @@ PARSER(parse_table) { } PARSER(parse_set) { - if (!match(&pos, "|")) return NULL; const char *start = pos; + if (match(&pos, "||")) + return NewAST(ctx->file, start, pos, Set); + + if (!match(&pos, "|")) return NULL; whitespace(&pos); ast_list_t *items = NULL; |
