Project

General

Profile

Actions

Backport #8375

closed

Lexer error when specific character sequence occurs in string literals

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

Status:
Closed
[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]

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0