diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2022-01-10 17:07:08 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-10 17:07:08 +0100 |
commit | 8f8c3f4b4c9c8f9e42eb64d4af464f920d827dda (patch) | |
tree | ccbe5461dea86e4774cb4a95d5913ce46db34767 /modules | |
parent | b3d208385f1bb119a37c91182c440df8e20955d4 (diff) | |
parent | 1a1ee43e3ea6e515a60c2d5c0798b6eac2dba2ad (diff) |
Merge pull request #56342 from NNesh/fix/class-completion
Diffstat (limited to 'modules')
-rw-r--r-- | modules/gdscript/gdscript_parser.cpp | 2 |
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; |