Skip to content

Commit

Permalink
Merge pull request #52521 from kdiduk/52499-preload-parsing-error-whe…
Browse files Browse the repository at this point in the history
…n-newline-encountered
  • Loading branch information
akien-mga authored Oct 6, 2021
2 parents 322387b + 835143b commit 3f05c38
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions modules/gdscript/gdscript_parser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -435,7 +435,9 @@ GDScriptParser::Node *GDScriptParser::_parse_expression(Node *p_parent, bool p_s
bool valid = false;
ConstantNode *cn;

parenthesis++;
Node *subexpr = _parse_and_reduce_expression(p_parent, p_static);
parenthesis--;
if (subexpr) {
if (subexpr->type == Node::TYPE_CONSTANT) {
cn = static_cast<ConstantNode *>(subexpr);
Expand Down

0 comments on commit 3f05c38

Please sign in to comment.