From 4f36b2df2ac1104243652d9d1d3f66a5cfc53d27 Mon Sep 17 00:00:00 2001 From: cdemirer <41021322+cdemirer@users.noreply.github.com> Date: Mon, 11 Jul 2022 02:42:40 +0300 Subject: [PATCH] Fix parser stuck in an error loop --- modules/gdscript/gdscript_parser.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/gdscript/gdscript_parser.cpp b/modules/gdscript/gdscript_parser.cpp index 233da87aeea..40bce8c9901 100644 --- a/modules/gdscript/gdscript_parser.cpp +++ b/modules/gdscript/gdscript_parser.cpp @@ -1644,6 +1644,7 @@ GDScriptParser::Node *GDScriptParser::parse_statement() { lambda_ended = true; has_ended_lambda = true; } else { + advance(); push_error(vformat(R"(Expected statement, found "%s" instead.)", previous.get_name())); } }