diff options
author | George Marques <george@gmarqu.es> | 2022-07-13 09:18:21 -0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-13 09:18:21 -0300 |
commit | d51aac11379b6883987ac25c3bfcc6ddc99f70b1 (patch) | |
tree | 0cabf64282572f74b14e7418e9ebe3a467e6eef5 /modules/gdscript | |
parent | c17af2c5a3da7579cdcf76b5db587b7fd92c443d (diff) | |
parent | 4f36b2df2ac1104243652d9d1d3f66a5cfc53d27 (diff) |
Merge pull request #62900 from cdemirer/fix-parser-stuck-in-an-error-loop
Diffstat (limited to 'modules/gdscript')
-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 4ec56906bf..0a9ef2e0bd 100644 --- a/modules/gdscript/gdscript_parser.cpp +++ b/modules/gdscript/gdscript_parser.cpp @@ -1680,6 +1680,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())); } } |