summaryrefslogtreecommitdiff
path: root/matcher.c
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2014-01-01 21:38:08 +0000
committerJo-Philipp Wich <jow@openwrt.org>2014-01-01 21:53:06 +0000
commitc95f8d8ed4035cdbebfdfb1ff0c94e3958f3ebb9 (patch)
treea96861bd8be4ce2a2d38763d73f3804367a18838 /matcher.c
parent21634830501d0557e44fa5561f3f73e2b7c0ebc3 (diff)
downloadjsonpath-c95f8d8ed4035cdbebfdfb1ff0c94e3958f3ebb9.tar.gz
lexer, parser, matcher: extend grammar to allow comma separated keys/indexes as more readable alternative to or expressions
Diffstat (limited to 'matcher.c')
-rw-r--r--matcher.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/matcher.c b/matcher.c
index 9d2aa89..51e0e3c 100644
--- a/matcher.c
+++ b/matcher.c
@@ -164,6 +164,7 @@ jp_expr(struct jp_opcode *op, struct json_object *root, struct json_object *cur,
return true;
case T_OR:
+ case T_UNION:
for (sop = op->down; sop; sop = sop->sibling)
if (jp_expr(sop, root, cur, idx, key, cb, priv))
return true;