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/lexer/yacc/StringTerm.java
Original file line number Diff line number Diff line change
@@ -196,7 +196,7 @@ public int parseString(RubyLexer lexer) throws IOException {
enc[0] = lexer.getEncoding();

if (parseStringIntoBuffer(lexer, buffer, enc) == EOF) {
lexer.compile_error("unterminated string meets end of file");
lexer.compile_error("unterminated " + ((flags & STR_FUNC_REGEXP) != 0 ? "regexp" : "string") + " meets end of file");
}

lexer.setValue(lexer.createStr(buffer, flags));

0 comments on commit 22f9e39

Please sign in to comment.