lib/ruby30_parser.y in ruby_parser-3.18.0 vs lib/ruby30_parser.y in ruby_parser-3.18.1
- old
+ new
@@ -1390,19 +1390,25 @@
(_, line), = val
result = s(:return).line line
}
| kYIELD tLPAREN2 call_args rparen
{
- result = new_yield val[2]
+ (_, line), _, args, _ = val
+
+ result = new_yield(args).line line
}
| kYIELD tLPAREN2 rparen
{
- result = new_yield
+ (_, line), _, _ = val
+
+ result = new_yield.line line
}
| kYIELD
{
- result = new_yield
+ (_, line), = val
+
+ result = new_yield.line line
}
| kDEFINED opt_nl tLPAREN2 expr rparen
{
(_, line), _, _, arg, _ = val
@@ -3033,9 +3039,12 @@
result = nil
}
f_opt_paren_args: f_paren_args
| none
+ {
+ result = end_args val
+ }
f_paren_args: tLPAREN2 f_args rparen
{
result = end_args val
}