Skip to content

Commit

Permalink
Fixes #4787 Ripper fails to lexical analyse around escaped newline on…
Browse files Browse the repository at this point in the history
… JRuby.

Missing a dispatch token (tSP) when we see \\ and then \n.
enebo committed Oct 30, 2017
1 parent d2c3370 commit 3b6f308
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions core/src/main/java/org/jruby/ext/ripper/RipperLexer.java
Original file line number Diff line number Diff line change
@@ -1164,6 +1164,7 @@ private int yylex() throws IOException {
c = nextc();
if (c == '\n') {
spaceSeen = true;
dispatchScanEvent(Tokens.tSP);
continue;
}
pushback(c);

0 comments on commit 3b6f308

Please sign in to comment.