summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2013-01-16 01:42:33 -0800
committerYukihiro "Matz" Matsumoto <[email protected]>2013-01-16 01:42:33 -0800
commit4728070ec5104faf45d2a06a5b3e412c69f8a734 (patch)
treeebdf22af19f39134f34744d7d2e45894f25e2745
parentdb1d81d1325a4b32aa11b57000a5b4501626aacf (diff)
parentf0766e363202f954d91482abbee4e84d345bbbbd (diff)
downloadmruby-4728070ec5104faf45d2a06a5b3e412c69f8a734.tar.gz
mruby-4728070ec5104faf45d2a06a5b3e412c69f8a734.zip
Merge pull request #743 from iij/pr-fix-masgn
Fix disappearance of command_call in case of statement without parentheses
-rw-r--r--src/parse.y2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/parse.y b/src/parse.y
index 369634e0c..403db1cc8 100644
--- a/src/parse.y
+++ b/src/parse.y
@@ -1126,7 +1126,7 @@ stmt : keyword_alias fsym {p->lstate = EXPR_FNAME;} fsym
| command_asgn
| mlhs '=' command_call
{
- $$ = new_masgn(p, $1, list1($3));
+ $$ = new_masgn(p, $1, $3);
}
| var_lhs tOP_ASGN command_call
{