diff options
author | Yuri Rubinsky <chaosus89@gmail.com> | 2022-09-30 18:34:33 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-30 18:34:33 +0300 |
commit | 6f75b0d79be521cf0d64ec8968c0a465e365a038 (patch) | |
tree | 6e4bf7ec375295237e9923cf170925f7cd995233 /modules/gdscript | |
parent | 166df0896c4e601c58f7261145afba5ee4a088a5 (diff) | |
parent | 5d4853f8ca5fd89ad70e19ed921e0063661f42d5 (diff) |
Merge pull request #64717 from Chaosus/gds_fix_param_completion
Diffstat (limited to 'modules/gdscript')
-rw-r--r-- | modules/gdscript/gdscript_parser.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/modules/gdscript/gdscript_parser.cpp b/modules/gdscript/gdscript_parser.cpp index b4da94e448..f1c841e9dc 100644 --- a/modules/gdscript/gdscript_parser.cpp +++ b/modules/gdscript/gdscript_parser.cpp @@ -2937,6 +2937,10 @@ GDScriptParser::ExpressionNode *GDScriptParser::parse_call(ExpressionNode *p_pre push_error(R"(Expected expression as the function argument.)"); } else { 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; } while (match(GDScriptTokenizer::Token::COMMA)); |