Skip to content

Commit

Permalink
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions core/src/main/java/org/jruby/lexer/yacc/RubyLexer.java
Original file line number Diff line number Diff line change
@@ -2199,8 +2199,9 @@ private int parseNumber(int c) throws IOException {
break;
case 'e' :
case 'E' :
if (nondigit != '\0') {
compile_error(PID.TRAILING_UNDERSCORE_IN_NUMBER, "Trailing '_' in number.");
if (nondigit != 0) {
pushback(c);
return getNumberToken(numberBuffer.toString(), seen_e, seen_point, nondigit);
} else if (seen_e) {
pushback(c);
return getNumberToken(numberBuffer.toString(), seen_e, seen_point, nondigit);

0 comments on commit fb42762

Please sign in to comment.