1
0
mirror of https://github.com/godotengine/godot.git synced 2025-12-31 18:41:20 +00:00

Make parser treat all exponent literals as float

This commit is contained in:
Hayden
2022-02-05 00:14:49 +13:00
parent 29c4644890
commit 1305ff92f7
2 changed files with 2 additions and 4 deletions

View File

@@ -373,6 +373,7 @@ Error Expression::_get_token(Token &r_token) {
is_float = true;
} else if (c == 'e') {
reading = READING_EXP;
is_float = true;
} else {
reading = READING_DONE;
}
@@ -409,9 +410,6 @@ Error Expression::_get_token(Token &r_token) {
exp_beg = true;
} else if ((c == '-' || c == '+') && !exp_sign && !exp_beg) {
if (c == '-') {
is_float = true;
}
exp_sign = true;
} else {