summaryrefslogtreecommitdiffhomepage
path: root/src/parse.y
diff options
context:
space:
mode:
authorYukihiro Matsumoto <[email protected]>2012-05-03 10:35:31 +0900
committerYukihiro Matsumoto <[email protected]>2012-05-03 10:35:31 +0900
commit1032e9eecc579cf3462b94ded98b40cdcb385a59 (patch)
tree1de37779e4efb3b93c475efa9ccc45fb358a2bf9 /src/parse.y
parent7e4c545760c78b3870361820cccd7dbc0b849c46 (diff)
downloadmruby-1032e9eecc579cf3462b94ded98b40cdcb385a59.tar.gz
mruby-1032e9eecc579cf3462b94ded98b40cdcb385a59.zip
allow spaces between lambda arrow and
parenthesis. [ruby-dev:45605][Feature #6390]
Diffstat (limited to 'src/parse.y')
-rw-r--r--src/parse.y2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/parse.y b/src/parse.y
index 04e0a9d01..639913958 100644
--- a/src/parse.y
+++ b/src/parse.y
@@ -3819,7 +3819,7 @@ parser_yylex(parser_state *p)
return tOP_ASGN;
}
if (c == '>') {
- p->lstate = EXPR_ARG;
+ p->lstate = EXPR_ENDFN;
return tLAMBDA;
}
if (IS_BEG() || (IS_SPCARG(c) && arg_ambiguous(p))) {