Fix completion of parameters in function call
This commit is contained in:
parent
f47979f087
commit
5d4853f8ca
1 changed files with 4 additions and 0 deletions
|
@ -2937,6 +2937,10 @@ GDScriptParser::ExpressionNode *GDScriptParser::parse_call(ExpressionNode *p_pre
|
||||||
push_error(R"(Expected expression as the function argument.)");
|
push_error(R"(Expected expression as the function argument.)");
|
||||||
} else {
|
} else {
|
||||||
call->arguments.push_back(argument);
|
call->arguments.push_back(argument);
|
||||||
|
|
||||||
|
if (argument->type == Node::IDENTIFIER && current.cursor_place == GDScriptTokenizer::CURSOR_BEGINNING) {
|
||||||
|
completion_context.type = COMPLETION_IDENTIFIER;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
ct = COMPLETION_CALL_ARGUMENTS;
|
ct = COMPLETION_CALL_ARGUMENTS;
|
||||||
} while (match(GDScriptTokenizer::Token::COMMA));
|
} while (match(GDScriptTokenizer::Token::COMMA));
|
||||||
|
|
Loading…
Reference in a new issue