summaryrefslogtreecommitdiffstats
path: root/tests/snippets/qbasic
diff options
context:
space:
mode:
Diffstat (limited to 'tests/snippets/qbasic')
-rw-r--r--tests/snippets/qbasic/test_keywords_with_dollar.txt22
1 files changed, 22 insertions, 0 deletions
diff --git a/tests/snippets/qbasic/test_keywords_with_dollar.txt b/tests/snippets/qbasic/test_keywords_with_dollar.txt
new file mode 100644
index 0000000..21c4fba
--- /dev/null
+++ b/tests/snippets/qbasic/test_keywords_with_dollar.txt
@@ -0,0 +1,22 @@
+---input---
+DIM x
+x = RIGHT$("abc", 1)
+
+---tokens---
+'DIM' Keyword.Declaration
+' ' Text.Whitespace
+'x' Name.Variable.Global
+'\n' Text
+
+'x' Name.Variable.Global
+' ' Text.Whitespace
+'=' Operator
+' ' Text.Whitespace
+'RIGHT$' Keyword.Reserved
+'(' Punctuation
+'"abc"' Literal.String.Double
+',' Punctuation
+' ' Text.Whitespace
+'1' Literal.Number.Integer.Long
+')' Punctuation
+'\n' Text