summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorcdemirer <41021322+cdemirer@users.noreply.github.com>2022-07-11 02:42:40 +0300
committercdemirer <41021322+cdemirer@users.noreply.github.com>2022-07-11 02:42:40 +0300
commit4f36b2df2ac1104243652d9d1d3f66a5cfc53d27 (patch)
treeb1c7192858e245a33ea39b02e012a81099d68ce1 /modules
parentd26442e709f6361af9ac755ec9291bb43f2cd69b (diff)
Fix parser stuck in an error loop
Diffstat (limited to 'modules')
-rw-r--r--modules/gdscript/gdscript_parser.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/gdscript/gdscript_parser.cpp b/modules/gdscript/gdscript_parser.cpp
index 233da87aee..40bce8c990 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()));
}
}