Project

General

Profile

Actions

Backport #1939

closed

Ripper doesn't handle local variables

Added by judofyr (Magnus Holm) over 15 years ago. Updated over 13 years ago.

Status:
Closed
[ruby-core:24923]

Description

=begin
Ruby handles some code different when it encounters a local variable:

 whatever /25 # /

If whatever is a local variable it would be interpreted as "whatever / 25",
if not, "whatever(/25 # /)". Since Ripper doesn't handle local variables, it
will always interpreter it as the last. This makes Ripper pretty much useless
because it can't guarantee to parse it equally to Ruby.
=end


Files

patch.diff (15.1 KB) patch.diff Patch judofyr (Magnus Holm), 10/01/2009 11:19 PM
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0Like0Like0Like0Like0