mirror of
https://github.com/godotengine/godot.git
synced 2025-11-01 14:11:15 +00:00
Fix is_valid_float, Variant parser, Expression parser, script highlighter, and TextServer not handing capital E in scientific notation.
This commit is contained in:
parent
a63a8b430b
commit
b50d9742c2
10 changed files with 52 additions and 35 deletions
|
|
@ -359,7 +359,7 @@ Error Expression::_get_token(Token &r_token) {
|
|||
} else if (c == '.') {
|
||||
reading = READING_DEC;
|
||||
is_float = true;
|
||||
} else if (c == 'e') {
|
||||
} else if (c == 'e' || c == 'E') {
|
||||
reading = READING_EXP;
|
||||
is_float = true;
|
||||
} else {
|
||||
|
|
@ -385,7 +385,7 @@ Error Expression::_get_token(Token &r_token) {
|
|||
} break;
|
||||
case READING_DEC: {
|
||||
if (is_digit(c)) {
|
||||
} else if (c == 'e') {
|
||||
} else if (c == 'e' || c == 'E') {
|
||||
reading = READING_EXP;
|
||||
} else {
|
||||
reading = READING_DONE;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue