summaryrefslogtreecommitdiffstats
path: root/tests/snippets/julia/test_keywords.txt
blob: 10166d6742853866e7113f9e5a13025bb67c474e (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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
# Test keywords are identified

---input---
mutable struct MutableType end
struct ImmutableType end
abstract type AbstractMyType end
primitive type MyPrimitive 32 end
(abstract, mutable, type) = true, π, missing

abstract    type AbstractMyType end
primitive 	type MyPrimitive 32 end
mutable     struct MutableType end

---tokens---
'mutable'     Keyword
' '           Text.Whitespace
'struct'      Keyword
' '           Text
'MutableType' Keyword.Type
' '           Text.Whitespace
'end'         Keyword
'\n'          Text.Whitespace

'struct'      Keyword
' '           Text
'ImmutableType' Keyword.Type
' '           Text.Whitespace
'end'         Keyword
'\n'          Text.Whitespace

'abstract'    Keyword
' '           Text.Whitespace
'type'        Keyword
' '           Text
'AbstractMyType' Keyword.Type
' '           Text.Whitespace
'end'         Keyword
'\n'          Text.Whitespace

'primitive'   Keyword
' '           Text.Whitespace
'type'        Keyword
' '           Text
'MyPrimitive' Keyword.Type
' '           Text.Whitespace
'32'          Literal.Number.Integer
' '           Text.Whitespace
'end'         Keyword
'\n'          Text.Whitespace

'('           Punctuation
'abstract'    Name
','           Punctuation
' '           Text.Whitespace
'mutable'     Name
','           Punctuation
' '           Text.Whitespace
'type'        Name
')'           Punctuation
' '           Text.Whitespace
'='           Operator
' '           Text.Whitespace
'true'        Name.Builtin
','           Punctuation
' '           Text.Whitespace
'π'           Name.Builtin
','           Punctuation
' '           Text.Whitespace
'missing'     Name.Builtin
'\n'          Text.Whitespace

'\n'          Text.Whitespace

'abstract'    Keyword
'    '        Text.Whitespace
'type'        Keyword
' '           Text
'AbstractMyType' Keyword.Type
' '           Text.Whitespace
'end'         Keyword
'\n'          Text.Whitespace

'primitive'   Keyword
' \t'         Text.Whitespace
'type'        Keyword
' '           Text
'MyPrimitive' Keyword.Type
' '           Text.Whitespace
'32'          Literal.Number.Integer
' '           Text.Whitespace
'end'         Keyword
'\n'          Text.Whitespace

'mutable'     Keyword
'     '       Text.Whitespace
'struct'      Keyword
' '           Text
'MutableType' Keyword.Type
' '           Text.Whitespace
'end'         Keyword
'\n'          Text.Whitespace