From cdbc70d088c909fb5b554a8f764f09ebc3720634 Mon Sep 17 00:00:00 2001 From: HParker Date: Tue, 22 Aug 2023 10:53:39 -0700 Subject: [PATCH] [ruby/yarp] Match EOF after newline behavior in Ripper EOL after whitespace is returned as a on_nl node with the whitespace as the content k0kubun: This is a resync of 9aca3528aa1a1545468a508b02b77bc922bb7321. git.ruby-lang.org had an old git version and the diff was wrong. It now has a newer git, so this should succeed next time. https://github.com/ruby/yarp/commit/be16d1deed --- test/yarp/fixtures/indented_file_end.txt | 4 ++++ test/{ => yarp}/snapshots/indented_file_end.txt | 0 2 files changed, 4 insertions(+) create mode 100644 test/yarp/fixtures/indented_file_end.txt rename test/{ => yarp}/snapshots/indented_file_end.txt (100%) diff --git a/test/yarp/fixtures/indented_file_end.txt b/test/yarp/fixtures/indented_file_end.txt new file mode 100644 index 0000000000..5a96dcacf7 --- /dev/null +++ b/test/yarp/fixtures/indented_file_end.txt @@ -0,0 +1,4 @@ + def hi + + end # hi there + \ No newline at end of file diff --git a/test/snapshots/indented_file_end.txt b/test/yarp/snapshots/indented_file_end.txt similarity index 100% rename from test/snapshots/indented_file_end.txt rename to test/yarp/snapshots/indented_file_end.txt