From 54742f7c6014c62e0094f2a2062a30436e3efa0a Mon Sep 17 00:00:00 2001 From: HolonProduction Date: Wed, 27 Dec 2023 17:46:17 +0100 Subject: [PATCH] Fix symbol lookup in index subscript --- modules/gdscript/gdscript_editor.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/gdscript/gdscript_editor.cpp b/modules/gdscript/gdscript_editor.cpp index 87617cafabb2..f88db011753e 100644 --- a/modules/gdscript/gdscript_editor.cpp +++ b/modules/gdscript/gdscript_editor.cpp @@ -3561,7 +3561,8 @@ ::Error GDScriptLanguage::lookup_code(const String &p_code, const String &p_symb 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) {