From: "nagachika (Tomoyuki Chikanaga) via ruby-core" Date: 2026-05-09T06:16:53+00:00 Subject: [ruby-core:125444] [Ruby Bug#21847] Backport `syntax_suggest` 2.0.3 to supported branches Issue #21847 has been updated by nagachika (Tomoyuki Chikanaga). Backport changed from 3.2: DONTNEED, 3.3: DONE, 3.4: REQUIRED, 4.0: DONE to 3.2: DONTNEED, 3.3: DONE, 3.4: DONE, 4.0: DONE Merged for `ruby_3_4` at commit:de535e907196bbd1198dbd69523f4eef18bdd133. ---------------------------------------- Bug #21847: Backport `syntax_suggest` 2.0.3 to supported branches https://bugs.ruby-lang.org/issues/21847#change-117244 * Author: Earlopain (Earlopain _) * Status: Closed * Backport: 3.2: DONTNEED, 3.3: DONE, 3.4: DONE, 4.0: DONE ---------------------------------------- Prism contains a translation layer for ripper, which until very recently didn't emit `on_sp` tokens. This has now been implemented to improve compatibility. However right after merging some `syntax_suggest` tests started failing: https://gist.github.com/schneems/834c75345b2085bda54dab69d913bcc0. `syntax_suggest` is using the ripper translation layer and is working around the missing `on_sp` tokens. Now that they are correctly created by prism, `syntax_suggest` is not able to handle these. For prism this is just a bugfix but I do not want to break `syntax_suggest` unnecessarily. I asked @schneems and this is what he had to say about it: https://github.com/ruby/syntax_suggest/pull/243#issuecomment-3779113958 Backport PRs: * 4.0 https://github.com/ruby/ruby/pull/15922 * 3.4 https://github.com/ruby/ruby/pull/15923 * 3.3 https://github.com/ruby/ruby/pull/15924 -- https://bugs.ruby-lang.org/ ______________________________________________ ruby-core mailing list -- ruby-core@ml.ruby-lang.org To unsubscribe send an email to ruby-core-leave@ml.ruby-lang.org ruby-core info -- https://ml.ruby-lang.org/mailman3/lists/ruby-core.ml.ruby-lang.org/