Skip to content

Commit 84dcb31

Browse files
committedJun 12, 2018
Fixes #5210. Haml on JRuby 9.2.0.0 throws error evaluating interpolated 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 '#...'.
1 parent 6e5c306 commit 84dcb31

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎core/src/main/java/org/jruby/ext/ripper/StringTerm.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -161,9 +161,9 @@ public int parseString(RipperLexer lexer, LexerSource src) throws IOException {
161161
} else {
162162
buffer.append(c);
163163
}
164-
} else {
165-
lexer.pushback(c);
166164
}
165+
lexer.pushback(c);
166+
167167
Encoding enc[] = new Encoding[1];
168168
enc[0] = lexer.getEncoding();
169169

0 commit comments

Comments
 (0)
Please sign in to comment.