From: "tompng (tomoya ishida) via ruby-core" Date: 2025-12-02T17:08:54+00:00 Subject: [ruby-core:123983] [Ruby Bug#21758] Prism fails to parse heredoc within %Q literal split by another heredoc Issue #21758 has been reported by tompng (tomoya ishida). ---------------------------------------- Bug #21758: Prism fails to parse heredoc within %Q literal split by another heredoc https://bugs.ruby-lang.org/issues/21758 * Author: tompng (tomoya ishida) * Status: Open * ruby -v: ruby 4.0.0dev (2025-12-02T16:20:43Z master c06c2203ed) +PRISM [x86_64-linux] * Backport: 3.2: UNKNOWN, 3.3: UNKNOWN, 3.4: UNKNOWN ---------------------------------------- Prism fails to parse this code ~~~ruby < 4 | B | ^ unexpected constant, expecting end-of-input ~~~ `B` at line 4 appears twice in lex result: ~~~ruby Prism.lex('< [[HEREDOC_START(1,0)-(1,3)("<