diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2014-11-22 12:16:59 +0900 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2014-11-22 12:16:59 +0900 |
| commit | bce75e2746f00590a5a6c330725e12805e30fbc1 (patch) | |
| tree | 8778661bda9cefb2889ed0a4ab24c885403103fd /src/parse.y | |
| parent | b28ec1bc88d29d8e7205401a6e323f20581d642f (diff) | |
| download | mruby-bce75e2746f00590a5a6c330725e12805e30fbc1.tar.gz mruby-bce75e2746f00590a5a6c330725e12805e30fbc1.zip | |
should support recursive mlhs decomposition, e.g. (a,b),c = [1,2],3
Diffstat (limited to 'src/parse.y')
| -rw-r--r-- | src/parse.y | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/parse.y b/src/parse.y index b98a2c2e2..f8e1ff9aa 100644 --- a/src/parse.y +++ b/src/parse.y @@ -1468,7 +1468,7 @@ mlhs : mlhs_basic mlhs_inner : mlhs_basic | tLPAREN mlhs_inner rparen { - $$ = list1($2); + $$ = $2; } ; @@ -1517,7 +1517,7 @@ mlhs_basic : mlhs_list mlhs_item : mlhs_node | tLPAREN mlhs_inner rparen { - $$ = $2; + $$ = new_masgn(p, $2, NULL); } ; |
