|
@@ -1073,8 +1073,8 @@ void GDScriptParser::parse_class_body(bool p_is_multiline) {
|
|
|
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();
|
|
|
+ push_error(vformat(R"(Unexpected %s in class body.)", previous.get_debug_name()));
|
|
|
break;
|
|
|
}
|
|
|
if (token.type != GDScriptTokenizer::Token::STATIC) {
|