mirror of
https://github.com/godotengine/godot.git
synced 2025-10-27 19:54:27 +00:00
Merge pull request #56342 from NNesh/fix/class-completion
This commit is contained in:
commit
8f8c3f4b4c
1 changed files with 2 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue