This issue was solved with changeset r35520.
西行寺, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
parse.y (parser_yylex): allow spaces between lambda arrow and
parenthesis. [ruby-dev:45605][Feature #6390]