Skip to content

Commit

Permalink
Fix one regression (caused massive duplication in reported elements -…
Browse files Browse the repository at this point in the history
…- which

seemed to just break yard but not mri tests) from last fix.  Still one more
regression to go.
enebo committed Dec 6, 2017
1 parent 0ecc2c3 commit 2eafcdb
Showing 2 changed files with 4 additions and 2 deletions.
5 changes: 3 additions & 2 deletions core/src/main/java/org/jruby/ext/ripper/RipperParser.java
Original file line number Diff line number Diff line change
@@ -3779,6 +3779,7 @@ public Object yyparse (RipperLexer yyLex) throws java.io.IOException {
};
states[447] = new RipperParserState() {
@Override public Object execute(RipperParser p, Object yyVal, Object[] yyVals, int yyTop) {
yyVal = null;
return yyVal;
}
};
@@ -4798,6 +4799,6 @@ public Object yyparse (RipperLexer yyLex) throws java.io.IOException {
}
};
}
// line 2154 "RipperParser.y"
// line 2155 "RipperParser.y"
}
// line 9485 "-"
// line 9486 "-"
1 change: 1 addition & 0 deletions core/src/main/java/org/jruby/ext/ripper/RipperParser.y
Original file line number Diff line number Diff line change
@@ -1501,6 +1501,7 @@ opt_rescue : kRESCUE exc_list exc_var then compstmt opt_rescue {
$$ = p.dispatch("on_rescue", $2, $3, $5, $6);
}
| {
$$ = null;
}

exc_list : arg_value {

0 comments on commit 2eafcdb

Please sign in to comment.