diff options
| author | HParker <HParker@github.com> | 2023-08-22 10:53:39 -0700 |
|---|---|---|
| committer | Takashi Kokubun <takashikkbn@gmail.com> | 2023-08-23 14:16:12 -0700 |
| commit | cdbc70d088c909fb5b554a8f764f09ebc3720634 (patch) | |
| tree | 09bb8f3d788fd4b56d8243aa2a380817d96bb1c1 | |
| parent | 455297d652829c9c6f68bc4224588967f41191f7 (diff) | |
[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
| -rw-r--r-- | test/yarp/fixtures/indented_file_end.txt | 4 | ||||
| -rw-r--r-- | test/yarp/snapshots/indented_file_end.txt (renamed from test/snapshots/indented_file_end.txt) | 0 |
2 files changed, 4 insertions, 0 deletions
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 index 513a7ab0f5..513a7ab0f5 100644 --- a/test/snapshots/indented_file_end.txt +++ b/test/yarp/snapshots/indented_file_end.txt |
