diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2021-09-23 13:43:56 -0700 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2021-09-23 13:43:56 -0700 |
| commit | 86404d0ab3651ad5347aeada02566bd5b8eaa0af (patch) | |
| tree | 2c0c11aeb288cf7e92310ca23846369e70484d10 /json.c | |
| parent | e938ecbdcce8d56d2cf78e57879e364f990b99be (diff) | |
| parent | fb67ceb276d3aec1a7ab199940bce1bf581a6ffb (diff) | |
Merge branch 'master' into setjmp
Diffstat (limited to 'json.c')
| -rw-r--r-- | json.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); |
