From 92664f03a921b1e5bc07e54b00d4ef9d4acfc7b9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Verschelde?= Date: Mon, 25 Oct 2021 15:50:52 +0200 Subject: [PATCH] GDScript: Support multiline indexing with `[]` Fixes #35417. --- modules/gdscript/gdscript_parser.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/gdscript/gdscript_parser.cpp b/modules/gdscript/gdscript_parser.cpp index 6e61a63f9ea..44a98e82d45 100644 --- a/modules/gdscript/gdscript_parser.cpp +++ b/modules/gdscript/gdscript_parser.cpp @@ -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; }