summaryrefslogtreecommitdiff
path: root/test/prism/fixtures/heredocs_nested.txt
diff options
context:
space:
mode:
Diffstat (limited to 'test/prism/fixtures/heredocs_nested.txt')
-rw-r--r--test/prism/fixtures/heredocs_nested.txt22
1 files changed, 22 insertions, 0 deletions
diff --git a/test/prism/fixtures/heredocs_nested.txt b/test/prism/fixtures/heredocs_nested.txt
new file mode 100644
index 0000000000..0802378278
--- /dev/null
+++ b/test/prism/fixtures/heredocs_nested.txt
@@ -0,0 +1,22 @@
+<<~RUBY
+pre
+#{
+<<RUBY
+ hello
+RUBY
+}
+post
+RUBY
+
+# depth greater than PM_LEX_STACK_SIZE
+<<-A
+#{
+<<-B
+#{
+<<-C
+#{3}
+C
+}
+B
+}
+A