From ac8a16237c727ae2a1446ef6dc810d0e750971fb Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Fri, 7 Apr 2023 23:13:56 +0900 Subject: [Bug #19563] Yield words separators per lines So that newlines across a here-doc terminator will be separated tokens. Cf. https://github.com/ruby/irb/pull/558 --- test/ripper/test_scanner_events.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test') diff --git a/test/ripper/test_scanner_events.rb b/test/ripper/test_scanner_events.rb index da3dbfb66c..5d6ac615ca 100644 --- a/test/ripper/test_scanner_events.rb +++ b/test/ripper/test_scanner_events.rb @@ -712,7 +712,7 @@ class TestRipper::ScannerEvents < Test::Unit::TestCase scan('words_sep', '%w( w w w )') assert_equal [' ', "\n", ' ', ' '], scan('words_sep', "%w( w\nw w )") - assert_equal ["\n\n", "\n ", ' ', ' '], + assert_equal ["\n", "\n", "\n", ' ', ' ', ' '], scan('words_sep', "%w(\n\nw\n w w )") end -- cgit v1.2.1