summaryrefslogtreecommitdiff
path: root/tests/lexers/qbasic
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2021-01-18 21:24:00 +0100
committerGeorg Brandl <georg@python.org>2021-01-18 22:08:36 +0100
commit2a3d3a7d5b9c60dedf6638d876161d9563faebcf (patch)
tree809c0b4a686db98f5954afa1944404cd9652c6b2 /tests/lexers/qbasic
parentf0445be718da83541ea3401aad882f3937147263 (diff)
downloadpygments-git-examplefiles.tar.gz
Move test_examplefiles to new tests/lexers scheme.examplefiles
Diffstat (limited to 'tests/lexers/qbasic')
-rw-r--r--tests/lexers/qbasic/example.txt24
1 files changed, 24 insertions, 0 deletions
diff --git a/tests/lexers/qbasic/example.txt b/tests/lexers/qbasic/example.txt
new file mode 100644
index 00000000..e5f52660
--- /dev/null
+++ b/tests/lexers/qbasic/example.txt
@@ -0,0 +1,24 @@
+---input---
+10 print RIGHT$("hi there", 5)
+20 goto 10
+
+---tokens---
+'10' Name.Label
+' ' Text.Whitespace
+'print' Name.Variable.Global
+' ' Text.Whitespace
+'RIGHT$' Keyword.Reserved
+'(' Punctuation
+'"hi there"' Literal.String.Double
+',' Punctuation
+' ' Text.Whitespace
+'5' Literal.Number.Integer.Long
+')' Punctuation
+'\n' Text
+
+'20' Name.Label
+' ' Text.Whitespace
+'goto' Name.Variable.Global
+' ' Text.Whitespace
+'10' Literal.Number.Integer.Long
+'\n' Text