mruby-compiler/parse.y: allow multiple anonymous splat in args rule

For example, this should be allowed:

```ruby
def f(*)
  p(*,*)
end
```
This commit is contained in:
Yukihiro "Matz" Matsumoto
2022-12-17 09:37:44 +09:00
parent 6d01c5b56c
commit f7a8a42521
2 changed files with 1154 additions and 1142 deletions
+4
View File
@@ -2651,6 +2651,10 @@ args : arg
void_expr_error(p, $3);
$$ = push($1, $3);
}
| args comma tSTAR
{
$$ = push($1, new_splat(p, new_lvar(p, intern_op(mul))));
}
| args comma tSTAR arg
{
$$ = push($1, new_splat(p, $4));
File diff suppressed because it is too large Load Diff