From 5c2c6b09286048b39d51964391ef2aecfd247512 Mon Sep 17 00:00:00 2001 From: Florian Westphal Date: Wed, 2 Jun 2021 20:38:46 +0200 Subject: json: catchall element support Treat '*' as catchall element, not as a symbol. Also add missing json test cases for wildcard set support. Signed-off-by: Florian Westphal --- src/expression.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/expression.c') diff --git a/src/expression.c b/src/expression.c index c9133363..c6be0001 100644 --- a/src/expression.c +++ b/src/expression.c @@ -1341,6 +1341,7 @@ static const struct expr_ops set_elem_catchall_expr_ops = { .type = EXPR_SET_ELEM_CATCHALL, .name = "catch-all set element", .print = set_elem_catchall_expr_print, + .json = set_elem_catchall_expr_json, }; struct expr *set_elem_catchall_expr_alloc(const struct location *loc) -- cgit v1.2.3