diff options
author | cdemirer <41021322+cdemirer@users.noreply.github.com> | 2022-07-11 02:42:40 +0300 |
---|---|---|
committer | cdemirer <41021322+cdemirer@users.noreply.github.com> | 2022-07-11 02:42:40 +0300 |
commit | 4f36b2df2ac1104243652d9d1d3f66a5cfc53d27 (patch) | |
tree | b1c7192858e245a33ea39b02e012a81099d68ce1 | |
parent | d26442e709f6361af9ac755ec9291bb43f2cd69b (diff) |
Fix parser stuck in an error loop
-rw-r--r-- | modules/gdscript/gdscript_parser.cpp | 1 |
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())); } } |