From a4a60195502add094fb52a587411bbd0c19facce Mon Sep 17 00:00:00 2001 From: tomoya ishida Date: Sat, 29 Mar 2025 20:46:43 +0900 Subject: [Bug #21202] Fix wrong token concat while tokenizing nested unterminated heredoc (#13000) --- test/ripper/test_lexer.rb | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) (limited to 'test') diff --git a/test/ripper/test_lexer.rb b/test/ripper/test_lexer.rb index a371e8c42d..7a2c22ff2d 100644 --- a/test/ripper/test_lexer.rb +++ b/test/ripper/test_lexer.rb @@ -344,6 +344,47 @@ world" ] assert_lexer(expected, code) + + code = <<~'HEREDOC' + <