diff options
| author | Yukihiro Matsumoto <[email protected]> | 2012-05-03 10:35:31 +0900 |
|---|---|---|
| committer | Yukihiro Matsumoto <[email protected]> | 2012-05-03 10:35:31 +0900 |
| commit | 1032e9eecc579cf3462b94ded98b40cdcb385a59 (patch) | |
| tree | 1de37779e4efb3b93c475efa9ccc45fb358a2bf9 /src | |
| parent | 7e4c545760c78b3870361820cccd7dbc0b849c46 (diff) | |
| download | mruby-1032e9eecc579cf3462b94ded98b40cdcb385a59.tar.gz mruby-1032e9eecc579cf3462b94ded98b40cdcb385a59.zip | |
allow spaces between lambda arrow and
parenthesis. [ruby-dev:45605][Feature #6390]
Diffstat (limited to 'src')
| -rw-r--r-- | src/parse.y | 2 |
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))) { |
