summaryrefslogtreecommitdiffhomepage
path: root/mrbgems/mruby-compiler
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2017-09-25 20:44:50 +0900
committerYukihiro "Matz" Matsumoto <[email protected]>2017-09-25 20:44:50 +0900
commit381850280c036116adaffe42cc420da9c71d28a2 (patch)
tree2358744b778217c99e724275785491b22fb6d941 /mrbgems/mruby-compiler
parente98823f1896d875b11d0e165d0e8cf9e478a8709 (diff)
downloadmruby-381850280c036116adaffe42cc420da9c71d28a2.tar.gz
mruby-381850280c036116adaffe42cc420da9c71d28a2.zip
The `[]` special method call should be able to take a block.
Diffstat (limited to 'mrbgems/mruby-compiler')
-rw-r--r--mrbgems/mruby-compiler/core/parse.y2
1 files changed, 1 insertions, 1 deletions
diff --git a/mrbgems/mruby-compiler/core/parse.y b/mrbgems/mruby-compiler/core/parse.y
index 86b38f0c4..41fc36217 100644
--- a/mrbgems/mruby-compiler/core/parse.y
+++ b/mrbgems/mruby-compiler/core/parse.y
@@ -4991,7 +4991,7 @@ parser_yylex(parser_state *p)
if (c == ')')
p->lstate = EXPR_ENDFN;
else
- p->lstate = EXPR_ENDARG;
+ p->lstate = EXPR_END;
return c;
case ':':