diff options
author | ThreeRhinosInAnElephantCostume <myrealstemail@protonmail.com> | 2021-08-25 15:42:48 +0200 |
---|---|---|
committer | ThreeRhinosInAnElephantCostume <myrealstemail@protonmail.com> | 2021-09-03 06:59:13 +0200 |
commit | 15ccd83ada047cb56f5b63b0ef671d3ae76d100a (patch) | |
tree | 659ad1624fe359ddc8c286aa4e147787ad7bdabd /modules/gdscript/gdscript_parser.cpp | |
parent | 6c258a89de2afcb54554252543096f9521dd61ed (diff) | |
download | redot-engine-15ccd83ada047cb56f5b63b0ef671d3ae76d100a.tar.gz |
Added tests for expression matching
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 ee2781b2ee..6882f7107f 100644 --- a/modules/gdscript/gdscript_parser.cpp +++ b/modules/gdscript/gdscript_parser.cpp @@ -1746,8 +1746,9 @@ GDScriptParser::MatchBranchNode *GDScriptParser::parse_match_branch() { push_error(R"(No pattern found for "match" branch.)"); } - if (!consume(GDScriptTokenizer::Token::COLON, R"(Expected ":" after "match" patterns.)")) + if (!consume(GDScriptTokenizer::Token::COLON, R"(Expected ":" after "match" patterns.)")) { return nullptr; + } // Save continue state. bool could_continue = can_continue; |