mirror of
https://github.com/godotengine/godot.git
synced 2025-10-20 00:13:30 +00:00
Added tests for expression matching
This commit is contained in:
parent
6c258a89de
commit
15ccd83ada
5 changed files with 87 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue