You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-23 15:16:17 +00:00
Make parser treat all exponent literals as float
(cherry picked from commit 1305ff92f7)
This commit is contained in:
@@ -1050,6 +1050,7 @@ Error Expression::_get_token(Token &r_token) {
|
|||||||
is_float = true;
|
is_float = true;
|
||||||
} else if (c == 'e') {
|
} else if (c == 'e') {
|
||||||
reading = READING_EXP;
|
reading = READING_EXP;
|
||||||
|
is_float = true;
|
||||||
} else {
|
} else {
|
||||||
reading = READING_DONE;
|
reading = READING_DONE;
|
||||||
}
|
}
|
||||||
@@ -1086,9 +1087,6 @@ Error Expression::_get_token(Token &r_token) {
|
|||||||
exp_beg = true;
|
exp_beg = true;
|
||||||
|
|
||||||
} else if ((c == '-' || c == '+') && !exp_sign && !exp_beg) {
|
} else if ((c == '-' || c == '+') && !exp_sign && !exp_beg) {
|
||||||
if (c == '-') {
|
|
||||||
is_float = true;
|
|
||||||
}
|
|
||||||
exp_sign = true;
|
exp_sign = true;
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user