Prism.lex_compat("<<A+B\n\#{C").value
# => [[[1, 0], :on_heredoc_beg, "<<A", BEG], [[1, 3], :on_sp, "+B\n\#{C", BEG]]
Found in IRB's truffleruby ci failure. Actual ruby code:
https://github.com/ruby/irb/blob/342f57b2d0a39c519a53e6d5a3938f6235119c9c/test/irb/test_ruby_lex.rb#L17-L21
①+<<A-②
#{③*<<B/④
#{⑤&<<C|⑥
This failing test is not important in IRB anymore and I think it will be removed soon (in ruby/irb#1160).