From 85dba49b542bed21d67c2b78d15ebaaf07caff97 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Thu, 20 May 2021 01:00:10 -0700 Subject: Fixed up JSON output --- json.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'json.c') diff --git a/json.c b/json.c index 18b1fa6..546d99b 100644 --- a/json.c +++ b/json.c @@ -17,7 +17,7 @@ static int _json_match(const char *text, match_t *m, int comma, bool verbose); static int _json_match(const char *text, match_t *m, int comma, bool verbose) { if (!verbose) { - if (m->pat->type != BP_REF) { + if (m->pat->type != BP_REF && m->pat->type != BP_ERROR) { for (match_t *child = m->child; child; child = child->nextsibling) { comma |= _json_match(text, child, comma, verbose); } -- cgit v1.2.3