Fix tokenizer for 0i #658

This commit is contained in:
gingerBill
2020-05-24 21:43:36 +01:00
parent a2c50d3666
commit d6bcc25b69
-5
View File
@@ -718,14 +718,9 @@ Token scan_number_to_token(Tokenizer *t, bool seen_decimal_point) {
} }
} else { } else {
seen_decimal_point = false;
scan_mantissa(t, 10); scan_mantissa(t, 10);
if (t->curr_rune == '.' || t->curr_rune == 'e' || t->curr_rune == 'E') {
seen_decimal_point = true;
goto fraction; goto fraction;
} }
}
goto end; goto end;
} }