summaryrefslogtreecommitdiff
path: root/test/prism/snapshots/whitequark/slash_newline_in_heredocs.txt
diff options
context:
space:
mode:
Diffstat (limited to 'test/prism/snapshots/whitequark/slash_newline_in_heredocs.txt')
-rw-r--r--test/prism/snapshots/whitequark/slash_newline_in_heredocs.txt34
1 files changed, 34 insertions, 0 deletions
diff --git a/test/prism/snapshots/whitequark/slash_newline_in_heredocs.txt b/test/prism/snapshots/whitequark/slash_newline_in_heredocs.txt
new file mode 100644
index 0000000000..ba1fce0c68
--- /dev/null
+++ b/test/prism/snapshots/whitequark/slash_newline_in_heredocs.txt
@@ -0,0 +1,34 @@
+@ ProgramNode (location: (1,0)-(8,4))
+├── locals: []
+└── statements:
+ @ StatementsNode (location: (1,0)-(8,4))
+ └── body: (length: 2)
+ ├── @ StringNode (location: (1,0)-(1,4))
+ │ ├── flags: ∅
+ │ ├── opening_loc: (1,0)-(1,4) = "<<-E"
+ │ ├── content_loc: (2,0)-(5,0) = " 1 \\\n 2\n 3\n"
+ │ ├── closing_loc: (5,0)-(6,0) = "E\n"
+ │ └── unescaped: " 1 2\n 3\n"
+ └── @ InterpolatedStringNode (location: (8,0)-(8,4))
+ ├── flags: ∅
+ ├── opening_loc: (8,0)-(8,4) = "<<~E"
+ ├── parts: (length: 3)
+ │ ├── @ StringNode (location: (9,0)-(10,0))
+ │ │ ├── flags: frozen
+ │ │ ├── opening_loc: ∅
+ │ │ ├── content_loc: (9,0)-(10,0) = " 1 \\\n"
+ │ │ ├── closing_loc: ∅
+ │ │ └── unescaped: "1 "
+ │ ├── @ StringNode (location: (10,0)-(11,0))
+ │ │ ├── flags: frozen
+ │ │ ├── opening_loc: ∅
+ │ │ ├── content_loc: (10,0)-(11,0) = " 2\n"
+ │ │ ├── closing_loc: ∅
+ │ │ └── unescaped: "2\n"
+ │ └── @ StringNode (location: (11,0)-(12,0))
+ │ ├── flags: frozen
+ │ ├── opening_loc: ∅
+ │ ├── content_loc: (11,0)-(12,0) = " 3\n"
+ │ ├── closing_loc: ∅
+ │ └── unescaped: "3\n"
+ └── closing_loc: (12,0)-(13,0) = "E\n"