mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
allow spaces between lambda arrow and
parenthesis. [ruby-dev:45605][Feature #6390]
This commit is contained in:
+1
-1
@@ -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))) {
|
||||
|
||||
Reference in New Issue
Block a user