Issue #8375 has been updated by matz (Yukihiro Matsumoto).


I'd like to treat them as mere strings rather than errors.

Matz.

----------------------------------------
Backport #8375: Lexer error when specific character sequence occurs in string literals
https://bugs.ruby-lang.org/issues/8375#change-39223

Author: dimitri-lo2u (Dimitri Geshef)
Status: Assigned
Priority: Normal
Assignee: nagachika (Tomoyuki Chikanaga)
Category: 
Target version: 


# The next line causes lexer/parser error:
problematic_string = "#$%"

# The error message is: unterminated string meets end of file

# The bug occurs in MRI1.9.3...  ruby -v = ruby 1.9.3p374 (2013-01-15) [i386-mingw32]
# ... and in 2.0.0               ruby -v = ruby 2.0.0p0 (2013-02-24) [i386-mingw32]


-- 
http://bugs.ruby-lang.org/