Issue #11748 has been updated by Tomoyuki Chikanaga.

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.

----------------------------------------
Bug #11748: [BACKPORT] ripper misses on_tstring_content callback result
https://bugs.ruby-lang.org/issues/11748#change-55191

* Author: Nobuyoshi Nakada
* Status: Closed
* Priority: Normal
* Assignee: 
* ruby -v: 
* Backport: 2.0.0: DONTNEED, 2.1: DONTNEED, 2.2: DONE
----------------------------------------
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のバックポートをお願いします。



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