Detect a lack of digits in the exponent for a number

This commit is contained in:
Eric Fischer 2014-02-06 13:26:56 -08:00
parent 55692cb27c
commit 1a7b4189bf

@ -310,6 +310,10 @@ again:
}
c = peek(f);
if (c < '0' || c > '9') {
*error = "Exponent without digits";
return NULL;
}
while (c >= '0' && c <= '9') {
string_append(&val, getc(f));
c = peek(f);