diff options
author | Florian Westphal <fw@strlen.de> | 2021-06-02 20:38:46 +0200 |
---|---|---|
committer | Florian Westphal <fw@strlen.de> | 2021-06-02 23:46:11 +0200 |
commit | 5c2c6b09286048b39d51964391ef2aecfd247512 (patch) | |
tree | 03295d9dc27ec95a40a8ceb1012e69c356058732 /src/expression.c | |
parent | 4359cb82833a6907f9ee9803be270db89ceaf758 (diff) |
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 <fw@strlen.de>
Diffstat (limited to 'src/expression.c')
-rw-r--r-- | src/expression.c | 1 |
1 files changed, 1 insertions, 0 deletions
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) |