Skip to content

Allow whitespace between -> and () in lambdas in 2.0 #1044

wants to merge 1 commit into from

2 participants

Sinjo commented Sep 29, 2013

In Ruby 2.0, you can have a space between -> and () in lambdas (this was not allowed in 1.9 and earlier). This patch modifies the lexer to allow this in --2.0 mode.

I've added specs to RubySpec to test this in rubyspec/rubyspec#251

JRuby Team member

See rubyspec/rubyspec#251.

@BanzaiMan BanzaiMan was assigned Oct 8, 2013
JRuby Team member

See c0aacb4 and 5f4aa16

@BanzaiMan BanzaiMan closed this Oct 8, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.