summaryrefslogtreecommitdiffstats
path: root/tests/snippets/console/fake_ps2_prompt.txt
diff options
context:
space:
mode:
Diffstat (limited to 'tests/snippets/console/fake_ps2_prompt.txt')
-rw-r--r--tests/snippets/console/fake_ps2_prompt.txt14
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/snippets/console/fake_ps2_prompt.txt b/tests/snippets/console/fake_ps2_prompt.txt
new file mode 100644
index 0000000..683b36d
--- /dev/null
+++ b/tests/snippets/console/fake_ps2_prompt.txt
@@ -0,0 +1,14 @@
+# Test that missing backslash means it's no prompt.
+
+---input---
+$ echo "> not a prompt"
+> not a prompt
+
+---tokens---
+'$ ' Generic.Prompt
+'echo' Name.Builtin
+' ' Text.Whitespace
+'"> not a prompt"' Literal.String.Double
+'\n' Text.Whitespace
+
+'> not a prompt\n' Generic.Output