Skip to content

Commit a28e57c

Browse files
committed
Do not add error for forwarding in CRuby 3.3.0
1 parent cac2261 commit a28e57c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/prism.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12178,7 +12178,9 @@ parse_arguments_list(pm_parser_t *parser, pm_arguments_t *arguments, bool accept
1217812178
arguments->block = (pm_node_t *) block;
1217912179
} else {
1218012180
if (arguments->has_forwarding) {
12181-
pm_parser_err_node(parser, (pm_node_t *) block, PM_ERR_ARGUMENT_BLOCK_FORWARDING);
12181+
if (parser->version != PM_OPTIONS_VERSION_CRUBY_3_3_0) {
12182+
pm_parser_err_node(parser, (pm_node_t *) block, PM_ERR_ARGUMENT_BLOCK_FORWARDING);
12183+
}
1218212184
} else {
1218312185
pm_parser_err_node(parser, (pm_node_t *) block, PM_ERR_ARGUMENT_BLOCK_MULTI);
1218412186
}

0 commit comments

Comments
 (0)