Added tests for expression matching
This commit is contained in:
1 parent
6c258a89de
commit
15ccd83ada
5 files changed
+87
-1
No files matched your search
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user