Actions
Bug #20988
closedString literal that includes `\C-` `\M-` with `\111` wrongly parsed
Status:
Closed
Assignee:
-
Target version:
-
ruby -v:
ruby 3.5.0dev (2024-12-27T07:27:30Z master adbbc9109e) +YJIT +MN +PRISM [arm64-darwin22]
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"
Updated by nobu (Nobuyoshi Nakada) 5 days ago
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
Like0
Like0Like0