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
Contributor

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

This comment has been minimized.

Show comment
Hide comment
@BanzaiMan

BanzaiMan Oct 8, 2013

Member

See rubyspec/rubyspec#251.

Member

BanzaiMan commented Oct 8, 2013

See rubyspec/rubyspec#251.

@ghost ghost assigned BanzaiMan Oct 8, 2013

@BanzaiMan

This comment has been minimized.

Show comment
Hide comment
Member

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