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

This commit is contained in:
Stephen Dolan committed 2012-11-26 01:40:35 +00:00
1 parent 4747f8681b
commit 4c65847568
1 file changed
+4
+4
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) {