Project

General

Profile

Bug #15673

Number args + Ripper

Added by kddeisz (Kevin Deisz) about 1 year ago. Updated about 1 year ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Target version:
-
ruby -v:
ruby 2.7.0dev (2019-03-18 trunk 67295) [x86_64-darwin18]
[ruby-core:91867]

Description

Hi there -

Love the new number args for blocks. When I run

[1, 2, 3].map { @1 * 2 }

everything works. However, when I run:

require 'ripper'; Ripper.new('[1, 2, 3].map { @1 * 2 }').parse

it returns nothing and says there's an error.


Files

ripper.patch (824 Bytes) ripper.patch kddeisz (Kevin Deisz), 03/18/2019 07:33 PM

Also available in: Atom PDF