Skip to content

Commit

Permalink
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/src/main/java/org/jruby/ext/ripper/RipperLexer.java
Original file line number Diff line number Diff line change
@@ -1592,7 +1592,7 @@ private int identifier(int c, boolean commandState) throws IOException {
compile_error("Invalid char `" + badChar + "' ('" + (char) c + "') in expression");
}

newtok(true);
//newtok(true); MRI does this but we don't so BOM + keyword will return goofy offset instead of logical one (yard seems to rely on this too).
int first = c;
do {
if (!tokadd_mbchar(c)) return EOF;

0 comments on commit 62fe57f

Please sign in to comment.