lib/ruby_parser.yy in ruby_parser-3.11.0 vs lib/ruby_parser.yy in ruby_parser-3.12.0
- old
+ new
@@ -1658,10 +1658,14 @@
}
opt_block_param
{
result = nil # self.env.dynamic.keys
}
+#if V >= 25
+ bodystmt kEND
+#else
compstmt kEND
+#endif
{
_, line, args, _, body, _ = val
result = new_iter nil, args, body
result.line = line