Skip to content

Commit 8736c17

Browse files
committed
Add error cases for ustar appearing in infix position
1 parent 2ec671f commit 8736c17

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/yarp.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12504,6 +12504,10 @@ parse_expression_infix(yp_parser_t *parser, yp_node_t *node, yp_binding_power_t
1250412504

1250512505
return (yp_node_t *) yp_call_node_binary_create(parser, node, &token, argument);
1250612506
}
12507+
case YP_TOKEN_USTAR:
12508+
case YP_TOKEN_USTAR_STAR:
12509+
// The only times this will occur are when we are in an error state,
12510+
// but we'll put them in here so that errors can propagate.
1250712511
case YP_TOKEN_BANG_EQUAL:
1250812512
case YP_TOKEN_BANG_TILDE:
1250912513
case YP_TOKEN_EQUAL_EQUAL:

0 commit comments

Comments
 (0)