1
0
mirror of https://github.com/stedolan/jq.git synced 2024-05-11 05:55:39 +00:00

Raise a proper error from the lexer on unmatched },),]

This commit is contained in:
Stephen Dolan
2012-11-26 01:40:35 +00:00
parent 4747f8681b
commit 4c65847568

View File

@ -126,6 +126,10 @@ static int try_exit(int c, int state, yyscan_t yyscanner) {
match = ')';
ret = QQSTRING_INTERP_END;
break;
default:
// may not be the best error to give
return INVALID_CHARACTER;
}
assert(match);
if (match == c) {