summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2022-01-10 17:07:08 +0100
committerGitHub <noreply@github.com>2022-01-10 17:07:08 +0100
commit8f8c3f4b4c9c8f9e42eb64d4af464f920d827dda (patch)
treeccbe5461dea86e4774cb4a95d5913ce46db34767 /modules
parentb3d208385f1bb119a37c91182c440df8e20955d4 (diff)
parent1a1ee43e3ea6e515a60c2d5c0798b6eac2dba2ad (diff)
Merge pull request #56342 from NNesh/fix/class-completion
Diffstat (limited to 'modules')
-rw-r--r--modules/gdscript/gdscript_parser.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/gdscript/gdscript_parser.cpp b/modules/gdscript/gdscript_parser.cpp
index 2faf0febca..4fda1e5391 100644
--- a/modules/gdscript/gdscript_parser.cpp
+++ b/modules/gdscript/gdscript_parser.cpp
@@ -817,6 +817,8 @@ void GDScriptParser::parse_class_body(bool p_is_multiline) {
class_end = true;
break;
default:
+ // Display a completion with identifiers.
+ make_completion_context(COMPLETION_IDENTIFIER, nullptr);
push_error(vformat(R"(Unexpected "%s" in class body.)", current.get_name()));
advance();
break;