[ruby/prism] Fix parsing parentheses in hash patterns

https://github.com/ruby/prism/commit/22c3b559cd
This commit is contained in:
Kevin Newton 2024-07-19 08:46:39 -04:00 committed by git
parent 51505f70e3
commit 1e4c4fe478

View File

@ -17034,7 +17034,8 @@ parse_pattern_primitives(pm_parser_t *parser, pm_constant_id_list_t *captures, p
break;
}
case PM_TOKEN_PARENTHESIS_LEFT: {
case PM_TOKEN_PARENTHESIS_LEFT:
case PM_TOKEN_PARENTHESIS_LEFT_PARENTHESES: {
pm_token_t opening = parser->current;
parser_lex(parser);