tm-grammars 1.24.25 → 1.25.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,568 @@
1
+ {
2
+ "displayName": "Pkl",
3
+ "fileTypes": [
4
+ "pkl",
5
+ "pcf"
6
+ ],
7
+ "foldingStartMarker": "\\{",
8
+ "foldingStopMarker": "}",
9
+ "name": "pkl",
10
+ "patterns": [
11
+ {
12
+ "captures": {
13
+ "1": {
14
+ "name": "variable.language.pkl"
15
+ },
16
+ "2": {
17
+ "name": "variable.other.module.pkl"
18
+ }
19
+ },
20
+ "match": "\\b(module)\\s+([$_\\p{L}][$0-9_\\p{L}]*(?:\\.[$_\\p{L}][$0-9_\\p{L}]*)*)"
21
+ },
22
+ {
23
+ "captures": {
24
+ "1": {
25
+ "name": "keyword.class.pkl"
26
+ },
27
+ "2": {
28
+ "name": "entity.name.type.pkl"
29
+ },
30
+ "3": {
31
+ "name": "punctuation.pkl"
32
+ },
33
+ "4": {
34
+ "name": "entity.name.type.pkl"
35
+ }
36
+ },
37
+ "match": "(typealias)\\s+([$_\\p{L}][$0-9_\\p{L}]*)\\s*(=)\\s*([$_\\p{L}][$0-9_\\p{L}]*\\s*(?:<[^>]*>)?\\s*(?:\\([^)]*\\))?\\s*\\??\\s*(\\|\\s*[$_\\p{L}][$0-9_\\p{L}]*\\s*(?:<[^>]*>)?\\s*(?:\\([^)]*\\))?\\s*\\??)*)"
38
+ },
39
+ {
40
+ "captures": {
41
+ "1": {
42
+ "name": "keyword.class.pkl"
43
+ }
44
+ },
45
+ "match": "\\b(class)\\s+[$_\\p{L}][$0-9_\\p{L}]*",
46
+ "name": "entity.name.type.pkl"
47
+ },
48
+ {
49
+ "captures": {
50
+ "1": {
51
+ "name": "keyword.control.pkl"
52
+ },
53
+ "2": {
54
+ "name": "variable.other.property.pkl"
55
+ },
56
+ "3": {
57
+ "name": "variable.other.property.pkl"
58
+ },
59
+ "4": {
60
+ "name": "storage.modifier.pkl"
61
+ }
62
+ },
63
+ "match": "\\b(for)\\s*\\(([$_\\p{L}][$0-9_\\p{L}]*)(?:\\s*,\\s*([$_\\p{L}][$0-9_\\p{L}]*))*\\s+(in)"
64
+ },
65
+ {
66
+ "captures": {
67
+ "1": {
68
+ "name": "keyword.control.pkl"
69
+ },
70
+ "2": {
71
+ "name": "entity.name.type.pkl"
72
+ }
73
+ },
74
+ "match": "\\b(new)\\s+([$_\\p{L}][$0-9_\\p{L}]*\\s*(?:<[^>]*>)?\\s*(?:\\([^)]*\\))?\\s*\\??\\s*(\\|\\s*[$_\\p{L}][$0-9_\\p{L}]*\\s*(?:<[^>]*>)?\\s*(?:\\([^)]*\\))?\\s*\\??)*)"
75
+ },
76
+ {
77
+ "captures": {
78
+ "1": {
79
+ "name": "keyword.pkl"
80
+ },
81
+ "2": {
82
+ "name": "variable.other.property.pkl"
83
+ }
84
+ },
85
+ "match": "\\b(function)\\s+([$_\\p{L}][$0-9_\\p{L}]*)"
86
+ },
87
+ {
88
+ "captures": {
89
+ "1": {
90
+ "name": "keyword.pkl"
91
+ },
92
+ "2": {
93
+ "name": "entity.name.type.pkl"
94
+ }
95
+ },
96
+ "match": "\\b(as)\\s+([$_\\p{L}][$0-9_\\p{L}]*\\s*(?:<[^>]*>)?\\s*(?:\\([^)]*\\))?\\s*\\??\\s*(\\|\\s*[$_\\p{L}][$0-9_\\p{L}]*\\s*(?:<[^>]*>)?\\s*(?:\\([^)]*\\))?\\s*\\??)*)"
97
+ },
98
+ {
99
+ "match": "\\b(true|false|null)\\b",
100
+ "name": "constant.character.language.pkl"
101
+ },
102
+ {
103
+ "match": "//.*",
104
+ "name": "comment.line.pkl"
105
+ },
106
+ {
107
+ "begin": "/\\*",
108
+ "end": "\\*/",
109
+ "name": "comment.block.pkl"
110
+ },
111
+ {
112
+ "begin": "((?:\\b|\\s*)[$_\\p{L}][$0-9_\\p{L}]*|`[^`]+`)\\s*(:)\\s*([$_\\p{L}][$0-9_\\p{L}]*\\s*(?:<[^>]*>)?\\s*(?:\\([^)]*\\))?\\s*\\??\\s*(\\|\\s*[$_\\p{L}][$0-9_\\p{L}]*\\s*(?:<[^>]*>)?\\s*(?:\\([^)]*\\))?\\s*\\??)*)",
113
+ "captures": {
114
+ "1": {
115
+ "name": "variable.other.property.pkl"
116
+ },
117
+ "2": {
118
+ "name": "punctuation.pkl"
119
+ },
120
+ "3": {
121
+ "name": "entity.name.type.pkl"
122
+ }
123
+ },
124
+ "end": "\\s*=|[),]|^[\\t ]*$"
125
+ },
126
+ {
127
+ "captures": {
128
+ "1": {
129
+ "name": "variable.other.property.pkl"
130
+ },
131
+ "2": {
132
+ "name": "punctuation.pkl"
133
+ }
134
+ },
135
+ "match": "(\\b[$_\\p{L}][$0-9_\\p{L}]*|`[^`]+`)\\s*(=)(?!=)"
136
+ },
137
+ {
138
+ "captures": {
139
+ "1": {
140
+ "name": "punctuation.pkl"
141
+ },
142
+ "2": {
143
+ "name": "entity.name.type.pkl"
144
+ }
145
+ },
146
+ "match": "(:)\\s*([$_\\p{L}][$0-9_\\p{L}]*\\s*(?:<[^>]*>)?\\s*(?:\\([^)]*\\))?\\s*\\??\\s*(\\|\\s*[$_\\p{L}][$0-9_\\p{L}]*\\s*(?:<[^>]*>)?\\s*(?:\\([^)]*\\))?\\s*\\??)*)"
147
+ },
148
+ {
149
+ "captures": {
150
+ "1": {
151
+ "name": "variable.other.property.pkl"
152
+ }
153
+ },
154
+ "match": "^\\s*([$_\\p{L}][$0-9_\\p{L}]*)\\s*\\{"
155
+ },
156
+ {
157
+ "match": "\\b(hidden|local|abstract|external|open|in|out|amends|extends|fixed|const)\\b",
158
+ "name": "storage.modifier.pkl"
159
+ },
160
+ {
161
+ "match": "\\b(amends|as|extends|function|is|let|read\\???|import|throw|trace)\\b",
162
+ "name": "keyword.pkl"
163
+ },
164
+ {
165
+ "match": "\\b(if|else|when|for|import|new)\\b",
166
+ "name": "keyword.control.pkl"
167
+ },
168
+ {
169
+ "match": "\\b0x(?:[A-Fa-f\\d][A-F_a-f\\d]*[A-Fa-f\\d]|[A-F_a-f\\d])\\b",
170
+ "name": "constant.numeric.hex.pkl"
171
+ },
172
+ {
173
+ "match": "\\b0b(?:[01][01_]*[01]|[01])\\b",
174
+ "name": "constant.numeric.binary.pkl"
175
+ },
176
+ {
177
+ "match": "\\b0o(?:[0-7][0-7_]*[0-7]|[0-7])\\b",
178
+ "name": "constant.numeric.octal.pkl"
179
+ },
180
+ {
181
+ "match": "\\b\\d(?:[0-9_]*\\d|)\\b",
182
+ "name": "constant.numeric.decimal.pkl"
183
+ },
184
+ {
185
+ "match": "\\b(?:(?:\\d(?:[0-9_]*\\d|))?\\.\\d(?:[0-9_]*\\d|)(?:[Ee][-+]?\\d(?:[0-9_]*\\d|))?|\\d(?:[0-9_]*\\d|)[Ee][-+]?\\d(?:[0-9_]*\\d|))\\b",
186
+ "name": "constant.numeric.pkl"
187
+ },
188
+ {
189
+ "match": "[-*+/]|~/|%|\\*\\*|>=??|<=??|==|!=?|&&|\\|\\||\\|>|\\?\\?|!!|=|->|\\|",
190
+ "name": "keyword.operator.pkl"
191
+ },
192
+ {
193
+ "match": "\\b(this|module|outer|super)\\b",
194
+ "name": "variable.language.pkl"
195
+ },
196
+ {
197
+ "match": "\\b(unknown|never)\\b",
198
+ "name": "support.type.pkl"
199
+ },
200
+ {
201
+ "match": "[]()\\[{}]",
202
+ "name": "meta.brace.pkl"
203
+ },
204
+ {
205
+ "match": "\\b(class|typealias)\\b",
206
+ "name": "keyword.class.pkl"
207
+ },
208
+ {
209
+ "match": "\\.\\?|[.:;]",
210
+ "name": "punctuation.pkl"
211
+ },
212
+ {
213
+ "match": "@[$_\\p{L}][$0-9_\\p{L}]*",
214
+ "name": "entity.name.type.pkl"
215
+ },
216
+ {
217
+ "begin": "(\"\"\")",
218
+ "captures": {
219
+ "1": {
220
+ "name": "punctuation.delimiter.pkl"
221
+ }
222
+ },
223
+ "end": "(\"\"\")",
224
+ "name": "string.quoted.triple.0.pkl",
225
+ "patterns": [
226
+ {
227
+ "captures": {
228
+ "1": {
229
+ "name": "invalid.illegal.unrecognized-string-escape.pkl"
230
+ }
231
+ },
232
+ "match": "\\\\(?:[\"\\\\nrt]|u\\{[A-Fa-f\\d]+}|\\(.+?\\))|(\\\\.)",
233
+ "name": "constant.character.escape.0.pkl"
234
+ }
235
+ ]
236
+ },
237
+ {
238
+ "begin": "(\")",
239
+ "beginCaptures": {
240
+ "1": {
241
+ "name": "punctuation.delimiter.pkl"
242
+ }
243
+ },
244
+ "end": "(\")|(.?)$",
245
+ "endCaptures": {
246
+ "1": {
247
+ "name": "punctuation.delimimter.pkl"
248
+ },
249
+ "2": {
250
+ "name": "invalid.illegal.newline.pkl"
251
+ }
252
+ },
253
+ "name": "string.quoted.double.0.pkl",
254
+ "patterns": [
255
+ {
256
+ "captures": {
257
+ "1": {
258
+ "name": "invalid.illegal.unrecognized-string-escape.pkl"
259
+ }
260
+ },
261
+ "match": "\\\\(?:[\"\\\\nrt]|u\\{[A-Fa-f\\d]+}|\\(.+?\\))|(\\\\.)",
262
+ "name": "constant.character.escape.0.pkl"
263
+ }
264
+ ]
265
+ },
266
+ {
267
+ "begin": "(#\"\"\")",
268
+ "captures": {
269
+ "1": {
270
+ "name": "punctuation.delimiter.pkl"
271
+ }
272
+ },
273
+ "end": "(\"\"\"#)",
274
+ "name": "string.quoted.triple.1.pkl",
275
+ "patterns": [
276
+ {
277
+ "captures": {
278
+ "1": {
279
+ "name": "invalid.illegal.unrecognized-string-escape.pkl"
280
+ }
281
+ },
282
+ "match": "\\\\#(?:[\"\\\\nrt]|u\\{[A-Fa-f\\d]+}|\\(.+?\\))|(\\\\#.)",
283
+ "name": "constant.character.escape.1.pkl"
284
+ }
285
+ ]
286
+ },
287
+ {
288
+ "begin": "(#\")",
289
+ "beginCaptures": {
290
+ "1": {
291
+ "name": "punctuation.delimiter.pkl"
292
+ }
293
+ },
294
+ "end": "(\"#)|(.?)$",
295
+ "endCaptures": {
296
+ "1": {
297
+ "name": "punctuation.delimimter.pkl"
298
+ },
299
+ "2": {
300
+ "name": "invalid.illegal.newline.pkl"
301
+ }
302
+ },
303
+ "name": "string.quoted.double.1.pkl",
304
+ "patterns": [
305
+ {
306
+ "captures": {
307
+ "1": {
308
+ "name": "invalid.illegal.unrecognized-string-escape.pkl"
309
+ }
310
+ },
311
+ "match": "\\\\#(?:[\"\\\\nrt]|u\\{[A-Fa-f\\d]+}|\\(.+?\\))|(\\\\#.)",
312
+ "name": "constant.character.escape.1.pkl"
313
+ }
314
+ ]
315
+ },
316
+ {
317
+ "begin": "(##\"\"\")",
318
+ "captures": {
319
+ "1": {
320
+ "name": "punctuation.delimiter.pkl"
321
+ }
322
+ },
323
+ "end": "(\"\"\"##)",
324
+ "name": "string.quoted.triple.2.pkl",
325
+ "patterns": [
326
+ {
327
+ "captures": {
328
+ "1": {
329
+ "name": "invalid.illegal.unrecognized-string-escape.pkl"
330
+ }
331
+ },
332
+ "match": "\\\\##(?:[\"\\\\nrt]|u\\{[A-Fa-f\\d]+}|\\(.+?\\))|(\\\\##.)",
333
+ "name": "constant.character.escape.2.pkl"
334
+ }
335
+ ]
336
+ },
337
+ {
338
+ "begin": "(##\")",
339
+ "beginCaptures": {
340
+ "1": {
341
+ "name": "punctuation.delimiter.pkl"
342
+ }
343
+ },
344
+ "end": "(\"##)|(.?)$",
345
+ "endCaptures": {
346
+ "1": {
347
+ "name": "punctuation.delimimter.pkl"
348
+ },
349
+ "2": {
350
+ "name": "invalid.illegal.newline.pkl"
351
+ }
352
+ },
353
+ "name": "string.quoted.double.2.pkl",
354
+ "patterns": [
355
+ {
356
+ "captures": {
357
+ "1": {
358
+ "name": "invalid.illegal.unrecognized-string-escape.pkl"
359
+ }
360
+ },
361
+ "match": "\\\\##(?:[\"\\\\nrt]|u\\{[A-Fa-f\\d]+}|\\(.+?\\))|(\\\\##.)",
362
+ "name": "constant.character.escape.2.pkl"
363
+ }
364
+ ]
365
+ },
366
+ {
367
+ "begin": "(###\"\"\")",
368
+ "captures": {
369
+ "1": {
370
+ "name": "punctuation.delimiter.pkl"
371
+ }
372
+ },
373
+ "end": "(\"\"\"###)",
374
+ "name": "string.quoted.triple.3.pkl",
375
+ "patterns": [
376
+ {
377
+ "captures": {
378
+ "1": {
379
+ "name": "invalid.illegal.unrecognized-string-escape.pkl"
380
+ }
381
+ },
382
+ "match": "\\\\###(?:[\"\\\\nrt]|u\\{[A-Fa-f\\d]+}|\\(.+?\\))|(\\\\###.)",
383
+ "name": "constant.character.escape.3.pkl"
384
+ }
385
+ ]
386
+ },
387
+ {
388
+ "begin": "(###\")",
389
+ "beginCaptures": {
390
+ "1": {
391
+ "name": "punctuation.delimiter.pkl"
392
+ }
393
+ },
394
+ "end": "(\"###)|(.?)$",
395
+ "endCaptures": {
396
+ "1": {
397
+ "name": "punctuation.delimimter.pkl"
398
+ },
399
+ "2": {
400
+ "name": "invalid.illegal.newline.pkl"
401
+ }
402
+ },
403
+ "name": "string.quoted.double.3.pkl",
404
+ "patterns": [
405
+ {
406
+ "captures": {
407
+ "1": {
408
+ "name": "invalid.illegal.unrecognized-string-escape.pkl"
409
+ }
410
+ },
411
+ "match": "\\\\###(?:[\"\\\\nrt]|u\\{[A-Fa-f\\d]+}|\\(.+?\\))|(\\\\###.)",
412
+ "name": "constant.character.escape.3.pkl"
413
+ }
414
+ ]
415
+ },
416
+ {
417
+ "begin": "(####\"\"\")",
418
+ "captures": {
419
+ "1": {
420
+ "name": "punctuation.delimiter.pkl"
421
+ }
422
+ },
423
+ "end": "(\"\"\"####)",
424
+ "name": "string.quoted.triple.4.pkl",
425
+ "patterns": [
426
+ {
427
+ "captures": {
428
+ "1": {
429
+ "name": "invalid.illegal.unrecognized-string-escape.pkl"
430
+ }
431
+ },
432
+ "match": "\\\\####(?:[\"\\\\nrt]|u\\{[A-Fa-f\\d]+}|\\(.+?\\))|(\\\\####.)",
433
+ "name": "constant.character.escape.4.pkl"
434
+ }
435
+ ]
436
+ },
437
+ {
438
+ "begin": "(####\")",
439
+ "beginCaptures": {
440
+ "1": {
441
+ "name": "punctuation.delimiter.pkl"
442
+ }
443
+ },
444
+ "end": "(\"####)|(.?)$",
445
+ "endCaptures": {
446
+ "1": {
447
+ "name": "punctuation.delimimter.pkl"
448
+ },
449
+ "2": {
450
+ "name": "invalid.illegal.newline.pkl"
451
+ }
452
+ },
453
+ "name": "string.quoted.double.4.pkl",
454
+ "patterns": [
455
+ {
456
+ "captures": {
457
+ "1": {
458
+ "name": "invalid.illegal.unrecognized-string-escape.pkl"
459
+ }
460
+ },
461
+ "match": "\\\\####(?:[\"\\\\nrt]|u\\{[A-Fa-f\\d]+}|\\(.+?\\))|(\\\\####.)",
462
+ "name": "constant.character.escape.4.pkl"
463
+ }
464
+ ]
465
+ },
466
+ {
467
+ "begin": "(#####\"\"\")",
468
+ "captures": {
469
+ "1": {
470
+ "name": "punctuation.delimiter.pkl"
471
+ }
472
+ },
473
+ "end": "(\"\"\"#####)",
474
+ "name": "string.quoted.triple.5.pkl",
475
+ "patterns": [
476
+ {
477
+ "captures": {
478
+ "1": {
479
+ "name": "invalid.illegal.unrecognized-string-escape.pkl"
480
+ }
481
+ },
482
+ "match": "\\\\#####(?:[\"\\\\nrt]|u\\{[A-Fa-f\\d]+}|\\(.+?\\))|(\\\\#####.)",
483
+ "name": "constant.character.escape.5.pkl"
484
+ }
485
+ ]
486
+ },
487
+ {
488
+ "begin": "(#####\")",
489
+ "beginCaptures": {
490
+ "1": {
491
+ "name": "punctuation.delimiter.pkl"
492
+ }
493
+ },
494
+ "end": "(\"#####)|(.?)$",
495
+ "endCaptures": {
496
+ "1": {
497
+ "name": "punctuation.delimimter.pkl"
498
+ },
499
+ "2": {
500
+ "name": "invalid.illegal.newline.pkl"
501
+ }
502
+ },
503
+ "name": "string.quoted.double.5.pkl",
504
+ "patterns": [
505
+ {
506
+ "captures": {
507
+ "1": {
508
+ "name": "invalid.illegal.unrecognized-string-escape.pkl"
509
+ }
510
+ },
511
+ "match": "\\\\#####(?:[\"\\\\nrt]|u\\{[A-Fa-f\\d]+}|\\(.+?\\))|(\\\\#####.)",
512
+ "name": "constant.character.escape.5.pkl"
513
+ }
514
+ ]
515
+ },
516
+ {
517
+ "begin": "(######\"\"\")",
518
+ "captures": {
519
+ "1": {
520
+ "name": "punctuation.delimiter.pkl"
521
+ }
522
+ },
523
+ "end": "(\"\"\"######)",
524
+ "name": "string.quoted.triple.6.pkl",
525
+ "patterns": [
526
+ {
527
+ "captures": {
528
+ "1": {
529
+ "name": "invalid.illegal.unrecognized-string-escape.pkl"
530
+ }
531
+ },
532
+ "match": "\\\\######(?:[\"\\\\nrt]|u\\{[A-Fa-f\\d]+}|\\(.+?\\))|(\\\\######.)",
533
+ "name": "constant.character.escape.6.pkl"
534
+ }
535
+ ]
536
+ },
537
+ {
538
+ "begin": "(######\")",
539
+ "beginCaptures": {
540
+ "1": {
541
+ "name": "punctuation.delimiter.pkl"
542
+ }
543
+ },
544
+ "end": "(\"######)|(.?)$",
545
+ "endCaptures": {
546
+ "1": {
547
+ "name": "punctuation.delimimter.pkl"
548
+ },
549
+ "2": {
550
+ "name": "invalid.illegal.newline.pkl"
551
+ }
552
+ },
553
+ "name": "string.quoted.double.6.pkl",
554
+ "patterns": [
555
+ {
556
+ "captures": {
557
+ "1": {
558
+ "name": "invalid.illegal.unrecognized-string-escape.pkl"
559
+ }
560
+ },
561
+ "match": "\\\\######(?:[\"\\\\nrt]|u\\{[A-Fa-f\\d]+}|\\(.+?\\))|(\\\\######.)",
562
+ "name": "constant.character.escape.6.pkl"
563
+ }
564
+ ]
565
+ }
566
+ ],
567
+ "scopeName": "source.pkl"
568
+ }