summaryrefslogtreecommitdiffstats
path: root/tests/snippets/crystal/test_pseudo_keywords.txt
blob: 18827ad058fe93036c4a98df9d4a74732a4dff67 (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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
---input---
def f(x : T, line = __LINE__) forall T
if x.is_a?(String)
pp! x
end
end

---tokens---
'def'         Keyword
' '           Text.Whitespace
'f'           Name.Function
'('           Punctuation
'x'           Name
' '           Text.Whitespace
':'           Punctuation
' '           Text.Whitespace
'T'           Name
','           Punctuation
' '           Text.Whitespace
'line'        Name
' '           Text.Whitespace
'='           Operator
' '           Text.Whitespace
'__LINE__'    Keyword.Pseudo
')'           Punctuation
' '           Text.Whitespace
'forall'      Keyword.Pseudo
' '           Text.Whitespace
'T'           Name
'\n'          Text.Whitespace

'if'          Keyword
' '           Text.Whitespace
'x'           Name
'.is_a?'      Keyword.Pseudo
'('           Punctuation
'String'      Name
')'           Punctuation
'\n'          Text.Whitespace

'pp!'         Name.Builtin.Pseudo
' '           Text.Whitespace
'x'           Name
'\n'          Text.Whitespace

'end'         Keyword
'\n'          Text.Whitespace

'end'         Keyword
'\n'          Text.Whitespace