|
|
@ -161,6 +161,8 @@ jsmnerr_t jsmn_parse(jsmn_parser *parser, const char *js, jsmntok_t *tokens,
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Error if unmatched closing bracket */
|
|
|
|
|
|
|
|
if (i == -1) return JSMN_ERROR_INVAL;
|
|
|
|
for (; i >= 0; i--) {
|
|
|
|
for (; i >= 0; i--) {
|
|
|
|
token = &tokens[i];
|
|
|
|
token = &tokens[i];
|
|
|
|
if (token->start != -1 && token->end == -1) {
|
|
|
|
if (token->start != -1 && token->end == -1) {
|
|
|
|