Permalink
Browse files

allow spaces between lambda arrow and

  parenthesis.  [ruby-dev:45605][Feature #6390]
  • Loading branch information...
1 parent 7e4c545 commit 1032e9eecc579cf3462b94ded98b40cdcb385a59 @matz matz committed May 3, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/parse.y
View
@@ -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))) {

0 comments on commit 1032e9e

Please sign in to comment.