Skip to content

Commit

Permalink
Allow whitespace between -> and () in lambdas in 2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Sinjo authored and BanzaiMan committed Oct 8, 2013
1 parent 57e307b commit 5f4aa16
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions core/src/main/java/org/jruby/lexer/yacc/RubyYaccLexer.java
Expand Up @@ -1833,6 +1833,10 @@ private int leftParen(boolean spaceSeen) throws IOException {
result = Tokens.tLPAREN_ARG;
}
}

if (isTwoZero && token == Tokens.tLAMBDA) {
result = Tokens.tLPAREN2;
}
}

parenNest++;
Expand Down

0 comments on commit 5f4aa16

Please sign in to comment.