From fb67ceb276d3aec1a7ab199940bce1bf581a6ffb Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Thu, 23 Sep 2021 13:43:43 -0700 Subject: Minor BP_ERROR cleanup --- json.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'json.c') diff --git a/json.c b/json.c index 259e722..231ccce 100644 --- a/json.c +++ b/json.c @@ -30,7 +30,7 @@ static int _json_match(const char *text, match_t *m, int comma, bool verbose) } printf("\",\"range\":[%ld,%ld]", m->start - text, m->end - text); - if (m->children && (verbose || (m->pat->type != BP_REF && m->pat->type != BP_ERROR))) { + if (m->children && (verbose || m->pat->type != BP_REF)) { printf(",\"children\":["); for (int i = 0; m->children && m->children[i]; i++) comma |= _json_match(text, m->children[i], comma, verbose); -- cgit v1.2.3