[ruby/prism] Fix up binding power for singleton method receiver

https://github.com/ruby/prism/commit/f29ceae5cf
This commit is contained in:
Kevin Newton 2024-10-02 14:28:01 -04:00 коммит произвёл git
Родитель 253b76ec0a
Коммит 77056674a0
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -19218,7 +19218,7 @@ parse_expression_prefix(pm_parser_t *parser, pm_binding_power_t binding_power, b
parser_lex(parser);
pm_token_t lparen = parser->previous;
pm_node_t *expression = parse_value_expression(parser, PM_BINDING_POWER_STATEMENT, true, false, PM_ERR_DEF_RECEIVER, (uint16_t) (depth + 1));
pm_node_t *expression = parse_value_expression(parser, PM_BINDING_POWER_COMPOSITION, true, false, PM_ERR_DEF_RECEIVER, (uint16_t) (depth + 1));
accept1(parser, PM_TOKEN_NEWLINE);
expect1(parser, PM_TOKEN_PARENTHESIS_RIGHT, PM_ERR_EXPECT_RPAREN);