You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-18 14:21:41 +00:00
Fix error spam when naming a func at the end of the script
(cherry picked from commit 07dd627728)
This commit is contained in:
@@ -1521,7 +1521,7 @@ GDScriptParser::SuiteNode *GDScriptParser::parse_suite(const String &p_context,
|
|||||||
int error_count = 0;
|
int error_count = 0;
|
||||||
|
|
||||||
do {
|
do {
|
||||||
if (!multiline && previous.type == GDScriptTokenizer::Token::SEMICOLON && check(GDScriptTokenizer::Token::NEWLINE)) {
|
if (is_at_end() || (!multiline && previous.type == GDScriptTokenizer::Token::SEMICOLON && check(GDScriptTokenizer::Token::NEWLINE))) {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
Node *statement = parse_statement();
|
Node *statement = parse_statement();
|
||||||
|
|||||||
Reference in New Issue
Block a user