You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-04 12:00:25 +00:00
Fix GDScript Tokenizer being very strict about the number of underscores
You can use multiple underscores in one number, just not two of them together.
This commit is contained in:
@@ -633,6 +633,8 @@ GDScriptTokenizer::Token GDScriptTokenizer::number() {
|
||||
push_error(error);
|
||||
}
|
||||
previous_was_underscore = true;
|
||||
} else {
|
||||
previous_was_underscore = false;
|
||||
}
|
||||
_advance();
|
||||
}
|
||||
@@ -704,6 +706,8 @@ GDScriptTokenizer::Token GDScriptTokenizer::number() {
|
||||
push_error(error);
|
||||
}
|
||||
previous_was_underscore = true;
|
||||
} else {
|
||||
previous_was_underscore = false;
|
||||
}
|
||||
_advance();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user