aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2021-09-23 13:43:43 -0700
committerBruce Hill <bruce@bruce-hill.com>2021-09-23 13:43:43 -0700
commitfb67ceb276d3aec1a7ab199940bce1bf581a6ffb (patch)
tree41d721004dfb86c277c32a498945f01ec43e3b2b
parent744a92756200052837e25f4f7758175241528536 (diff)
Minor BP_ERROR cleanup
-rw-r--r--json.c2
1 files changed, 1 insertions, 1 deletions
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);