You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-04 12:00:25 +00:00
Merge pull request #62830 from ajreckof/access-identifier-keywords
fix access to identifiers that are reserved keywords
This commit is contained in:
@@ -2820,6 +2820,9 @@ GDScriptParser::ExpressionNode *GDScriptParser::parse_attribute(ExpressionNode *
|
||||
|
||||
attribute->base = p_previous_operand;
|
||||
|
||||
if (current.is_node_name()) {
|
||||
current.type = GDScriptTokenizer::Token::IDENTIFIER;
|
||||
}
|
||||
if (!consume(GDScriptTokenizer::Token::IDENTIFIER, R"(Expected identifier after "." for attribute access.)")) {
|
||||
complete_extents(attribute);
|
||||
return attribute;
|
||||
|
||||
Reference in New Issue
Block a user