GDScript: Support multiline indexing with []
Fixes #35417.
(cherry picked from commit 92664f03a9
)
This commit is contained in:
parent
bdf7a0294b
commit
e5d6954505
@ -1223,7 +1223,9 @@ GDScriptParser::Node *GDScriptParser::_parse_expression(Node *p_parent, bool p_s
|
||||
|
||||
tokenizer->advance(1);
|
||||
|
||||
parenthesis++;
|
||||
Node *subexpr = _parse_expression(op, p_static, p_allow_assign, p_parsing_constant);
|
||||
parenthesis--;
|
||||
if (!subexpr) {
|
||||
return nullptr;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user