Files
ruby/lib
5f2bc22560 [ruby/syntax_suggest] Prefer Ruby::Prism, the parser built into the
interpreter
(https://github.com/ruby/syntax_suggest/pull/266)

* Prefer Ruby::Prism, the parser built into the interpreter

Ruby 4.1 exposes the prism parser built into the interpreter as
Ruby::Prism, and the prism gem becomes a bundled gem
(https://bugs.ruby-lang.org/issues/22379).

syntax_suggest is loaded when a script fails to parse, so it should not
depend on the prism gem, which may be absent from the Gemfile under
bundler.  On Ruby 4.1+ use Ruby::Prism; on older Rubies keep requiring
the prism gem.

Every reference to Prism in syntax_suggest is lexically inside the
SyntaxSuggest module, so defining SyntaxSuggest::Prism is enough and
the call sites are untouched.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Update lib/syntax_suggest/api.rb

* Update CHANGELOG.md

* Apply suggestion from @Earlopain

---------

https://github.com/ruby/syntax_suggest/commit/e11b8842ff

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: Earlopain <14981592+Earlopain@users.noreply.github.com>
2026-10-22 08:02:58 +00:00
..
2026-10-08 03:02:55 +00:00
2026-10-19 17:30:05 -04:00
2026-10-08 02:34:50 +00:00
2026-10-11 04:27:15 +09:00
2026-10-08 02:52:34 +00:00
2025-10-31 00:14:23 +00:00
2026-10-08 13:57:02 +09:00
2026-06-02 05:17:51 +00:00
2025-12-10 07:08:05 +00:00
2026-10-20 12:32:51 +00:00
2026-10-15 08:00:21 +09:00
2026-02-12 20:35:18 +01:00
2025-12-10 06:43:06 +00:00
2024-11-12 11:53:01 +09:00
2026-06-22 01:17:19 +00:00
2026-10-08 02:40:51 +00:00
2024-12-13 00:50:02 +00:00
2026-10-08 02:32:32 +00:00
2026-10-08 03:09:36 +00:00
2026-10-08 02:29:13 +00:00
…
2025-11-10 10:03:07 +00:00