mirror of
https://github.com/ruby/ruby.git
synced 2026-01-27 04:24:23 +00:00
[ruby/prism] Fix parsing parentheses in hash patterns
https://github.com/ruby/prism/commit/22c3b559cd
This commit is contained in:
parent
51505f70e3
commit
1e4c4fe478
@ -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);
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user