From: ujihisa@... Date: 2019-04-13T05:19:46+00:00 Subject: [ruby-core:92269] [Ruby trunk Bug#15670] Ripper treats :"sym" as xstring Issue #15670 has been updated by ujihisa (Tatsuhiro Ujihisa). This change broke a library preval https://github.com/kddeisz/preval/issues/1, and potentially also breaks other libraries that uses Ripper. Since this is an incompatible change for Ripper.sexp, I guess backport requires a loud changelog note for developers who use ripper. ---------------------------------------- Bug #15670: Ripper treats :"sym" as xstring https://bugs.ruby-lang.org/issues/15670#change-77602 * Author: ktsj (Kazuki Tsujimoto) * Status: Closed * Priority: Normal * Assignee: * Target version: * ruby -v: ruby 2.7.0dev (2019-03-15 master 67269) [x86_64-linux] * Backport: 2.4: UNKNOWN, 2.5: REQUIRED, 2.6: DONE ---------------------------------------- Ripper��� `:"sym"` ���������������������xstring������������������������������������������������������ `{"sym": ...}` ������������string������������������������������������������������ ~~~ $ ruby -rripper -e '_, (_, _, s) = Ripper.sexp_raw(%q{:"sym"}); p s' [:dyna_symbol, [:xstring_add, [:xstring_new], [:@tstring_content, "sym", [1, 2]]]] $ ruby -rripper -e '_, (_, _, (_, (_, ((_, s))))) = Ripper.sexp_raw(%q{{"sym": 0}}); p s' [:dyna_symbol, [:string_add, [:string_content], [:@tstring_content, "sym", [1, 2]]]] ~~~ ������������������������������������������������������������������������������������������������������������������������������������������������������ -- https://bugs.ruby-lang.org/ Unsubscribe: