|
@@ -3371,6 +3371,9 @@ GDScriptParser::ExpressionNode *GDScriptParser::parse_call(ExpressionNode *p_pre
|
|
if (previous.type == GDScriptTokenizer::Token::SUPER) {
|
|
if (previous.type == GDScriptTokenizer::Token::SUPER) {
|
|
// Super call.
|
|
// Super call.
|
|
call->is_super = true;
|
|
call->is_super = true;
|
|
|
|
+ if (!check(GDScriptTokenizer::Token::PERIOD)) {
|
|
|
|
+ make_completion_context(COMPLETION_SUPER, call);
|
|
|
|
+ }
|
|
push_multiline(true);
|
|
push_multiline(true);
|
|
if (match(GDScriptTokenizer::Token::PARENTHESIS_OPEN)) {
|
|
if (match(GDScriptTokenizer::Token::PARENTHESIS_OPEN)) {
|
|
// Implicit call to the parent method of the same name.
|
|
// Implicit call to the parent method of the same name.
|
|
@@ -3387,7 +3390,7 @@ GDScriptParser::ExpressionNode *GDScriptParser::parse_call(ExpressionNode *p_pre
|
|
}
|
|
}
|
|
} else {
|
|
} else {
|
|
consume(GDScriptTokenizer::Token::PERIOD, R"(Expected "." or "(" after "super".)");
|
|
consume(GDScriptTokenizer::Token::PERIOD, R"(Expected "." or "(" after "super".)");
|
|
- make_completion_context(COMPLETION_SUPER_METHOD, call, true);
|
|
|
|
|
|
+ make_completion_context(COMPLETION_SUPER_METHOD, call);
|
|
if (!consume(GDScriptTokenizer::Token::IDENTIFIER, R"(Expected function name after ".".)")) {
|
|
if (!consume(GDScriptTokenizer::Token::IDENTIFIER, R"(Expected function name after ".".)")) {
|
|
pop_multiline();
|
|
pop_multiline();
|
|
complete_extents(call);
|
|
complete_extents(call);
|