Project

General

Profile

Actions

Bug #20988

closed

String literal that includes `\C-` `\M-` with `\111` wrongly parsed

Added by tompng (tomoya ishida) 6 days ago. Updated 5 days ago.

Status:
Closed
Assignee:
-
Target version:
-
ruby -v:
ruby 3.5.0dev (2024-12-27T07:27:30Z master adbbc9109e) +YJIT +MN +PRISM [arm64-darwin22]
[ruby-core:120431]

Description

Prism and parse.y parses this string literal differently.

$ ./ruby -e 'p "\C-\111 \M-\111 \M-\C-\111"'
"I I I"
$ ./ruby --parser=parse.y -e 'p "\C-\111 \M-\111 \M-\C-\111"'
"\t \xC9 \x89"
Actions #2

Updated by nobu (Nobuyoshi Nakada) 5 days ago

  • Status changed from Open to Closed

Applied in changeset git|a33c944ba8a0580322ee77b3066755f8e2c1c9b1.


[Bug #20988] [prism] Fix escaped octal character literals

Actions

Also available in: Atom PDF

Like0
Like0Like0