summaryrefslogtreecommitdiff
path: root/tests/snippets
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2022-06-23 08:49:14 +0200
committerGeorg Brandl <georg@python.org>2022-06-23 08:49:14 +0200
commit7c8aabf30b2305b52bf00538c7d742d4d335277f (patch)
tree35335c459cb16e2ee94098eee04b4a1522d1c5be /tests/snippets
parentaf9dc424e1a0af62a7682c9496b7a23423cf2f82 (diff)
downloadpygments-git-7c8aabf30b2305b52bf00538c7d742d4d335277f.tar.gz
Matlab session: fix traceback when a line continuation ellipsis appears in the output
Fixes #2166
Diffstat (limited to 'tests/snippets')
-rw-r--r--tests/snippets/matlabsession/test_wrong_continuation.txt18
1 files changed, 18 insertions, 0 deletions
diff --git a/tests/snippets/matlabsession/test_wrong_continuation.txt b/tests/snippets/matlabsession/test_wrong_continuation.txt
new file mode 100644
index 00000000..6ea3e314
--- /dev/null
+++ b/tests/snippets/matlabsession/test_wrong_continuation.txt
@@ -0,0 +1,18 @@
+---input---
+>> foo()
+bar
+...
+baz
+
+---tokens---
+'>> ' Generic.Prompt
+'foo' Name
+'(' Punctuation
+')' Punctuation
+'\n' Text.Whitespace
+
+'bar\n' Generic.Output
+
+'...\n' Generic.Output
+
+'baz\n' Generic.Output