Merge pull request #56342 from NNesh/fix/class-completion

This commit is contained in:
Rémi Verschelde 2022-01-10 17:07:08 +01:00 committed by GitHub
commit 8f8c3f4b4c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;