Fixed completion showing for class members

This commit is contained in:
NNesh 2021-12-30 15:25:02 +05:00
parent 9f058674ac
commit 1a1ee43e3e

View File

@ -805,6 +805,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;