uv 0.0.7.2 → 0.0.7.3
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/uv/{finding_syntaxes.rb → finding_syntax_nodes.rb} +30 -21
- data/lib/uv/syntaxes.rb +51 -0
- data/lib/uv/version.rb +1 -1
- data/lib/uv.rb +19 -12
- data/syntax/build.syntax +20 -20
- data/syntax/erlang.syntax +404 -404
- data/syntax/perl.syntax +426 -430
- data/test/test_uv.rb +14 -0
- metadata +9 -9
- data/syntax/mootools.syntax +0 -572
data/syntax/erlang.syntax
CHANGED
@@ -1,744 +1,744 @@
|
|
1
|
-
---
|
1
|
+
---
|
2
2
|
name: Erlang
|
3
|
-
fileTypes:
|
3
|
+
fileTypes:
|
4
4
|
- erl
|
5
5
|
- hrl
|
6
6
|
scopeName: source.erlang
|
7
|
-
repository:
|
8
|
-
macro-usage:
|
7
|
+
repository:
|
8
|
+
macro-usage:
|
9
9
|
name: meta.macro-usage.erlang
|
10
|
-
captures:
|
11
|
-
"1":
|
10
|
+
captures:
|
11
|
+
"1":
|
12
12
|
name: keyword.operator.macro.erlang
|
13
|
-
"2":
|
13
|
+
"2":
|
14
14
|
name: entity.name.function.macro.erlang
|
15
15
|
match: (\?\??)\s*+([a-zA-Z\d@_]++)
|
16
|
-
list:
|
16
|
+
list:
|
17
17
|
name: meta.structure.list.erlang
|
18
|
-
endCaptures:
|
19
|
-
"1":
|
18
|
+
endCaptures:
|
19
|
+
"1":
|
20
20
|
name: punctuation.definition.list.end.erlang
|
21
21
|
begin: (\[)
|
22
|
-
beginCaptures:
|
23
|
-
"1":
|
22
|
+
beginCaptures:
|
23
|
+
"1":
|
24
24
|
name: punctuation.definition.list.begin.erlang
|
25
25
|
end: (\])
|
26
|
-
patterns:
|
26
|
+
patterns:
|
27
27
|
- name: punctuation.separator.list.erlang
|
28
28
|
match: \||\|\||,
|
29
29
|
- include: "#everything-else"
|
30
|
-
import-export-directive:
|
31
|
-
patterns:
|
30
|
+
import-export-directive:
|
31
|
+
patterns:
|
32
32
|
- name: meta.directive.import.erlang
|
33
|
-
endCaptures:
|
34
|
-
"1":
|
33
|
+
endCaptures:
|
34
|
+
"1":
|
35
35
|
name: punctuation.definition.parameters.end.erlang
|
36
|
-
"2":
|
36
|
+
"2":
|
37
37
|
name: punctuation.section.directive.end.erlang
|
38
38
|
begin: ^\s*+(-)\s*+(import)\s*+(\()\s*+([a-z][a-zA-Z\d@_]*+)\s*+(,)
|
39
|
-
beginCaptures:
|
40
|
-
"1":
|
39
|
+
beginCaptures:
|
40
|
+
"1":
|
41
41
|
name: punctuation.section.directive.begin.erlang
|
42
|
-
"2":
|
42
|
+
"2":
|
43
43
|
name: keyword.control.directive.import.erlang
|
44
|
-
"3":
|
44
|
+
"3":
|
45
45
|
name: punctuation.definition.parameters.begin.erlang
|
46
|
-
"4":
|
46
|
+
"4":
|
47
47
|
name: entity.name.type.class.module.erlang
|
48
|
-
"5":
|
48
|
+
"5":
|
49
49
|
name: punctuation.separator.parameters.erlang
|
50
50
|
end: (\))\s*+(\.)
|
51
|
-
patterns:
|
51
|
+
patterns:
|
52
52
|
- include: "#internal-function-list"
|
53
53
|
- name: meta.directive.export.erlang
|
54
|
-
endCaptures:
|
55
|
-
"1":
|
54
|
+
endCaptures:
|
55
|
+
"1":
|
56
56
|
name: punctuation.definition.parameters.end.erlang
|
57
|
-
"2":
|
57
|
+
"2":
|
58
58
|
name: punctuation.section.directive.end.erlang
|
59
59
|
begin: ^\s*+(-)\s*+(export)\s*+(\()
|
60
|
-
beginCaptures:
|
61
|
-
"1":
|
60
|
+
beginCaptures:
|
61
|
+
"1":
|
62
62
|
name: punctuation.section.directive.begin.erlang
|
63
|
-
"2":
|
63
|
+
"2":
|
64
64
|
name: keyword.control.directive.export.erlang
|
65
|
-
"3":
|
65
|
+
"3":
|
66
66
|
name: punctuation.definition.parameters.begin.erlang
|
67
67
|
end: (\))\s*+(\.)
|
68
|
-
patterns:
|
68
|
+
patterns:
|
69
69
|
- include: "#internal-function-list"
|
70
|
-
symbolic-operator:
|
70
|
+
symbolic-operator:
|
71
71
|
name: keyword.operator.symbolic.erlang
|
72
72
|
match: \+\+|\+|--|-|\*|/=|/|=/=|=:=|==|=<|=|<-|<|>=|>|!
|
73
|
-
number:
|
73
|
+
number:
|
74
74
|
begin: (?=\d)
|
75
75
|
end: (?!\d)
|
76
|
-
patterns:
|
76
|
+
patterns:
|
77
77
|
- name: constant.numeric.float.erlang
|
78
|
-
captures:
|
79
|
-
"1":
|
78
|
+
captures:
|
79
|
+
"1":
|
80
80
|
name: punctuation.separator.integer-float.erlang
|
81
|
-
"3":
|
81
|
+
"3":
|
82
82
|
name: punctuation.separator.float-exponent.erlang
|
83
83
|
match: \d++(\.)\d++(([eE][\+\-])?\d++)?
|
84
84
|
- name: constant.numeric.integer.binary.erlang
|
85
|
-
captures:
|
86
|
-
"1":
|
85
|
+
captures:
|
86
|
+
"1":
|
87
87
|
name: punctuation.separator.base-integer.erlang
|
88
88
|
match: 2(#)[0-1]++
|
89
89
|
- name: constant.numeric.integer.base-3.erlang
|
90
|
-
captures:
|
91
|
-
"1":
|
90
|
+
captures:
|
91
|
+
"1":
|
92
92
|
name: punctuation.separator.base-integer.erlang
|
93
93
|
match: 3(#)[0-2]++
|
94
94
|
- name: constant.numeric.integer.base-4.erlang
|
95
|
-
captures:
|
96
|
-
"1":
|
95
|
+
captures:
|
96
|
+
"1":
|
97
97
|
name: punctuation.separator.base-integer.erlang
|
98
98
|
match: 4(#)[0-3]++
|
99
99
|
- name: constant.numeric.integer.base-5.erlang
|
100
|
-
captures:
|
101
|
-
"1":
|
100
|
+
captures:
|
101
|
+
"1":
|
102
102
|
name: punctuation.separator.base-integer.erlang
|
103
103
|
match: 5(#)[0-4]++
|
104
104
|
- name: constant.numeric.integer.base-6.erlang
|
105
|
-
captures:
|
106
|
-
"1":
|
105
|
+
captures:
|
106
|
+
"1":
|
107
107
|
name: punctuation.separator.base-integer.erlang
|
108
108
|
match: 6(#)[0-5]++
|
109
109
|
- name: constant.numeric.integer.base-7.erlang
|
110
|
-
captures:
|
111
|
-
"1":
|
110
|
+
captures:
|
111
|
+
"1":
|
112
112
|
name: punctuation.separator.base-integer.erlang
|
113
113
|
match: 7(#)[0-6]++
|
114
114
|
- name: constant.numeric.integer.octal.erlang
|
115
|
-
captures:
|
116
|
-
"1":
|
115
|
+
captures:
|
116
|
+
"1":
|
117
117
|
name: punctuation.separator.base-integer.erlang
|
118
118
|
match: 8(#)[0-7]++
|
119
119
|
- name: constant.numeric.integer.base-9.erlang
|
120
|
-
captures:
|
121
|
-
"1":
|
120
|
+
captures:
|
121
|
+
"1":
|
122
122
|
name: punctuation.separator.base-integer.erlang
|
123
123
|
match: 9(#)[0-8]++
|
124
124
|
- name: constant.numeric.integer.decimal.erlang
|
125
|
-
captures:
|
126
|
-
"1":
|
125
|
+
captures:
|
126
|
+
"1":
|
127
127
|
name: punctuation.separator.base-integer.erlang
|
128
128
|
match: 10(#)\d++
|
129
129
|
- name: constant.numeric.integer.base-11.erlang
|
130
|
-
captures:
|
131
|
-
"1":
|
130
|
+
captures:
|
131
|
+
"1":
|
132
132
|
name: punctuation.separator.base-integer.erlang
|
133
133
|
match: 11(#)[\daA]++
|
134
134
|
- name: constant.numeric.integer.base-12.erlang
|
135
|
-
captures:
|
136
|
-
"1":
|
135
|
+
captures:
|
136
|
+
"1":
|
137
137
|
name: punctuation.separator.base-integer.erlang
|
138
138
|
match: 12(#)[\da-bA-B]++
|
139
139
|
- name: constant.numeric.integer.base-13.erlang
|
140
|
-
captures:
|
141
|
-
"1":
|
140
|
+
captures:
|
141
|
+
"1":
|
142
142
|
name: punctuation.separator.base-integer.erlang
|
143
143
|
match: 13(#)[\da-cA-C]++
|
144
144
|
- name: constant.numeric.integer.base-14.erlang
|
145
|
-
captures:
|
146
|
-
"1":
|
145
|
+
captures:
|
146
|
+
"1":
|
147
147
|
name: punctuation.separator.base-integer.erlang
|
148
148
|
match: 14(#)[\da-dA-D]++
|
149
149
|
- name: constant.numeric.integer.base-15.erlang
|
150
|
-
captures:
|
151
|
-
"1":
|
150
|
+
captures:
|
151
|
+
"1":
|
152
152
|
name: punctuation.separator.base-integer.erlang
|
153
153
|
match: 15(#)[\da-eA-E]++
|
154
154
|
- name: constant.numeric.integer.hexadecimal.erlang
|
155
|
-
captures:
|
156
|
-
"1":
|
155
|
+
captures:
|
156
|
+
"1":
|
157
157
|
name: punctuation.separator.base-integer.erlang
|
158
158
|
match: 16(#)\h++
|
159
159
|
- name: constant.numeric.integer.base-17.erlang
|
160
|
-
captures:
|
161
|
-
"1":
|
160
|
+
captures:
|
161
|
+
"1":
|
162
162
|
name: punctuation.separator.base-integer.erlang
|
163
163
|
match: 17(#)[\da-gA-G]++
|
164
164
|
- name: constant.numeric.integer.base-18.erlang
|
165
|
-
captures:
|
166
|
-
"1":
|
165
|
+
captures:
|
166
|
+
"1":
|
167
167
|
name: punctuation.separator.base-integer.erlang
|
168
168
|
match: 18(#)[\da-hA-H]++
|
169
169
|
- name: constant.numeric.integer.base-19.erlang
|
170
|
-
captures:
|
171
|
-
"1":
|
170
|
+
captures:
|
171
|
+
"1":
|
172
172
|
name: punctuation.separator.base-integer.erlang
|
173
173
|
match: 19(#)[\da-iA-I]++
|
174
174
|
- name: constant.numeric.integer.base-20.erlang
|
175
|
-
captures:
|
176
|
-
"1":
|
175
|
+
captures:
|
176
|
+
"1":
|
177
177
|
name: punctuation.separator.base-integer.erlang
|
178
178
|
match: 20(#)[\da-jA-J]++
|
179
179
|
- name: constant.numeric.integer.base-21.erlang
|
180
|
-
captures:
|
181
|
-
"1":
|
180
|
+
captures:
|
181
|
+
"1":
|
182
182
|
name: punctuation.separator.base-integer.erlang
|
183
183
|
match: 21(#)[\da-kA-K]++
|
184
184
|
- name: constant.numeric.integer.base-22.erlang
|
185
|
-
captures:
|
186
|
-
"1":
|
185
|
+
captures:
|
186
|
+
"1":
|
187
187
|
name: punctuation.separator.base-integer.erlang
|
188
188
|
match: 22(#)[\da-lA-L]++
|
189
189
|
- name: constant.numeric.integer.base-23.erlang
|
190
|
-
captures:
|
191
|
-
"1":
|
190
|
+
captures:
|
191
|
+
"1":
|
192
192
|
name: punctuation.separator.base-integer.erlang
|
193
193
|
match: 23(#)[\da-mA-M]++
|
194
194
|
- name: constant.numeric.integer.base-24.erlang
|
195
|
-
captures:
|
196
|
-
"1":
|
195
|
+
captures:
|
196
|
+
"1":
|
197
197
|
name: punctuation.separator.base-integer.erlang
|
198
198
|
match: 24(#)[\da-nA-N]++
|
199
199
|
- name: constant.numeric.integer.base-25.erlang
|
200
|
-
captures:
|
201
|
-
"1":
|
200
|
+
captures:
|
201
|
+
"1":
|
202
202
|
name: punctuation.separator.base-integer.erlang
|
203
203
|
match: 25(#)[\da-oA-O]++
|
204
204
|
- name: constant.numeric.integer.base-26.erlang
|
205
|
-
captures:
|
206
|
-
"1":
|
205
|
+
captures:
|
206
|
+
"1":
|
207
207
|
name: punctuation.separator.base-integer.erlang
|
208
208
|
match: 26(#)[\da-pA-P]++
|
209
209
|
- name: constant.numeric.integer.base-27.erlang
|
210
|
-
captures:
|
211
|
-
"1":
|
210
|
+
captures:
|
211
|
+
"1":
|
212
212
|
name: punctuation.separator.base-integer.erlang
|
213
213
|
match: 27(#)[\da-qA-Q]++
|
214
214
|
- name: constant.numeric.integer.base-28.erlang
|
215
|
-
captures:
|
216
|
-
"1":
|
215
|
+
captures:
|
216
|
+
"1":
|
217
217
|
name: punctuation.separator.base-integer.erlang
|
218
218
|
match: 28(#)[\da-rA-R]++
|
219
219
|
- name: constant.numeric.integer.base-29.erlang
|
220
|
-
captures:
|
221
|
-
"1":
|
220
|
+
captures:
|
221
|
+
"1":
|
222
222
|
name: punctuation.separator.base-integer.erlang
|
223
223
|
match: 29(#)[\da-sA-S]++
|
224
224
|
- name: constant.numeric.integer.base-30.erlang
|
225
|
-
captures:
|
226
|
-
"1":
|
225
|
+
captures:
|
226
|
+
"1":
|
227
227
|
name: punctuation.separator.base-integer.erlang
|
228
228
|
match: 30(#)[\da-tA-T]++
|
229
229
|
- name: constant.numeric.integer.base-31.erlang
|
230
|
-
captures:
|
231
|
-
"1":
|
230
|
+
captures:
|
231
|
+
"1":
|
232
232
|
name: punctuation.separator.base-integer.erlang
|
233
233
|
match: 31(#)[\da-uA-U]++
|
234
234
|
- name: constant.numeric.integer.base-32.erlang
|
235
|
-
captures:
|
236
|
-
"1":
|
235
|
+
captures:
|
236
|
+
"1":
|
237
237
|
name: punctuation.separator.base-integer.erlang
|
238
238
|
match: 32(#)[\da-vA-V]++
|
239
239
|
- name: constant.numeric.integer.base-33.erlang
|
240
|
-
captures:
|
241
|
-
"1":
|
240
|
+
captures:
|
241
|
+
"1":
|
242
242
|
name: punctuation.separator.base-integer.erlang
|
243
243
|
match: 33(#)[\da-wA-W]++
|
244
244
|
- name: constant.numeric.integer.base-34.erlang
|
245
|
-
captures:
|
246
|
-
"1":
|
245
|
+
captures:
|
246
|
+
"1":
|
247
247
|
name: punctuation.separator.base-integer.erlang
|
248
248
|
match: 34(#)[\da-xA-X]++
|
249
249
|
- name: constant.numeric.integer.base-35.erlang
|
250
|
-
captures:
|
251
|
-
"1":
|
250
|
+
captures:
|
251
|
+
"1":
|
252
252
|
name: punctuation.separator.base-integer.erlang
|
253
253
|
match: 35(#)[\da-yA-Y]++
|
254
254
|
- name: constant.numeric.integer.base-36.erlang
|
255
|
-
captures:
|
256
|
-
"1":
|
255
|
+
captures:
|
256
|
+
"1":
|
257
257
|
name: punctuation.separator.base-integer.erlang
|
258
258
|
match: 36(#)[\da-zA-Z]++
|
259
259
|
- name: invalid.illegal.integer.erlang
|
260
260
|
match: \d++#[\da-zA-Z]++
|
261
261
|
- name: constant.numeric.integer.decimal.erlang
|
262
262
|
match: \d++
|
263
|
-
internal-type-specifiers:
|
263
|
+
internal-type-specifiers:
|
264
264
|
begin: (/)
|
265
|
-
beginCaptures:
|
266
|
-
"1":
|
265
|
+
beginCaptures:
|
266
|
+
"1":
|
267
267
|
name: punctuation.separator.value-type.erlang
|
268
268
|
end: (?=,|:|>>)
|
269
|
-
patterns:
|
270
|
-
- captures:
|
271
|
-
"1":
|
269
|
+
patterns:
|
270
|
+
- captures:
|
271
|
+
"1":
|
272
272
|
name: storage.type.erlang
|
273
|
-
"2":
|
273
|
+
"2":
|
274
274
|
name: storage.modifier.signedness.erlang
|
275
|
-
"3":
|
275
|
+
"3":
|
276
276
|
name: storage.modifier.endianness.erlang
|
277
|
-
"4":
|
277
|
+
"4":
|
278
278
|
name: storage.modifier.unit.erlang
|
279
|
-
"5":
|
279
|
+
"5":
|
280
280
|
name: punctuation.separator.type-specifiers.erlang
|
281
281
|
match: (integer|float|binary)|(signed|unsigned)|(big|little|native)|(unit)|(-)
|
282
|
-
character:
|
283
|
-
patterns:
|
282
|
+
character:
|
283
|
+
patterns:
|
284
284
|
- name: constant.character.erlang
|
285
|
-
captures:
|
286
|
-
"1":
|
285
|
+
captures:
|
286
|
+
"1":
|
287
287
|
name: punctuation.definition.character.erlang
|
288
|
-
"2":
|
288
|
+
"2":
|
289
289
|
name: constant.character.escape.erlang
|
290
|
-
"3":
|
290
|
+
"3":
|
291
291
|
name: punctuation.definition.escape.erlang
|
292
|
-
"5":
|
292
|
+
"5":
|
293
293
|
name: punctuation.definition.escape.erlang
|
294
294
|
match: (\$)((\\)([bdefnrstv\\'"]|(\^)[@-_]|[0-7]{1,3}))
|
295
295
|
- name: invalid.illegal.character.erlang
|
296
296
|
match: \$\\\^?.?
|
297
297
|
- name: constant.character.erlang
|
298
|
-
captures:
|
299
|
-
"1":
|
298
|
+
captures:
|
299
|
+
"1":
|
300
300
|
name: punctuation.definition.character.erlang
|
301
301
|
match: (\$)\S
|
302
302
|
- name: invalid.illegal.character.erlang
|
303
303
|
match: \$.?
|
304
|
-
macro-directive:
|
305
|
-
patterns:
|
304
|
+
macro-directive:
|
305
|
+
patterns:
|
306
306
|
- name: meta.directive.ifdef.erlang
|
307
|
-
captures:
|
308
|
-
"6":
|
307
|
+
captures:
|
308
|
+
"6":
|
309
309
|
name: punctuation.section.directive.end.erlang
|
310
|
-
"1":
|
310
|
+
"1":
|
311
311
|
name: punctuation.section.directive.begin.erlang
|
312
|
-
"2":
|
312
|
+
"2":
|
313
313
|
name: keyword.control.directive.ifdef.erlang
|
314
|
-
"3":
|
314
|
+
"3":
|
315
315
|
name: punctuation.definition.parameters.begin.erlang
|
316
|
-
"4":
|
316
|
+
"4":
|
317
317
|
name: entity.name.function.macro.erlang
|
318
|
-
"5":
|
318
|
+
"5":
|
319
319
|
name: punctuation.definition.parameters.end.erlang
|
320
320
|
match: ^\s*+(-)\s*+(ifdef)\s*+(\()\s*+([a-zA-z\d@_]++)\s*+(\))\s*+(\.)
|
321
321
|
- name: meta.directive.ifndef.erlang
|
322
|
-
captures:
|
323
|
-
"6":
|
322
|
+
captures:
|
323
|
+
"6":
|
324
324
|
name: punctuation.section.directive.end.erlang
|
325
|
-
"1":
|
325
|
+
"1":
|
326
326
|
name: punctuation.section.directive.begin.erlang
|
327
|
-
"2":
|
327
|
+
"2":
|
328
328
|
name: keyword.control.directive.ifndef.erlang
|
329
|
-
"3":
|
329
|
+
"3":
|
330
330
|
name: punctuation.definition.parameters.begin.erlang
|
331
|
-
"4":
|
331
|
+
"4":
|
332
332
|
name: entity.name.function.macro.erlang
|
333
|
-
"5":
|
333
|
+
"5":
|
334
334
|
name: punctuation.definition.parameters.end.erlang
|
335
335
|
match: ^\s*+(-)\s*+(ifndef)\s*+(\()\s*+([a-zA-z\d@_]++)\s*+(\))\s*+(\.)
|
336
336
|
- name: meta.directive.undef.erlang
|
337
|
-
captures:
|
338
|
-
"6":
|
337
|
+
captures:
|
338
|
+
"6":
|
339
339
|
name: punctuation.section.directive.end.erlang
|
340
|
-
"1":
|
340
|
+
"1":
|
341
341
|
name: punctuation.section.directive.begin.erlang
|
342
|
-
"2":
|
342
|
+
"2":
|
343
343
|
name: keyword.control.directive.undef.erlang
|
344
|
-
"3":
|
344
|
+
"3":
|
345
345
|
name: punctuation.definition.parameters.begin.erlang
|
346
|
-
"4":
|
346
|
+
"4":
|
347
347
|
name: entity.name.function.macro.erlang
|
348
|
-
"5":
|
348
|
+
"5":
|
349
349
|
name: punctuation.definition.parameters.end.erlang
|
350
350
|
match: ^\s*+(-)\s*+(undef)\s*+(\()\s*+([a-zA-z\d@_]++)\s*+(\))\s*+(\.)
|
351
|
-
internal-record-body:
|
351
|
+
internal-record-body:
|
352
352
|
name: meta.structure.record.erlang
|
353
353
|
begin: (\{)
|
354
|
-
beginCaptures:
|
355
|
-
"1":
|
354
|
+
beginCaptures:
|
355
|
+
"1":
|
356
356
|
name: punctuation.definition.class.record.begin.erlang
|
357
357
|
end: (?=\})
|
358
|
-
patterns:
|
359
|
-
- endCaptures:
|
360
|
-
"1":
|
358
|
+
patterns:
|
359
|
+
- endCaptures:
|
360
|
+
"1":
|
361
361
|
name: punctuation.separator.class.record.erlang
|
362
362
|
begin: (([a-z][a-zA-Z\d@_]*+)|(_))\s*+(=)
|
363
|
-
beginCaptures:
|
364
|
-
"2":
|
363
|
+
beginCaptures:
|
364
|
+
"2":
|
365
365
|
name: variable.other.field.erlang
|
366
|
-
"3":
|
366
|
+
"3":
|
367
367
|
name: variable.language.omitted.field.erlang
|
368
|
-
"4":
|
368
|
+
"4":
|
369
369
|
name: keyword.operator.assignment.erlang
|
370
370
|
end: (,)|(?=\})
|
371
|
-
patterns:
|
371
|
+
patterns:
|
372
372
|
- include: "#everything-else"
|
373
|
-
- captures:
|
374
|
-
"1":
|
373
|
+
- captures:
|
374
|
+
"1":
|
375
375
|
name: variable.other.field.erlang
|
376
|
-
"2":
|
376
|
+
"2":
|
377
377
|
name: punctuation.separator.class.record.erlang
|
378
378
|
match: ([a-z][a-zA-Z\d@_]*+)\s*+(,)?
|
379
379
|
- include: "#everything-else"
|
380
|
-
internal-function-list:
|
380
|
+
internal-function-list:
|
381
381
|
name: meta.structure.list.function.erlang
|
382
|
-
endCaptures:
|
383
|
-
"1":
|
382
|
+
endCaptures:
|
383
|
+
"1":
|
384
384
|
name: punctuation.definition.list.end.erlang
|
385
385
|
begin: (\[)
|
386
|
-
beginCaptures:
|
387
|
-
"1":
|
386
|
+
beginCaptures:
|
387
|
+
"1":
|
388
388
|
name: punctuation.definition.list.begin.erlang
|
389
389
|
end: (\])
|
390
|
-
patterns:
|
391
|
-
- endCaptures:
|
392
|
-
"1":
|
390
|
+
patterns:
|
391
|
+
- endCaptures:
|
392
|
+
"1":
|
393
393
|
name: punctuation.separator.list.erlang
|
394
394
|
begin: ([a-z][a-zA-Z\d@_]*+)\s*+(/)
|
395
|
-
beginCaptures:
|
396
|
-
"1":
|
395
|
+
beginCaptures:
|
396
|
+
"1":
|
397
397
|
name: entity.name.function.erlang
|
398
|
-
"2":
|
398
|
+
"2":
|
399
399
|
name: punctuation.separator.function-arity.erlang
|
400
400
|
end: (,)|(?=\])
|
401
|
-
patterns:
|
401
|
+
patterns:
|
402
402
|
- include: "#everything-else"
|
403
403
|
- include: "#everything-else"
|
404
|
-
internal-expression-punctuation:
|
405
|
-
captures:
|
406
|
-
"1":
|
404
|
+
internal-expression-punctuation:
|
405
|
+
captures:
|
406
|
+
"1":
|
407
407
|
name: punctuation.separator.clause-head-body.erlang
|
408
|
-
"2":
|
408
|
+
"2":
|
409
409
|
name: punctuation.separator.clauses.erlang
|
410
|
-
"3":
|
410
|
+
"3":
|
411
411
|
name: punctuation.separator.expressions.erlang
|
412
412
|
match: (->)|(;)|(,)
|
413
|
-
directive:
|
414
|
-
patterns:
|
413
|
+
directive:
|
414
|
+
patterns:
|
415
415
|
- name: meta.directive.erlang
|
416
|
-
endCaptures:
|
417
|
-
"1":
|
416
|
+
endCaptures:
|
417
|
+
"1":
|
418
418
|
name: punctuation.definition.parameters.end.erlang
|
419
|
-
"2":
|
419
|
+
"2":
|
420
420
|
name: punctuation.section.directive.end.erlang
|
421
421
|
begin: ^\s*+(-)\s*+([a-z][a-zA-Z\d@_]*+)\s*+(\()
|
422
|
-
beginCaptures:
|
423
|
-
"1":
|
422
|
+
beginCaptures:
|
423
|
+
"1":
|
424
424
|
name: punctuation.section.directive.begin.erlang
|
425
|
-
"2":
|
425
|
+
"2":
|
426
426
|
name: keyword.control.directive.erlang
|
427
|
-
"3":
|
427
|
+
"3":
|
428
428
|
name: punctuation.definition.parameters.begin.erlang
|
429
429
|
end: (\))\s*+(\.)
|
430
|
-
patterns:
|
430
|
+
patterns:
|
431
431
|
- include: "#everything-else"
|
432
432
|
- name: meta.directive.erlang
|
433
|
-
captures:
|
434
|
-
"1":
|
433
|
+
captures:
|
434
|
+
"1":
|
435
435
|
name: punctuation.section.directive.begin.erlang
|
436
|
-
"2":
|
436
|
+
"2":
|
437
437
|
name: keyword.control.directive.erlang
|
438
|
-
"3":
|
438
|
+
"3":
|
439
439
|
name: punctuation.section.directive.end.erlang
|
440
440
|
match: ^\s*+(-)\s*+([a-z][a-zA-Z\d@_]*+)\s*+(\.)
|
441
|
-
binary:
|
441
|
+
binary:
|
442
442
|
name: meta.structure.binary.erlang
|
443
|
-
endCaptures:
|
444
|
-
"1":
|
443
|
+
endCaptures:
|
444
|
+
"1":
|
445
445
|
name: punctuation.definition.binary.end.erlang
|
446
446
|
begin: (<<)
|
447
|
-
beginCaptures:
|
448
|
-
"1":
|
447
|
+
beginCaptures:
|
448
|
+
"1":
|
449
449
|
name: punctuation.definition.binary.begin.erlang
|
450
450
|
end: (>>)
|
451
|
-
patterns:
|
452
|
-
- captures:
|
453
|
-
"1":
|
451
|
+
patterns:
|
452
|
+
- captures:
|
453
|
+
"1":
|
454
454
|
name: punctuation.separator.binary.erlang
|
455
|
-
"2":
|
455
|
+
"2":
|
456
456
|
name: punctuation.separator.value-size.erlang
|
457
457
|
match: (,)|(:)
|
458
458
|
- include: "#internal-type-specifiers"
|
459
459
|
- include: "#everything-else"
|
460
|
-
function:
|
460
|
+
function:
|
461
461
|
name: meta.function.erlang
|
462
|
-
endCaptures:
|
463
|
-
"1":
|
462
|
+
endCaptures:
|
463
|
+
"1":
|
464
464
|
name: punctuation.terminator.function.erlang
|
465
465
|
begin: ^\s*+([a-z][a-zA-Z\d@_]*+)\s*+(?=\()
|
466
|
-
beginCaptures:
|
467
|
-
"1":
|
466
|
+
beginCaptures:
|
467
|
+
"1":
|
468
468
|
name: entity.name.function.definition.erlang
|
469
469
|
end: (\.)
|
470
|
-
patterns:
|
471
|
-
- endCaptures:
|
472
|
-
"1":
|
470
|
+
patterns:
|
471
|
+
- endCaptures:
|
472
|
+
"1":
|
473
473
|
name: punctuation.separator.clauses.erlang
|
474
474
|
begin: (?=\()
|
475
475
|
end: (;)|(?=\.)
|
476
|
-
patterns:
|
476
|
+
patterns:
|
477
477
|
- include: "#internal-function-parts"
|
478
|
-
- captures:
|
479
|
-
"1":
|
478
|
+
- captures:
|
479
|
+
"1":
|
480
480
|
name: entity.name.function.erlang
|
481
481
|
match: ^\s*+([a-z][a-zA-Z\d@_]*+)\s*+(?=\()
|
482
482
|
- include: "#everything-else"
|
483
|
-
expression:
|
484
|
-
patterns:
|
483
|
+
expression:
|
484
|
+
patterns:
|
485
485
|
- name: meta.expression.if.erlang
|
486
|
-
endCaptures:
|
487
|
-
"1":
|
486
|
+
endCaptures:
|
487
|
+
"1":
|
488
488
|
name: keyword.control.end.erlang
|
489
489
|
begin: \b(if)\b
|
490
|
-
beginCaptures:
|
491
|
-
"1":
|
490
|
+
beginCaptures:
|
491
|
+
"1":
|
492
492
|
name: keyword.control.if.erlang
|
493
493
|
end: \b(end)\b
|
494
|
-
patterns:
|
494
|
+
patterns:
|
495
495
|
- include: "#internal-expression-punctuation"
|
496
496
|
- include: "#everything-else"
|
497
497
|
- name: meta.expression.case.erlang
|
498
|
-
endCaptures:
|
499
|
-
"1":
|
498
|
+
endCaptures:
|
499
|
+
"1":
|
500
500
|
name: keyword.control.end.erlang
|
501
501
|
begin: \b(case)\b
|
502
|
-
beginCaptures:
|
503
|
-
"1":
|
502
|
+
beginCaptures:
|
503
|
+
"1":
|
504
504
|
name: keyword.control.case.erlang
|
505
505
|
end: \b(end)\b
|
506
|
-
patterns:
|
506
|
+
patterns:
|
507
507
|
- include: "#internal-expression-punctuation"
|
508
508
|
- include: "#everything-else"
|
509
509
|
- name: meta.expression.receive.erlang
|
510
|
-
endCaptures:
|
511
|
-
"1":
|
510
|
+
endCaptures:
|
511
|
+
"1":
|
512
512
|
name: keyword.control.end.erlang
|
513
513
|
begin: \b(receive)\b
|
514
|
-
beginCaptures:
|
515
|
-
"1":
|
514
|
+
beginCaptures:
|
515
|
+
"1":
|
516
516
|
name: keyword.control.receive.erlang
|
517
517
|
end: \b(end)\b
|
518
|
-
patterns:
|
518
|
+
patterns:
|
519
519
|
- include: "#internal-expression-punctuation"
|
520
520
|
- include: "#everything-else"
|
521
|
-
- captures:
|
522
|
-
"6":
|
521
|
+
- captures:
|
522
|
+
"6":
|
523
523
|
name: punctuation.separator.function-arity.erlang
|
524
|
-
"1":
|
524
|
+
"1":
|
525
525
|
name: keyword.control.fun.erlang
|
526
|
-
"3":
|
526
|
+
"3":
|
527
527
|
name: entity.name.type.class.module.erlang
|
528
|
-
"4":
|
528
|
+
"4":
|
529
529
|
name: punctuation.separator.module-function.erlang
|
530
|
-
"5":
|
530
|
+
"5":
|
531
531
|
name: entity.name.function.erlang
|
532
532
|
match: \b(fun)\s*+(([a-z][a-zA-Z\d@_]*+)\s*+(:)\s*+)?([a-z][a-zA-Z\d@_]*+)\s*(/)
|
533
533
|
- name: meta.expression.fun.erlang
|
534
|
-
endCaptures:
|
535
|
-
"1":
|
534
|
+
endCaptures:
|
535
|
+
"1":
|
536
536
|
name: keyword.control.end.erlang
|
537
537
|
begin: \b(fun)\b
|
538
|
-
beginCaptures:
|
539
|
-
"1":
|
538
|
+
beginCaptures:
|
539
|
+
"1":
|
540
540
|
name: keyword.control.fun.erlang
|
541
541
|
end: \b(end)\b
|
542
|
-
patterns:
|
543
|
-
- endCaptures:
|
544
|
-
"1":
|
542
|
+
patterns:
|
543
|
+
- endCaptures:
|
544
|
+
"1":
|
545
545
|
name: punctuation.separator.clauses.erlang
|
546
546
|
begin: (?=\()
|
547
547
|
end: (;)|(?=\bend\b)
|
548
|
-
patterns:
|
548
|
+
patterns:
|
549
549
|
- include: "#internal-function-parts"
|
550
550
|
- include: "#everything-else"
|
551
551
|
- name: meta.expression.try.erlang
|
552
|
-
endCaptures:
|
553
|
-
"1":
|
552
|
+
endCaptures:
|
553
|
+
"1":
|
554
554
|
name: keyword.control.end.erlang
|
555
555
|
begin: \b(try)\b
|
556
|
-
beginCaptures:
|
557
|
-
"1":
|
556
|
+
beginCaptures:
|
557
|
+
"1":
|
558
558
|
name: keyword.control.try.erlang
|
559
559
|
end: \b(end)\b
|
560
|
-
patterns:
|
560
|
+
patterns:
|
561
561
|
- include: "#internal-expression-punctuation"
|
562
562
|
- include: "#everything-else"
|
563
563
|
- name: meta.expression.begin.erlang
|
564
|
-
endCaptures:
|
565
|
-
"1":
|
564
|
+
endCaptures:
|
565
|
+
"1":
|
566
566
|
name: keyword.control.end.erlang
|
567
567
|
begin: \b(begin)\b
|
568
|
-
beginCaptures:
|
569
|
-
"1":
|
568
|
+
beginCaptures:
|
569
|
+
"1":
|
570
570
|
name: keyword.control.begin.erlang
|
571
571
|
end: \b(end)\b
|
572
|
-
patterns:
|
572
|
+
patterns:
|
573
573
|
- include: "#internal-expression-punctuation"
|
574
574
|
- include: "#everything-else"
|
575
575
|
- name: meta.expression.query.erlang
|
576
|
-
endCaptures:
|
577
|
-
"1":
|
576
|
+
endCaptures:
|
577
|
+
"1":
|
578
578
|
name: keyword.control.end.erlang
|
579
579
|
begin: \b(query)\b
|
580
|
-
beginCaptures:
|
581
|
-
"1":
|
580
|
+
beginCaptures:
|
581
|
+
"1":
|
582
582
|
name: keyword.control.query.erlang
|
583
583
|
end: \b(end)\b
|
584
|
-
patterns:
|
584
|
+
patterns:
|
585
585
|
- include: "#everything-else"
|
586
|
-
module-directive:
|
586
|
+
module-directive:
|
587
587
|
name: meta.directive.module.erlang
|
588
|
-
captures:
|
589
|
-
"6":
|
588
|
+
captures:
|
589
|
+
"6":
|
590
590
|
name: punctuation.section.directive.end.erlang
|
591
|
-
"1":
|
591
|
+
"1":
|
592
592
|
name: punctuation.section.directive.begin.erlang
|
593
|
-
"2":
|
593
|
+
"2":
|
594
594
|
name: keyword.control.directive.module.erlang
|
595
|
-
"3":
|
595
|
+
"3":
|
596
596
|
name: punctuation.definition.parameters.begin.erlang
|
597
|
-
"4":
|
597
|
+
"4":
|
598
598
|
name: entity.name.type.class.module.definition.erlang
|
599
|
-
"5":
|
599
|
+
"5":
|
600
600
|
name: punctuation.definition.parameters.end.erlang
|
601
601
|
match: ^\s*+(-)\s*+(module)\s*+(\()\s*+([a-z][a-zA-Z\d@_]*+)\s*+(\))\s*+(\.)
|
602
|
-
define-directive:
|
603
|
-
patterns:
|
602
|
+
define-directive:
|
603
|
+
patterns:
|
604
604
|
- name: meta.directive.define.erlang
|
605
|
-
endCaptures:
|
606
|
-
"1":
|
605
|
+
endCaptures:
|
606
|
+
"1":
|
607
607
|
name: punctuation.definition.parameters.end.erlang
|
608
|
-
"2":
|
608
|
+
"2":
|
609
609
|
name: punctuation.section.directive.end.erlang
|
610
610
|
begin: ^\s*+(-)\s*+(define)\s*+(\()\s*+([a-zA-Z\d@_]++)\s*+(,)
|
611
|
-
beginCaptures:
|
612
|
-
"1":
|
611
|
+
beginCaptures:
|
612
|
+
"1":
|
613
613
|
name: punctuation.section.directive.begin.erlang
|
614
|
-
"2":
|
614
|
+
"2":
|
615
615
|
name: keyword.control.directive.define.erlang
|
616
|
-
"3":
|
616
|
+
"3":
|
617
617
|
name: punctuation.definition.parameters.begin.erlang
|
618
|
-
"4":
|
618
|
+
"4":
|
619
619
|
name: entity.name.function.macro.definition.erlang
|
620
|
-
"5":
|
620
|
+
"5":
|
621
621
|
name: punctuation.separator.parameters.erlang
|
622
622
|
end: (\))\s*+(\.)
|
623
|
-
patterns:
|
623
|
+
patterns:
|
624
624
|
- include: "#everything-else"
|
625
625
|
- name: meta.directive.define.erlang
|
626
|
-
endCaptures:
|
627
|
-
"1":
|
626
|
+
endCaptures:
|
627
|
+
"1":
|
628
628
|
name: punctuation.definition.parameters.end.erlang
|
629
|
-
"2":
|
629
|
+
"2":
|
630
630
|
name: punctuation.section.directive.end.erlang
|
631
631
|
begin: (?=^\s*+-\s*+define\s*+\(\s*+[a-zA-Z\d@_]++\s*+\()
|
632
632
|
end: (\))\s*+(\.)
|
633
|
-
patterns:
|
634
|
-
- endCaptures:
|
635
|
-
"1":
|
633
|
+
patterns:
|
634
|
+
- endCaptures:
|
635
|
+
"1":
|
636
636
|
name: punctuation.definition.parameters.end.erlang
|
637
|
-
"2":
|
637
|
+
"2":
|
638
638
|
name: punctuation.separator.parameters.erlang
|
639
639
|
begin: ^\s*+(-)\s*+(define)\s*+(\()\s*+([a-zA-Z\d@_]++)\s*+(\()
|
640
|
-
beginCaptures:
|
641
|
-
"1":
|
640
|
+
beginCaptures:
|
641
|
+
"1":
|
642
642
|
name: punctuation.section.directive.begin.erlang
|
643
|
-
"2":
|
643
|
+
"2":
|
644
644
|
name: keyword.control.directive.define.erlang
|
645
|
-
"3":
|
645
|
+
"3":
|
646
646
|
name: punctuation.definition.parameters.begin.erlang
|
647
|
-
"4":
|
647
|
+
"4":
|
648
648
|
name: entity.name.function.macro.definition.erlang
|
649
|
-
"5":
|
649
|
+
"5":
|
650
650
|
name: punctuation.definition.parameters.begin.erlang
|
651
651
|
end: (\))\s*(,)
|
652
|
-
patterns:
|
652
|
+
patterns:
|
653
653
|
- name: punctuation.separator.parameters.erlang
|
654
654
|
match: ","
|
655
655
|
- include: "#everything-else"
|
656
656
|
- name: punctuation.separator.define.erlang
|
657
657
|
match: \|\||\||:|;|,|\.|->
|
658
658
|
- include: "#everything-else"
|
659
|
-
tuple:
|
659
|
+
tuple:
|
660
660
|
name: meta.structure.tuple.erlang
|
661
|
-
endCaptures:
|
662
|
-
"1":
|
661
|
+
endCaptures:
|
662
|
+
"1":
|
663
663
|
name: punctuation.definition.tuple.end.erlang
|
664
664
|
begin: (\{)
|
665
|
-
beginCaptures:
|
666
|
-
"1":
|
665
|
+
beginCaptures:
|
666
|
+
"1":
|
667
667
|
name: punctuation.definition.tuple.begin.erlang
|
668
668
|
end: (\})
|
669
|
-
patterns:
|
669
|
+
patterns:
|
670
670
|
- name: punctuation.separator.tuple.erlang
|
671
671
|
match: ","
|
672
672
|
- include: "#everything-else"
|
673
|
-
textual-operator:
|
673
|
+
textual-operator:
|
674
674
|
name: keyword.operator.textual.erlang
|
675
675
|
match: \b(andalso|band|and|bxor|xor|bor|orelse|or|bnot|not|bsl|bsr|div|rem)\b
|
676
|
-
record-directive:
|
676
|
+
record-directive:
|
677
677
|
name: meta.directive.record.erlang
|
678
|
-
endCaptures:
|
679
|
-
"1":
|
678
|
+
endCaptures:
|
679
|
+
"1":
|
680
680
|
name: meta.structure.record.erlang
|
681
|
-
"2":
|
681
|
+
"2":
|
682
682
|
name: punctuation.definition.class.record.end.erlang
|
683
|
-
"3":
|
683
|
+
"3":
|
684
684
|
name: punctuation.definition.parameters.end.erlang
|
685
|
-
"4":
|
685
|
+
"4":
|
686
686
|
name: punctuation.section.directive.end.erlang
|
687
687
|
begin: ^\s*+(-)\s*+(record)\s*+(\()\s*+([a-z][a-zA-Z\d@_]*+)\s*+(,)
|
688
|
-
beginCaptures:
|
689
|
-
"1":
|
688
|
+
beginCaptures:
|
689
|
+
"1":
|
690
690
|
name: punctuation.section.directive.begin.erlang
|
691
|
-
"2":
|
691
|
+
"2":
|
692
692
|
name: keyword.control.directive.import.erlang
|
693
|
-
"3":
|
693
|
+
"3":
|
694
694
|
name: punctuation.definition.parameters.begin.erlang
|
695
|
-
"4":
|
695
|
+
"4":
|
696
696
|
name: entity.name.type.class.record.definition.erlang
|
697
|
-
"5":
|
697
|
+
"5":
|
698
698
|
name: punctuation.separator.parameters.erlang
|
699
699
|
end: ((\}))\s*+(\))\s*+(\.)
|
700
|
-
patterns:
|
700
|
+
patterns:
|
701
701
|
- include: "#internal-record-body"
|
702
|
-
function-call:
|
702
|
+
function-call:
|
703
703
|
name: meta.function-call.erlang
|
704
|
-
endCaptures:
|
705
|
-
"1":
|
704
|
+
endCaptures:
|
705
|
+
"1":
|
706
706
|
name: punctuation.definition.parameters.end.erlang
|
707
707
|
begin: (?=[a-z][a-zA-Z\d@_]*+\s*+(\(|:\s*+[a-z][a-zA-Z\d@_]*+\s*+\())
|
708
708
|
end: (\))
|
709
|
-
patterns:
|
709
|
+
patterns:
|
710
710
|
- begin: ((erlang)\s*+(:)\s*+)?(is_atom|is_binary|is_constant|is_float|is_function|is_integer|is_list|is_number|is_pid|is_port|is_reference|is_tuple|is_record|abs|element|hd|length|node|round|self|size|tl|trunc)\s*+(\()
|
711
|
-
beginCaptures:
|
712
|
-
"2":
|
711
|
+
beginCaptures:
|
712
|
+
"2":
|
713
713
|
name: entity.name.type.class.module.erlang
|
714
|
-
"3":
|
714
|
+
"3":
|
715
715
|
name: punctuation.separator.module-function.erlang
|
716
|
-
"4":
|
716
|
+
"4":
|
717
717
|
name: entity.name.function.guard.erlang
|
718
|
-
"5":
|
718
|
+
"5":
|
719
719
|
name: punctuation.definition.parameters.begin.erlang
|
720
720
|
end: (?=\))
|
721
|
-
patterns:
|
721
|
+
patterns:
|
722
722
|
- name: punctuation.separator.parameters.erlang
|
723
723
|
match: ","
|
724
724
|
- include: "#everything-else"
|
725
725
|
- begin: (([a-z][a-zA-Z\d@_]*+)\s*+(:)\s*+)?([a-z][a-zA-Z\d@_]*+)\s*+(\()
|
726
|
-
beginCaptures:
|
727
|
-
"2":
|
726
|
+
beginCaptures:
|
727
|
+
"2":
|
728
728
|
name: entity.name.type.class.module.erlang
|
729
|
-
"3":
|
729
|
+
"3":
|
730
730
|
name: punctuation.separator.module-function.erlang
|
731
|
-
"4":
|
731
|
+
"4":
|
732
732
|
name: entity.name.function.erlang
|
733
|
-
"5":
|
733
|
+
"5":
|
734
734
|
name: punctuation.definition.parameters.begin.erlang
|
735
735
|
end: (?=\))
|
736
|
-
patterns:
|
736
|
+
patterns:
|
737
737
|
- name: punctuation.separator.parameters.erlang
|
738
738
|
match: ","
|
739
739
|
- include: "#everything-else"
|
740
|
-
everything-else:
|
741
|
-
patterns:
|
740
|
+
everything-else:
|
741
|
+
patterns:
|
742
742
|
- include: "#comment"
|
743
743
|
- include: "#record-usage"
|
744
744
|
- include: "#macro-usage"
|
@@ -756,152 +756,152 @@ repository:
|
|
756
756
|
- include: "#string"
|
757
757
|
- include: "#symbolic-operator"
|
758
758
|
- include: "#variable"
|
759
|
-
record-usage:
|
760
|
-
patterns:
|
759
|
+
record-usage:
|
760
|
+
patterns:
|
761
761
|
- name: meta.record-usage.erlang
|
762
|
-
captures:
|
763
|
-
"1":
|
762
|
+
captures:
|
763
|
+
"1":
|
764
764
|
name: keyword.operator.record.erlang
|
765
|
-
"2":
|
765
|
+
"2":
|
766
766
|
name: entity.name.type.class.record.erlang
|
767
|
-
"3":
|
767
|
+
"3":
|
768
768
|
name: punctuation.separator.record-field.erlang
|
769
|
-
"4":
|
769
|
+
"4":
|
770
770
|
name: variable.other.field.erlang
|
771
771
|
match: (#)\s*+([a-z][a-zA-Z\d@_]*+)\s*+(\.)\s*+([a-z][a-zA-Z\d@_]*+)
|
772
772
|
- name: meta.record-usage.erlang
|
773
|
-
endCaptures:
|
774
|
-
"1":
|
773
|
+
endCaptures:
|
774
|
+
"1":
|
775
775
|
name: meta.structure.record.erlang
|
776
|
-
"2":
|
776
|
+
"2":
|
777
777
|
name: punctuation.definition.class.record.end.erlang
|
778
778
|
begin: (#)\s*+([a-z][a-zA-Z\d@_]*+)
|
779
|
-
beginCaptures:
|
780
|
-
"1":
|
779
|
+
beginCaptures:
|
780
|
+
"1":
|
781
781
|
name: keyword.operator.record.erlang
|
782
|
-
"2":
|
782
|
+
"2":
|
783
783
|
name: entity.name.type.class.record.erlang
|
784
784
|
end: ((\}))
|
785
|
-
patterns:
|
785
|
+
patterns:
|
786
786
|
- include: "#internal-record-body"
|
787
|
-
parenthesized-expression:
|
787
|
+
parenthesized-expression:
|
788
788
|
name: meta.expression.parenthesized
|
789
|
-
endCaptures:
|
790
|
-
"1":
|
789
|
+
endCaptures:
|
790
|
+
"1":
|
791
791
|
name: punctuation.section.expression.end.erlang
|
792
792
|
begin: (\()
|
793
|
-
beginCaptures:
|
794
|
-
"1":
|
793
|
+
beginCaptures:
|
794
|
+
"1":
|
795
795
|
name: punctuation.section.expression.begin.erlang
|
796
796
|
end: (\))
|
797
|
-
patterns:
|
797
|
+
patterns:
|
798
798
|
- include: "#everything-else"
|
799
|
-
keyword:
|
799
|
+
keyword:
|
800
800
|
name: keyword.control.erlang
|
801
801
|
match: \b(after|begin|case|catch|cond|end|fun|if|let|of|query|try|receive|when)\b
|
802
|
-
internal-function-parts:
|
803
|
-
patterns:
|
804
|
-
- endCaptures:
|
805
|
-
"1":
|
802
|
+
internal-function-parts:
|
803
|
+
patterns:
|
804
|
+
- endCaptures:
|
805
|
+
"1":
|
806
806
|
name: punctuation.separator.clause-head-body.erlang
|
807
807
|
begin: (?=\()
|
808
808
|
end: (->)
|
809
|
-
patterns:
|
810
|
-
- endCaptures:
|
811
|
-
"1":
|
809
|
+
patterns:
|
810
|
+
- endCaptures:
|
811
|
+
"1":
|
812
812
|
name: punctuation.definition.parameters.end.erlang
|
813
813
|
begin: (\()
|
814
|
-
beginCaptures:
|
815
|
-
"1":
|
814
|
+
beginCaptures:
|
815
|
+
"1":
|
816
816
|
name: punctuation.definition.parameters.begin.erlang
|
817
817
|
end: (\))
|
818
|
-
patterns:
|
818
|
+
patterns:
|
819
819
|
- name: punctuation.separator.parameters.erlang
|
820
820
|
match: ","
|
821
821
|
- include: "#everything-else"
|
822
822
|
- name: punctuation.separator.guards.erlang
|
823
|
-
match: ,|;
|
823
|
+
match: ",|;"
|
824
824
|
- include: "#everything-else"
|
825
825
|
- name: punctuation.separator.expressions.erlang
|
826
826
|
match: ","
|
827
827
|
- include: "#everything-else"
|
828
|
-
comment:
|
828
|
+
comment:
|
829
829
|
name: comment.line.erlang
|
830
830
|
begin: (%)
|
831
|
-
beginCaptures:
|
832
|
-
"1":
|
831
|
+
beginCaptures:
|
832
|
+
"1":
|
833
833
|
name: punctuation.definition.comment.erlang
|
834
834
|
end: $\n?
|
835
|
-
variable:
|
836
|
-
captures:
|
837
|
-
"1":
|
835
|
+
variable:
|
836
|
+
captures:
|
837
|
+
"1":
|
838
838
|
name: variable.other.erlang
|
839
|
-
"2":
|
839
|
+
"2":
|
840
840
|
name: variable.language.omitted.erlang
|
841
841
|
match: (_[a-zA-Z\d@_]++|[A-Z][a-zA-Z\d@_]*+)|(_)
|
842
|
-
string:
|
842
|
+
string:
|
843
843
|
name: string.quoted.double.erlang
|
844
|
-
endCaptures:
|
845
|
-
"1":
|
844
|
+
endCaptures:
|
845
|
+
"1":
|
846
846
|
name: punctuation.definition.string.end.erlang
|
847
847
|
begin: (")
|
848
|
-
beginCaptures:
|
849
|
-
"1":
|
848
|
+
beginCaptures:
|
849
|
+
"1":
|
850
850
|
name: punctuation.definition.string.begin.erlang
|
851
851
|
end: (")
|
852
|
-
patterns:
|
852
|
+
patterns:
|
853
853
|
- name: constant.character.escape.erlang
|
854
|
-
captures:
|
855
|
-
"1":
|
854
|
+
captures:
|
855
|
+
"1":
|
856
856
|
name: punctuation.definition.escape.erlang
|
857
|
-
"3":
|
857
|
+
"3":
|
858
858
|
name: punctuation.definition.escape.erlang
|
859
859
|
match: (\\)([bdefnrstv\\'"]|(\^)[@-_]|[0-7]{1,3})
|
860
860
|
- name: invalid.illegal.string.erlang
|
861
861
|
match: \\\^?.?
|
862
862
|
- name: constant.other.placeholder.erlang
|
863
|
-
captures:
|
864
|
-
"6":
|
863
|
+
captures:
|
864
|
+
"6":
|
865
865
|
name: punctuation.separator.placeholder-parts.erlang
|
866
|
-
"12":
|
866
|
+
"12":
|
867
867
|
name: punctuation.separator.placeholder-parts.erlang
|
868
|
-
"8":
|
868
|
+
"8":
|
869
869
|
name: punctuation.separator.placeholder-parts.erlang
|
870
|
-
"1":
|
870
|
+
"1":
|
871
871
|
name: punctuation.definition.placeholder.erlang
|
872
|
-
"3":
|
872
|
+
"3":
|
873
873
|
name: punctuation.separator.placeholder-parts.erlang
|
874
|
-
"4":
|
874
|
+
"4":
|
875
875
|
name: punctuation.separator.placeholder-parts.erlang
|
876
|
-
"10":
|
876
|
+
"10":
|
877
877
|
name: punctuation.separator.placeholder-parts.erlang
|
878
878
|
match: (~)((\-)?\d++|(\*))?((\.)(\d++|(\*)))?((\.)((\*)|.))?[~cfegswpWPBX#bx\+ni]
|
879
879
|
- name: constant.other.placeholder.erlang
|
880
|
-
captures:
|
881
|
-
"1":
|
880
|
+
captures:
|
881
|
+
"1":
|
882
882
|
name: punctuation.definition.placeholder.erlang
|
883
|
-
"2":
|
883
|
+
"2":
|
884
884
|
name: punctuation.separator.placeholder-parts.erlang
|
885
885
|
match: (~)(\*)?(\d++)?[~du\-#fsacl]
|
886
886
|
- name: invalid.illegal.string.erlang
|
887
887
|
match: ~.?
|
888
|
-
atom:
|
889
|
-
patterns:
|
888
|
+
atom:
|
889
|
+
patterns:
|
890
890
|
- name: constant.other.symbol.quoted.single.erlang
|
891
|
-
endCaptures:
|
892
|
-
"1":
|
891
|
+
endCaptures:
|
892
|
+
"1":
|
893
893
|
name: punctuation.definition.symbol.end.erlang
|
894
894
|
begin: (')
|
895
|
-
beginCaptures:
|
896
|
-
"1":
|
895
|
+
beginCaptures:
|
896
|
+
"1":
|
897
897
|
name: punctuation.definition.symbol.begin.erlang
|
898
898
|
end: (')
|
899
|
-
patterns:
|
899
|
+
patterns:
|
900
900
|
- name: constant.other.symbol.escape.erlang
|
901
|
-
captures:
|
902
|
-
"1":
|
901
|
+
captures:
|
902
|
+
"1":
|
903
903
|
name: punctuation.definition.escape.erlang
|
904
|
-
"3":
|
904
|
+
"3":
|
905
905
|
name: punctuation.definition.escape.erlang
|
906
906
|
match: (\\)([bdefnrstv\\'"]|(\^)[@-_]|[0-7]{1,3})
|
907
907
|
- name: invalid.illegal.atom.erlang
|
@@ -909,7 +909,7 @@ repository:
|
|
909
909
|
- name: constant.other.symbol.unquoted.erlang
|
910
910
|
match: "[a-z][a-zA-Z\\d@_]*+"
|
911
911
|
uuid: 58EA597D-5158-4BF7-9FB2-B05135D1E166
|
912
|
-
patterns:
|
912
|
+
patterns:
|
913
913
|
- include: "#module-directive"
|
914
914
|
- include: "#import-export-directive"
|
915
915
|
- include: "#record-directive"
|