You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-04 12:00:25 +00:00
Merge pull request #99887 from JackErb/gdscript-parser-error-fix
Improve misleading `Unexpected "x" in class body.` GDScript parser error
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user