diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2021-05-20 01:00:10 -0700 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2021-05-20 01:00:10 -0700 |
| commit | 85dba49b542bed21d67c2b78d15ebaaf07caff97 (patch) | |
| tree | e85838ab496050943226b1ab4f6b3f640f1136f7 /json.c | |
| parent | 7ac9df98dce310ff781b984e66ba5cad0fe1b4df (diff) | |
Fixed up JSON output
Diffstat (limited to 'json.c')
| -rw-r--r-- | json.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); } |
