mirror of
https://github.com/godotengine/godot.git
synced 2025-11-01 06:01:14 +00:00
GDScript: Support multiline indexing with []
Fixes #35417.
(cherry picked from commit 92664f03a9)
This commit is contained in:
parent
bdf7a0294b
commit
e5d6954505
1 changed files with 2 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue