Skip to content

Commit c1e84dc

Browse files
kddnewtonmatzbot
authored andcommitted
[ruby/prism] Fix pinned expression binding power
ruby/prism@979251ef06
1 parent 78d6c9b commit c1e84dc

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

prism/prism.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16830,7 +16830,7 @@ parse_pattern_primitive(pm_parser_t *parser, pm_constant_id_list_t *captures, pm
1683016830
pm_token_t lparen = parser->current;
1683116831
parser_lex(parser);
1683216832

16833-
pm_node_t *expression = parse_value_expression(parser, PM_BINDING_POWER_STATEMENT, PM_PARSE_ACCEPTS_DO_BLOCK | PM_PARSE_ACCEPTS_COMMAND_CALL, PM_ERR_PATTERN_EXPRESSION_AFTER_PIN, (uint16_t) (depth + 1));
16833+
pm_node_t *expression = parse_value_expression(parser, PM_BINDING_POWER_COMPOSITION, PM_PARSE_ACCEPTS_DO_BLOCK | PM_PARSE_ACCEPTS_COMMAND_CALL, PM_ERR_PATTERN_EXPRESSION_AFTER_PIN, (uint16_t) (depth + 1));
1683416834
parser->pattern_matching_newlines = previous_pattern_matching_newlines;
1683516835

1683616836
accept1(parser, PM_TOKEN_NEWLINE);

0 commit comments

Comments
 (0)