Skip to content

Commit

Permalink
Showing 3 changed files with 4,308 additions and 4,439 deletions.
1,103 changes: 556 additions & 547 deletions core/src/main/java/org/jruby/ext/ripper/RipperParser.java

Large diffs are not rendered by default.

6 changes: 5 additions & 1 deletion core/src/main/java/org/jruby/ext/ripper/RipperParser.y
Original file line number Diff line number Diff line change
@@ -1393,10 +1393,14 @@ lambda : /* none */ {
p.pushBlockScope();
$$ = p.getLeftParenBegin();
p.setLeftParenBegin(p.incrementParenNest());
} {
$$ = p.getCmdArgumentState().getStack();
p.getCmdArgumentState().reset();
} f_larglist lambda_body {
$$ = p.dispatch("on_lambda", $2, $3);
$$ = p.dispatch("on_lambda", $3, $4);
p.popCurrentScope();
p.setLeftParenBegin($<Integer>1);
p.getCmdArgumentState().reset($<Long>2.longValue());
}

f_larglist : tLPAREN2 f_args opt_bv_decl tRPAREN {
7,638 changes: 3,747 additions & 3,891 deletions core/src/main/java/org/jruby/ext/ripper/YyTables.java

Large diffs are not rendered by default.

0 comments on commit daf1a3c

Please sign in to comment.