|
@@ -3618,6 +3618,8 @@ GDScriptParser::ExpressionNode *GDScriptParser::parse_lambda(ExpressionNode *p_p
|
|
|
|
|
|
bool multiline_context = multiline_stack.back()->get();
|
|
|
|
|
|
+ push_completion_call(nullptr);
|
|
|
+
|
|
|
// Reset the multiline stack since we don't want the multiline mode one in the lambda body.
|
|
|
push_multiline(false);
|
|
|
if (multiline_context) {
|
|
@@ -3665,6 +3667,8 @@ GDScriptParser::ExpressionNode *GDScriptParser::parse_lambda(ExpressionNode *p_p
|
|
|
|
|
|
pop_multiline();
|
|
|
|
|
|
+ pop_completion_call();
|
|
|
+
|
|
|
if (multiline_context) {
|
|
|
// If we're in multiline mode, we want to skip the spurious DEDENT and NEWLINE tokens.
|
|
|
while (check(GDScriptTokenizer::Token::DEDENT) || check(GDScriptTokenizer::Token::INDENT) || check(GDScriptTokenizer::Token::NEWLINE)) {
|