diff options
author | Yuri Sizov <yuris@humnom.net> | 2024-01-17 18:52:49 +0100 |
---|---|---|
committer | Yuri Sizov <yuris@humnom.net> | 2024-01-17 18:52:49 +0100 |
commit | 5b22884b4aab9bfc0522686daa20df6ca0076027 (patch) | |
tree | b46bcc4a463fa70db76f918bea3fa7d174b8e289 /modules/gdscript/gdscript_editor.cpp | |
parent | 7351b5704a697da868532ad72b02469986e2f112 (diff) | |
parent | 54742f7c6014c62e0094f2a2062a30436e3efa0a (diff) | |
download | redot-engine-5b22884b4aab9bfc0522686daa20df6ca0076027.tar.gz |
Merge pull request #86554 from HolonProduction/lookup-subscript
Fix symbol lookup in index subscript
Diffstat (limited to 'modules/gdscript/gdscript_editor.cpp')
-rw-r--r-- | modules/gdscript/gdscript_editor.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/gdscript/gdscript_editor.cpp b/modules/gdscript/gdscript_editor.cpp index 4658abe8a1..8fdda257dd 100644 --- a/modules/gdscript/gdscript_editor.cpp +++ b/modules/gdscript/gdscript_editor.cpp @@ -3579,7 +3579,8 @@ static Error _lookup_symbol_from_base(const GDScriptParser::DataType &p_base, co case GDScriptParser::COMPLETION_ASSIGN: case GDScriptParser::COMPLETION_CALL_ARGUMENTS: case GDScriptParser::COMPLETION_IDENTIFIER: - case GDScriptParser::COMPLETION_PROPERTY_METHOD: { + case GDScriptParser::COMPLETION_PROPERTY_METHOD: + case GDScriptParser::COMPLETION_SUBSCRIPT: { GDScriptParser::DataType base_type; if (context.current_class) { if (context.type != GDScriptParser::COMPLETION_SUPER_METHOD) { |