diff options
author | George Marques <george@gmarqu.es> | 2022-07-13 09:24:36 -0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-13 09:24:36 -0300 |
commit | ad11d264b7921a0f6abc027217cb50ee082d373e (patch) | |
tree | 594793c9a3153558e24d9f20f6d84c94abdbf066 /modules/gdscript/gdscript_parser.cpp | |
parent | d51aac11379b6883987ac25c3bfcc6ddc99f70b1 (diff) | |
parent | 5a906a33d997aae5f6420f29b16922fe310f8386 (diff) |
Merge pull request #62901 from cdemirer/prevent-unnecessary-additional-parser-error
Diffstat (limited to 'modules/gdscript/gdscript_parser.cpp')
-rw-r--r-- | modules/gdscript/gdscript_parser.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/gdscript/gdscript_parser.cpp b/modules/gdscript/gdscript_parser.cpp index 0a9ef2e0bd..6c5d416cf1 100644 --- a/modules/gdscript/gdscript_parser.cpp +++ b/modules/gdscript/gdscript_parser.cpp @@ -1683,8 +1683,9 @@ GDScriptParser::Node *GDScriptParser::parse_statement() { advance(); push_error(vformat(R"(Expected statement, found "%s" instead.)", previous.get_name())); } + } else { + end_statement("expression"); } - end_statement("expression"); lambda_ended = lambda_ended || has_ended_lambda; result = expression; |