Returns an error if parseNumberLiteral returns .float but parseFloat fails.
AstGen relies on parseFloat being unable to fail after calling parseNumberLiteral.
fn checkFloat(bytes: []const u8) !void
fn checkFloat(bytes: []const u8) !void {
// Number literals must start with a digit
if (bytes.len == 0 or !std.ascii.isDigit(bytes[0])) return;
switch (parseNumberLiteral(bytes)) {
.float => {
_ = try std.fmt.parseFloat(f128, bytes);
},
else => {},
}
}