You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-05 12:10:55 +00:00
GDScript: Restore support for Token::UNDERSCORE in identifiers
This commit is contained in:
@@ -574,7 +574,9 @@ GDScriptTokenizer::Token GDScriptTokenizerText::potential_identifier() {
|
||||
|
||||
if (len == 1 && _peek(-1) == '_') {
|
||||
// Lone underscore.
|
||||
return make_token(Token::UNDERSCORE);
|
||||
Token token = make_token(Token::UNDERSCORE);
|
||||
token.literal = "_";
|
||||
return token;
|
||||
}
|
||||
|
||||
String name(_start, len);
|
||||
|
||||
Reference in New Issue
Block a user