fix part of #53, assertion failure on invalid dotted list

This commit is contained in:
Jeff Bezanson
2019-08-08 18:09:02 +03:00
committed by lassik
parent 245d472567
commit f3137447c8
+3 -1
View File
@@ -539,8 +539,10 @@ static void read_list(value_t *pval, value_t label)
t = peek();
if (ios_eof(F))
lerror(ParseError, "read: unexpected end of input");
if (t != TOK_CLOSE)
if (t != TOK_CLOSE) {
take();
lerror(ParseError, "read: expected ')'");
}
}
}
take();