summaryrefslogtreecommitdiff
path: root/tests/lexers/qbasic/example.txt
blob: e5f52660f19a5fa3249510033a88f37cef6a37ed (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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