Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
wants to merge 1 commit into from

Conversation

Projects
None yet
2 participants
@Sinjo
Copy link
Contributor

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

@BanzaiMan

This comment has been minimized.

Copy link
Member

commented Oct 8, 2013

See rubyspec/rubyspec#251.

@ghost ghost assigned BanzaiMan Oct 8, 2013

@BanzaiMan

This comment has been minimized.

Copy link
Member

commented Oct 8, 2013

See c0aacb4 and 5f4aa16

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.