Issue #15673 has been updated by kddeisz (Kevin Deisz).

File ripper.patch added

I think I found it. I've attached a patch file. Please forgive me if I'm doing this wrong, this is my first contribution.

----------------------------------------
Bug #15673: Number args + Ripper
https://bugs.ruby-lang.org/issues/15673#change-77142

* Author: kddeisz (Kevin Deisz)
* Status: Open
* Priority: Normal
* Assignee: 
* Target version: 
* ruby -v: ruby 2.7.0dev (2019-03-18 trunk 67295) [x86_64-darwin18]
* Backport: 2.4: UNKNOWN, 2.5: UNKNOWN, 2.6: UNKNOWN
----------------------------------------
Hi there -

Love the new number args for blocks. When I run

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

everything works. However, when I run:

```ruby
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)


-- 
https://bugs.ruby-lang.org/

Unsubscribe: <mailto:ruby-core-request / ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>