Project

General

Profile

Actions

Bug #20986

closed

Bug in Prism parser with `?\C`

Added by tenderlovemaking (Aaron Patterson) 7 days ago. Updated 7 days ago.

Status:
Closed
Assignee:
Target version:
-
[ruby-core:120423]

Description

Prism output is this:

$ ./miniruby -e 'p ?\C-\]'
"]"

Parse.y output is this:

$ ./miniruby --parser=parse.y -e 'p ?\C-\]'
"\u001D"

Updated by zenspider (Ryan Davis) 7 days ago

Caught via ruby_parser's lexer tests

Actions #3

Updated by kddnewton (Kevin Newton) 7 days ago

  • Status changed from Open to Closed

Applied in changeset git|4d8c9c131021316b854c4c8b877110d5584069d3.


[ruby/prism] Handle escaped characters after controls

Fixes [Bug #20986]

https://github.com/ruby/prism/commit/fd0c563e9e

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0