GDScript: Support multiline indexing with []

Fixes #35417.
This commit is contained in:
Rémi Verschelde 2021-10-25 15:50:52 +02:00
parent a1b282cc16
commit 92664f03a9
No known key found for this signature in database
GPG key ID: C3336907360768E1

View file

@ -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;
}