From 1032e9eecc579cf3462b94ded98b40cdcb385a59 Mon Sep 17 00:00:00 2001 From: Yukihiro Matsumoto Date: Thu, 3 May 2012 10:35:31 +0900 Subject: allow spaces between lambda arrow and parenthesis. [ruby-dev:45605][Feature #6390] --- src/parse.y | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/parse.y') 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))) { -- cgit v1.2.3