From f29ceae5cf852c1c5da0d7cb9510c8f0eaa8de0b Mon Sep 17 00:00:00 2001 From: Kevin Newton Date: Wed, 2 Oct 2024 14:28:01 -0400 Subject: [PATCH] Fix up binding power for singleton method receiver --- src/prism.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/prism.c b/src/prism.c index b53c298a59..55f402a63c 100644 --- a/src/prism.c +++ b/src/prism.c @@ -19219,7 +19219,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);