diff options
Diffstat (limited to 'tests/lexers/qbasic/example.txt')
| -rw-r--r-- | tests/lexers/qbasic/example.txt | 24 |
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 |
