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
Closed

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

wants to merge 1 commit into from

Conversation

@Sinjo
Copy link
Contributor

@Sinjo 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

@BanzaiMan
Copy link
Member

@BanzaiMan BanzaiMan commented Oct 8, 2013

See rubyspec/rubyspec#251.

@ghost ghost assigned BanzaiMan Oct 8, 2013
@BanzaiMan
Copy link
Member

@BanzaiMan BanzaiMan 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
Labels
None yet
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

2 participants