diff options
| author | HParker <HParker@github.com> | 2023-08-22 10:53:39 -0700 |
|---|---|---|
| committer | git <svn-admin@ruby-lang.org> | 2023-08-23 17:23:15 +0000 |
| commit | 9aca3528aa1a1545468a508b02b77bc922bb7321 (patch) | |
| tree | 34633cf611f52eec0f30bd05a79cf0c8b0b228dd /test | |
| parent | 774845284fafd231be2208576da6669383f25998 (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
https://github.com/ruby/yarp/commit/be16d1deed
Diffstat (limited to 'test')
| -rw-r--r-- | test/snapshots/indented_file_end.txt | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/test/snapshots/indented_file_end.txt b/test/snapshots/indented_file_end.txt new file mode 100644 index 0000000000..513a7ab0f5 --- /dev/null +++ b/test/snapshots/indented_file_end.txt @@ -0,0 +1,18 @@ +ProgramNode(4...23)( + [], + StatementsNode(4...23)( + [DefNode(4...23)( + (8...10), + nil, + nil, + nil, + [], + (4...7), + nil, + nil, + nil, + nil, + (20...23) + )] + ) +) |
