aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2025-05-01 15:51:01 -0400
committerBruce Hill <bruce@bruce-hill.com>2025-05-01 15:51:01 -0400
commit6356b037e9d4e87537b57ba13e37919f9490af2e (patch)
treecd56789451000b8691ebe0f2e860fa657b2c868c /src
parentbd2c4773e96a2d4a4754688a855f2edc5363c26e (diff)
Revert fix for empty set parsing
Diffstat (limited to 'src')
-rw-r--r--src/parse.c5
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;