-
Notifications
You must be signed in to change notification settings - Fork 5.3k
/
tokens_erlang.json
196 lines (196 loc) · 7.57 KB
/
tokens_erlang.json
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
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
[[
"start",
["text"," "],
["punctuation.definition.comment.erlang","%% A process whose only job is to keep a counter."]
],[
"start",
["text"," "],
["punctuation.definition.comment.erlang","%% First version"]
],[
"start",
["meta.directive.module.erlang"," "],
["punctuation.section.directive.begin.erlang","-"],
["keyword.control.directive.module.erlang","module"],
["punctuation.definition.parameters.begin.erlang","("],
["entity.name.type.class.module.definition.erlang","counter"],
["punctuation.definition.parameters.end.erlang",")"],
["punctuation.section.directive.end.erlang","."]
],[
"start",
["meta.directive.export.erlang"," "],
["punctuation.section.directive.begin.erlang","-"],
["keyword.control.directive.export.erlang","export"],
["punctuation.definition.parameters.begin.erlang","("],
["punctuation.definition.list.begin.erlang","["],
["entity.name.function.erlang","start"],
["punctuation.separator.function-arity.erlang","/"],
["constant.numeric.integer.decimal.erlang","0"],
["punctuation.separator.list.erlang",","],
["meta.structure.list.function.erlang"," "],
["entity.name.function.erlang","codeswitch"],
["punctuation.separator.function-arity.erlang","/"],
["constant.numeric.integer.decimal.erlang","1"],
["punctuation.definition.list.end.erlang","]"],
["punctuation.definition.parameters.end.erlang",")"],
["punctuation.section.directive.end.erlang","."]
],[
"start",
["text"," "]
],[
"start",
["meta.function.erlang"," "],
["entity.name.function.definition.erlang","start"],
["punctuation.section.expression.begin.erlang","("],
["punctuation.section.expression.end.erlang",")"],
["text"," "],
["keyword.operator.symbolic.erlang","->"],
["text"," "],
["entity.name.function.erlang","loop"],
["punctuation.definition.parameters.begin.erlang","("],
["constant.numeric.integer.decimal.erlang","0"],
["punctuation.definition.parameters.end.erlang",")"],
["punctuation.terminator.function.erlang","."]
],[
"start",
["text"," "]
],[
["text6","meta.function.erlang"],
["meta.function.erlang"," "],
["entity.name.function.definition.erlang","loop"],
["punctuation.section.expression.begin.erlang","("],
["variable.other.erlang","Sum"],
["punctuation.section.expression.end.erlang",")"],
["text"," "],
["keyword.operator.symbolic.erlang","->"]
],[
["keyword.control.receive.erlang","text6","text6","meta.function.erlang"],
["text"," "],
["keyword.control.receive.erlang","receive"]
],[
["keyword.control.receive.erlang","text6","text6","meta.function.erlang"],
["meta.expression.receive.erlang"," "],
["punctuation.definition.tuple.begin.erlang","{"],
["constant.other.symbol.unquoted.erlang","increment"],
["punctuation.separator.tuple.erlang",","],
["meta.structure.tuple.erlang"," "],
["variable.other.erlang","Count"],
["punctuation.definition.tuple.end.erlang","}"],
["meta.expression.receive.erlang"," "],
["punctuation.separator.clause-head-body.erlang","->"]
],[
["keyword.control.receive.erlang","text6","text6","meta.function.erlang"],
["meta.expression.receive.erlang"," "],
["entity.name.function.erlang","loop"],
["punctuation.definition.parameters.begin.erlang","("],
["variable.other.erlang","Sum"],
["keyword.operator.symbolic.erlang","+"],
["variable.other.erlang","Count"],
["punctuation.definition.parameters.end.erlang",")"],
["punctuation.separator.clauses.erlang",";"]
],[
["keyword.control.receive.erlang","text6","text6","meta.function.erlang"],
["meta.expression.receive.erlang"," "],
["punctuation.definition.tuple.begin.erlang","{"],
["constant.other.symbol.unquoted.erlang","counter"],
["punctuation.separator.tuple.erlang",","],
["meta.structure.tuple.erlang"," "],
["variable.other.erlang","Pid"],
["punctuation.definition.tuple.end.erlang","}"],
["meta.expression.receive.erlang"," "],
["punctuation.separator.clause-head-body.erlang","->"]
],[
["keyword.control.receive.erlang","text6","text6","meta.function.erlang"],
["meta.expression.receive.erlang"," "],
["variable.other.erlang","Pid"],
["meta.expression.receive.erlang"," "],
["keyword.operator.symbolic.erlang","!"],
["meta.expression.receive.erlang"," "],
["punctuation.definition.tuple.begin.erlang","{"],
["constant.other.symbol.unquoted.erlang","counter"],
["punctuation.separator.tuple.erlang",","],
["meta.structure.tuple.erlang"," "],
["variable.other.erlang","Sum"],
["punctuation.definition.tuple.end.erlang","}"],
["punctuation.separator.expressions.erlang",","]
],[
["keyword.control.receive.erlang","text6","text6","meta.function.erlang"],
["meta.expression.receive.erlang"," "],
["entity.name.function.erlang","loop"],
["punctuation.definition.parameters.begin.erlang","("],
["variable.other.erlang","Sum"],
["punctuation.definition.parameters.end.erlang",")"],
["punctuation.separator.clauses.erlang",";"]
],[
["keyword.control.receive.erlang","text6","text6","meta.function.erlang"],
["meta.expression.receive.erlang"," "],
["constant.other.symbol.unquoted.erlang","code_switch"],
["meta.expression.receive.erlang"," "],
["punctuation.separator.clause-head-body.erlang","->"]
],[
["keyword.control.receive.erlang","text6","text6","meta.function.erlang"],
["meta.expression.receive.erlang"," "],
["keyword.operator.macro.erlang","?"],
["entity.name.function.macro.erlang","MODULE"],
["meta.expression.receive.erlang",":"],
["entity.name.function.erlang","codeswitch"],
["punctuation.definition.parameters.begin.erlang","("],
["variable.other.erlang","Sum"],
["punctuation.definition.parameters.end.erlang",")"]
],[
["keyword.control.receive.erlang","text6","text6","meta.function.erlang"],
["meta.expression.receive.erlang"," "],
["punctuation.definition.comment.erlang","% Force the use of 'codeswitch/1' from the latest MODULE version"]
],[
"start",
["meta.expression.receive.erlang"," "],
["keyword.control.end.erlang","end"],
["punctuation.terminator.function.erlang","."]
],[
"start",
["text"," "]
],[
"start",
["meta.function.erlang"," "],
["entity.name.function.definition.erlang","codeswitch"],
["punctuation.section.expression.begin.erlang","("],
["variable.other.erlang","Sum"],
["punctuation.section.expression.end.erlang",")"],
["text"," "],
["keyword.operator.symbolic.erlang","->"],
["text"," "],
["entity.name.function.erlang","loop"],
["punctuation.definition.parameters.begin.erlang","("],
["variable.other.erlang","Sum"],
["punctuation.definition.parameters.end.erlang",")"],
["punctuation.terminator.function.erlang","."]
],[
"start",
["text"," "]
],[
"start",
["text"," "],
["punctuation.definition.comment.erlang","% Print the data using the pretty print specifier"]
],[
"start",
["text"," "],
["entity.name.type.class.module.erlang","io"],
["punctuation.separator.module-function.erlang",":"],
["entity.name.function.erlang","format"],
["punctuation.definition.parameters.begin.erlang","("],
["punctuation.definition.string.begin.erlang","\""],
["string.quoted.double.erlang","Here is the data: "],
["punctuation.definition.erlang","~"],
["constant.other.erlang","p"],
["punctuation.definition.erlang","~"],
["constant.other.erlang","n"],
["punctuation.definition.string.end.erlang","\""],
["punctuation.separator.parameters.erlang",","],
["text"," "],
["punctuation.definition.list.begin.erlang","["],
["variable.other.erlang","Data"],
["punctuation.definition.list.end.erlang","]"],
["punctuation.definition.parameters.end.erlang",")"],
["text","."]
],[
"start"
]]