summaryrefslogtreecommitdiff
path: root/parse.y
diff options
context:
space:
mode:
Diffstat (limited to 'parse.y')
-rw-r--r--parse.y7
1 files changed, 5 insertions, 2 deletions
diff --git a/parse.y b/parse.y
index a819c4852c..e0bb2d8f5c 100644
--- a/parse.y
+++ b/parse.y
@@ -1518,7 +1518,8 @@ mlhs_basic : mlhs_head
/*%%%*/
$$ = NEW_MASGN($1, NEW_POSTARG(-1, $4));
/*%
- $$ = mlhs_add_star($1, Qnil);
+ $1 = mlhs_add_star($1, Qnil);
+ $$ = mlhs_add($1, $4);
%*/
}
| tSTAR mlhs_node
@@ -1534,7 +1535,8 @@ mlhs_basic : mlhs_head
/*%%%*/
$$ = NEW_MASGN(0, NEW_POSTARG($2,$4));
/*%
- $$ = mlhs_add_star(mlhs_new(), $2);
+ $2 = mlhs_add_star(mlhs_new(), $2);
+ $$ = mlhs_add($2, $4);
%*/
}
| tSTAR
@@ -1551,6 +1553,7 @@ mlhs_basic : mlhs_head
$$ = NEW_MASGN(0, NEW_POSTARG(-1, $3));
/*%
$$ = mlhs_add_star(mlhs_new(), Qnil);
+ $$ = mlhs_add($$, $3);
%*/
}
;