Project

General

Profile

Actions

Backport #5753

closed

[Ripper] on_magic_comment doesn't pass proper value

Added by nobu (Nobuyoshi Nakada) over 12 years ago. Updated about 11 years ago.

Status:
Closed
[ruby-dev:44984]

Description

=begin
$ ruby -v -rripper -e 'r = Ripper.new("# -- foo: bar --"); def r.on_magic_comment(*x);p x;end;r.parse'
["foo", false]

Should be ((%["foo", "bar"]%)).

Affects also 1.9.
=end

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0