fix <~
authorcassowarii <cassowary@cassowary.me>
Fri, 10 Jul 2026 18:53:20 +0000 (11:53 -0700)
committercassowarii <cassowary@cassowary.me>
Fri, 10 Jul 2026 18:53:20 +0000 (11:53 -0700)
src/parse/parser.c

index b255e5a..79898aa 100644 (file)
@@ -625,6 +625,7 @@ static sbAst parse_expr(hParser pr, u8 min_precedence) {
     } else if (op.type == T_BACKSQUIGARROW) {
       /* a <~ b, c, d can have multiple comma things on the right side */
       if (!expect(pr, T_LPAREN)) return syntax_error(pr);
+      ast_type = AST_NODE_METHODCALL;
       rhs = parse_comma_exprs(pr, NULL);
       if (!expect(pr, T_RPAREN)) return syntax_error(pr);
     } else if (op.type == T_PAAMAYIM_NEKUDOTAYIM) {