Project

General

Profile

Backport #8375

Lexer error when specific character sequence occurs in string literals

Added by dimitri-lo2u (Dimitri Geshef) over 7 years ago. Updated about 7 years ago.

Status:
Closed
Priority:
Normal
[ruby-core:54846]

Description

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]

Also available in: Atom PDF