Skip to content

Commit

Permalink
Fixes #4169. squiggly heredoc with single quotes fails to run
Browse files Browse the repository at this point in the history
  • Loading branch information
enebo committed Sep 22, 2016
1 parent cc619c0 commit 9bbcd84
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion core/src/main/java/org/jruby/ext/ripper/HeredocTerm.java
Expand Up @@ -155,7 +155,7 @@ public int parseString(RipperLexer lexer, LexerSource src) throws java.io.IOExce
lexer.lex_goto_eol();

if (lexer.getHeredocIndent() > 0) {
lexer.setValue(str);
lexer.setValue(lexer.createStr(str, 0));
return Tokens.tSTRING_CONTENT;
}
// MRI null checks str in this case but it is unconditionally non-null?
Expand Down
2 changes: 1 addition & 1 deletion core/src/main/java/org/jruby/lexer/yacc/HeredocTerm.java
Expand Up @@ -138,7 +138,7 @@ public int parseString(RubyLexer lexer) throws java.io.IOException {
lexer.lex_goto_eol();

if (lexer.getHeredocIndent() > 0) {
lexer.setValue(str);
lexer.setValue(lexer.createStr(str, 0));
return Tokens.tSTRING_CONTENT;
}
// MRI null checks str in this case but it is unconditionally non-null?
Expand Down

0 comments on commit 9bbcd84

Please sign in to comment.