Skip to content

Commit

Permalink
Fixes #5210. Haml on JRuby 9.2.0.0 throws error evaluating interpolat…
Browse files Browse the repository at this point in the history
…ed element attribute with `#`

Seemingly innocuous else which did seem reasonable but apparently the pushback
of '#' was needed so parseStringIntoBuffer would see the '#' a second time to
know that we should not read in the second '#...'.
  • Loading branch information
enebo committed Jun 12, 2018
1 parent 6e5c306 commit 84dcb31
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/src/main/java/org/jruby/ext/ripper/StringTerm.java
Expand Up @@ -161,9 +161,9 @@ public int parseString(RipperLexer lexer, LexerSource src) throws IOException {
} else {
buffer.append(c);
}
} else {
lexer.pushback(c);
}
lexer.pushback(c);

Encoding enc[] = new Encoding[1];
enc[0] = lexer.getEncoding();

Expand Down

0 comments on commit 84dcb31

Please sign in to comment.