From: "Earlopain (Earlopain _) via ruby-core" Date: 2025-12-04T11:45:05+00:00 Subject: [ruby-core:124027] [Ruby Bug#21758] Prism fails to parse heredoc within %Q literal split by another heredoc Issue #21758 has been updated by Earlopain (Earlopain _). https://github.com/ruby/prism/pull/3780 ---------------------------------------- Bug #21758: Prism fails to parse heredoc within %Q literal split by another heredoc https://bugs.ruby-lang.org/issues/21758#change-115458 * Author: tompng (tomoya ishida) * Status: Open * Assignee: prism * 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)("<