Project

General

Profile

Actions

Bug #11748

closed

[BACKPORT] ripper misses on_tstring_content callback result

Added by nobu (Nobuyoshi Nakada) over 8 years ago. Updated over 8 years ago.

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

Description

2.2以降、on_tstring_contentコールバックの戻り値が捨てられています。

$ ruby2.0 -rripper -e 'p Ripper.sexp("<<E\nx\nE")'
[:program, [[:string_literal, [:string_content, [:@tstring_content, "x\n", [2, 0]]]]]]

$ ruby2.1 -rripper -e 'p Ripper.sexp("<<E\nx\nE")'
[:program, [[:string_literal, [:string_content, [:@tstring_content, "x\n", [2, 0]]]]]]

$ ruby2.2 -rripper -e 'p Ripper.sexp("<<E\nx\nE")'
[:program, [[:string_literal, [:string_content, "x\n"]]]]

r52777のバックポートをお願いします。

Updated by nagachika (Tomoyuki Chikanaga) over 8 years ago

  • Backport changed from 2.0.0: DONTNEED, 2.1: DONTNEED, 2.2: REQUIRED to 2.0.0: DONTNEED, 2.1: DONTNEED, 2.2: DONE

Backported into ruby_2_2 branch at r52837.

Actions

Also available in: Atom PDF

Like0
Like0