@salesforce/apex-tmlanguage 1.8.0 → 1.8.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.
@@ -1,476 +1,476 @@
1
- name: "Apex"
2
- scopeName: "source.apex"
1
+ name: 'Apex'
2
+ scopeName: 'source.apex'
3
3
  fileTypes: [
4
- "apex"
5
- "cls"
6
- "trigger"
4
+ 'apex'
5
+ 'cls'
6
+ 'trigger'
7
7
  ]
8
- uuid: "F5FC6824-F257-43B1-B53A-14E1CCD18631"
8
+ uuid: 'F5FC6824-F257-43B1-B53A-14E1CCD18631'
9
9
  patterns: [
10
10
  {
11
- include: "#javadoc-comment"
11
+ include: '#javadoc-comment'
12
12
  }
13
13
  {
14
- include: "#comment"
14
+ include: '#comment'
15
15
  }
16
16
  {
17
- include: "#directives"
17
+ include: '#directives'
18
18
  }
19
19
  {
20
- include: "#declarations"
20
+ include: '#declarations'
21
21
  }
22
22
  {
23
- include: "#script-top-level"
23
+ include: '#script-top-level'
24
24
  }
25
25
  ]
26
26
  repository:
27
27
  directives:
28
28
  patterns: [
29
29
  {
30
- include: "#punctuation-semicolon"
30
+ include: '#punctuation-semicolon'
31
31
  }
32
32
  ]
33
33
  declarations:
34
34
  patterns: [
35
35
  {
36
- include: "#type-declarations"
36
+ include: '#type-declarations'
37
37
  }
38
38
  {
39
- include: "#punctuation-semicolon"
39
+ include: '#punctuation-semicolon'
40
40
  }
41
41
  ]
42
- "script-top-level":
42
+ 'script-top-level':
43
43
  patterns: [
44
44
  {
45
- include: "#method-declaration"
45
+ include: '#method-declaration'
46
46
  }
47
47
  {
48
- include: "#statement"
48
+ include: '#statement'
49
49
  }
50
50
  {
51
- include: "#punctuation-semicolon"
51
+ include: '#punctuation-semicolon'
52
52
  }
53
53
  ]
54
- "type-declarations":
54
+ 'type-declarations':
55
55
  patterns: [
56
56
  {
57
- include: "#javadoc-comment"
57
+ include: '#javadoc-comment'
58
58
  }
59
59
  {
60
- include: "#comment"
60
+ include: '#comment'
61
61
  }
62
62
  {
63
- include: "#annotation-declaration"
63
+ include: '#annotation-declaration'
64
64
  }
65
65
  {
66
- include: "#storage-modifier"
66
+ include: '#storage-modifier'
67
67
  }
68
68
  {
69
- include: "#sharing-modifier"
69
+ include: '#sharing-modifier'
70
70
  }
71
71
  {
72
- include: "#class-declaration"
72
+ include: '#class-declaration'
73
73
  }
74
74
  {
75
- include: "#enum-declaration"
75
+ include: '#enum-declaration'
76
76
  }
77
77
  {
78
- include: "#interface-declaration"
78
+ include: '#interface-declaration'
79
79
  }
80
80
  {
81
- include: "#trigger-declaration"
81
+ include: '#trigger-declaration'
82
82
  }
83
83
  {
84
- include: "#punctuation-semicolon"
84
+ include: '#punctuation-semicolon'
85
85
  }
86
86
  ]
87
- "class-or-trigger-members":
87
+ 'class-or-trigger-members':
88
88
  patterns: [
89
89
  {
90
- include: "#javadoc-comment"
90
+ include: '#javadoc-comment'
91
91
  }
92
92
  {
93
- include: "#comment"
93
+ include: '#comment'
94
94
  }
95
95
  {
96
- include: "#storage-modifier"
96
+ include: '#storage-modifier'
97
97
  }
98
98
  {
99
- include: "#sharing-modifier"
99
+ include: '#sharing-modifier'
100
100
  }
101
101
  {
102
- include: "#type-declarations"
102
+ include: '#type-declarations'
103
103
  }
104
104
  {
105
- include: "#field-declaration"
105
+ include: '#field-declaration'
106
106
  }
107
107
  {
108
- include: "#property-declaration"
108
+ include: '#property-declaration'
109
109
  }
110
110
  {
111
- include: "#indexer-declaration"
111
+ include: '#indexer-declaration'
112
112
  }
113
113
  {
114
- include: "#variable-initializer"
114
+ include: '#variable-initializer'
115
115
  }
116
116
  {
117
- include: "#constructor-declaration"
117
+ include: '#constructor-declaration'
118
118
  }
119
119
  {
120
- include: "#method-declaration"
120
+ include: '#method-declaration'
121
121
  }
122
122
  {
123
- include: "#punctuation-semicolon"
123
+ include: '#punctuation-semicolon'
124
124
  }
125
125
  ]
126
- "interface-members":
126
+ 'interface-members':
127
127
  patterns: [
128
128
  {
129
- include: "#javadoc-comment"
129
+ include: '#javadoc-comment'
130
130
  }
131
131
  {
132
- include: "#comment"
132
+ include: '#comment'
133
133
  }
134
134
  {
135
- include: "#property-declaration"
135
+ include: '#property-declaration'
136
136
  }
137
137
  {
138
- include: "#indexer-declaration"
138
+ include: '#indexer-declaration'
139
139
  }
140
140
  {
141
- include: "#method-declaration"
141
+ include: '#method-declaration'
142
142
  }
143
143
  {
144
- include: "#punctuation-semicolon"
144
+ include: '#punctuation-semicolon'
145
145
  }
146
146
  ]
147
147
  statement:
148
148
  patterns: [
149
149
  {
150
- include: "#comment"
150
+ include: '#comment'
151
151
  }
152
152
  {
153
- include: "#while-statement"
153
+ include: '#while-statement'
154
154
  }
155
155
  {
156
- include: "#do-statement"
156
+ include: '#do-statement'
157
157
  }
158
158
  {
159
- include: "#for-statement"
159
+ include: '#for-statement'
160
160
  }
161
161
  {
162
- include: "#switch-statement"
162
+ include: '#switch-statement'
163
163
  }
164
164
  {
165
- include: "#when-else-statement"
165
+ include: '#when-else-statement'
166
166
  }
167
167
  {
168
- include: "#when-sobject-statement"
168
+ include: '#when-sobject-statement'
169
169
  }
170
170
  {
171
- include: "#when-statement"
171
+ include: '#when-statement'
172
172
  }
173
173
  {
174
- include: "#when-multiple-statement"
174
+ include: '#when-multiple-statement'
175
175
  }
176
176
  {
177
- include: "#if-statement"
177
+ include: '#if-statement'
178
178
  }
179
179
  {
180
- include: "#else-part"
180
+ include: '#else-part'
181
181
  }
182
182
  {
183
- include: "#goto-statement"
183
+ include: '#goto-statement'
184
184
  }
185
185
  {
186
- include: "#return-statement"
186
+ include: '#return-statement'
187
187
  }
188
188
  {
189
- include: "#break-or-continue-statement"
189
+ include: '#break-or-continue-statement'
190
190
  }
191
191
  {
192
- include: "#throw-statement"
192
+ include: '#throw-statement'
193
193
  }
194
194
  {
195
- include: "#try-statement"
195
+ include: '#try-statement'
196
196
  }
197
197
  {
198
- include: "#soql-query-expression"
198
+ include: '#soql-query-expression'
199
199
  }
200
200
  {
201
- include: "#local-declaration"
201
+ include: '#local-declaration'
202
202
  }
203
203
  {
204
- include: "#block"
204
+ include: '#block'
205
205
  }
206
206
  {
207
- include: "#expression"
207
+ include: '#expression'
208
208
  }
209
209
  {
210
- include: "#punctuation-semicolon"
210
+ include: '#punctuation-semicolon'
211
211
  }
212
212
  ]
213
213
  expression:
214
214
  patterns: [
215
215
  {
216
- include: "#comment"
216
+ include: '#comment'
217
217
  }
218
218
  {
219
- include: "#merge-expression"
219
+ include: '#merge-expression'
220
220
  }
221
221
  {
222
- include: "#support-expression"
222
+ include: '#support-expression'
223
223
  }
224
224
  {
225
- include: "#throw-expression"
225
+ include: '#throw-expression'
226
226
  }
227
227
  {
228
- include: "#this-expression"
228
+ include: '#this-expression'
229
229
  }
230
230
  {
231
- include: "#trigger-context-declaration"
231
+ include: '#trigger-context-declaration'
232
232
  }
233
233
  {
234
- include: "#conditional-operator"
234
+ include: '#conditional-operator'
235
235
  }
236
236
  {
237
- include: "#expression-operators"
237
+ include: '#expression-operators'
238
238
  }
239
239
  {
240
- include: "#soql-query-expression"
240
+ include: '#soql-query-expression'
241
241
  }
242
242
  {
243
- include: "#object-creation-expression"
243
+ include: '#object-creation-expression'
244
244
  }
245
245
  {
246
- include: "#array-creation-expression"
246
+ include: '#array-creation-expression'
247
247
  }
248
248
  {
249
- include: "#invocation-expression"
249
+ include: '#invocation-expression'
250
250
  }
251
251
  {
252
- include: "#member-access-expression"
252
+ include: '#member-access-expression'
253
253
  }
254
254
  {
255
- include: "#element-access-expression"
255
+ include: '#element-access-expression'
256
256
  }
257
257
  {
258
- include: "#cast-expression"
258
+ include: '#cast-expression'
259
259
  }
260
260
  {
261
- include: "#literal"
261
+ include: '#literal'
262
262
  }
263
263
  {
264
- include: "#parenthesized-expression"
264
+ include: '#parenthesized-expression'
265
265
  }
266
266
  {
267
- include: "#initializer-expression"
267
+ include: '#initializer-expression'
268
268
  }
269
269
  {
270
- include: "#identifier"
270
+ include: '#identifier'
271
271
  }
272
272
  ]
273
- "annotation-declaration":
274
- begin: "([@][_[:alpha:]]+)\\b"
273
+ 'annotation-declaration':
274
+ begin: '([@][_[:alpha:]]+)\\b'
275
275
  beginCaptures:
276
- "1":
277
- name: "storage.type.annotation.apex"
278
- end: "(?<=\\)|$)"
276
+ '1':
277
+ name: 'storage.type.annotation.apex'
278
+ end: '(?=\\s(?!\\())|(?=\\s*$)|(?<=\\s*\\))'
279
279
  patterns: [
280
280
  {
281
- begin: "\\("
281
+ begin: '\\('
282
282
  beginCaptures:
283
- "0":
284
- name: "punctuation.parenthesis.open.apex"
285
- end: "\\)"
283
+ '0':
284
+ name: 'punctuation.parenthesis.open.apex'
285
+ end: '\\)'
286
286
  endCaptures:
287
- "0":
288
- name: "punctuation.parenthesis.close.apex"
287
+ '0':
288
+ name: 'punctuation.parenthesis.close.apex'
289
289
  patterns: [
290
290
  {
291
- include: "#expression"
291
+ include: '#expression'
292
292
  }
293
293
  ]
294
294
  }
295
295
  {
296
- include: "#statement"
296
+ include: '#statement'
297
297
  }
298
298
  ]
299
- "support-expression":
299
+ 'support-expression':
300
300
  begin: '''
301
301
  (?x)
302
302
  (ApexPages|Database|DMLException|Exception|PageReference|Savepoint|SchedulableContext|Schema|SObject|System|Test)(?=\\.|\\s) # supported apex namespaces
303
303
  '''
304
304
  beginCaptures:
305
- "1":
306
- name: "support.class.apex"
307
- end: "(?<=\\)|$)|(?=\\})|(?=;)|(?=\\)|(?=\\]))|(?=\\,)"
305
+ '1':
306
+ name: 'support.class.apex'
307
+ end: '(?<=\\)|$)|(?=\\})|(?=;)|(?=\\)|(?=\\]))|(?=\\,)'
308
308
  patterns: [
309
309
  {
310
- include: "#support-type"
310
+ include: '#support-type'
311
311
  }
312
312
  {
313
- match: "(?:(\\.))([[:alpha:]]*)(?=\\()"
313
+ match: '(?:(\\.))([[:alpha:]]*)(?=\\()'
314
314
  captures:
315
- "1":
316
- name: "punctuation.accessor.apex"
317
- "2":
318
- name: "support.function.apex"
315
+ '1':
316
+ name: 'punctuation.accessor.apex'
317
+ '2':
318
+ name: 'support.function.apex'
319
319
  }
320
320
  {
321
- match: "(?:(\\.))([[:alpha:]]+)"
321
+ match: '(?:(\\.))([[:alpha:]]+)'
322
322
  captures:
323
- "1":
324
- name: "punctuation.accessor.apex"
325
- "2":
326
- name: "support.type.apex"
323
+ '1':
324
+ name: 'punctuation.accessor.apex'
325
+ '2':
326
+ name: 'support.type.apex'
327
327
  }
328
328
  {
329
- begin: "\\("
329
+ begin: '\\('
330
330
  beginCaptures:
331
- "0":
332
- name: "punctuation.parenthesis.open.apex"
333
- end: "\\)"
331
+ '0':
332
+ name: 'punctuation.parenthesis.open.apex'
333
+ end: '\\)'
334
334
  endCaptures:
335
- "0":
336
- name: "punctuation.parenthesis.close.apex"
335
+ '0':
336
+ name: 'punctuation.parenthesis.close.apex'
337
337
  patterns: [
338
338
  {
339
- include: "#expression"
339
+ include: '#expression'
340
340
  }
341
341
  {
342
- include: "#punctuation-comma"
342
+ include: '#punctuation-comma'
343
343
  }
344
344
  ]
345
345
  }
346
346
  {
347
- include: "#comment"
347
+ include: '#comment'
348
348
  }
349
349
  {
350
- include: "#statement"
350
+ include: '#statement'
351
351
  }
352
352
  ]
353
- "support-type":
354
- name: "support.apex"
353
+ 'support-type':
354
+ name: 'support.apex'
355
355
  patterns: [
356
356
  {
357
- include: "#comment"
357
+ include: '#comment'
358
358
  }
359
359
  {
360
- include: "#support-class"
360
+ include: '#support-class'
361
361
  }
362
362
  {
363
- include: "#support-functions"
363
+ include: '#support-functions'
364
364
  }
365
365
  {
366
- include: "#support-name"
366
+ include: '#support-name'
367
367
  }
368
368
  ]
369
- "support-class":
370
- match: "\\b(ApexPages|Database|DMLException|Exception|PageReference|Savepoint|SchedulableContext|Schema|SObject|System|Test)\\b"
369
+ 'support-class':
370
+ match: '\\b(ApexPages|Database|DMLException|Exception|PageReference|Savepoint|SchedulableContext|Schema|SObject|System|Test)\\b'
371
371
  captures:
372
- "1":
373
- name: "support.class.apex"
374
- "support-functions":
375
- match: "\\b(delete|execute|finish|insert|start|undelete|update|upsert)\\b"
372
+ '1':
373
+ name: 'support.class.apex'
374
+ 'support-functions':
375
+ match: '\\b(delete|execute|finish|insert|start|undelete|update|upsert)\\b'
376
376
  captures:
377
- "1":
378
- name: "support.function.apex"
379
- "support-name":
377
+ '1':
378
+ name: 'support.function.apex'
379
+ 'support-name':
380
380
  patterns: [
381
381
  {
382
- match: "(\\.)\\s*([[:alpha:]]*)(?=\\()"
382
+ match: '(\\.)\\s*([[:alpha:]]*)(?=\\()'
383
383
  captures:
384
- "1":
385
- name: "punctuation.accessor.apex"
386
- "2":
387
- name: "support.function.apex"
384
+ '1':
385
+ name: 'punctuation.accessor.apex'
386
+ '2':
387
+ name: 'support.function.apex'
388
388
  }
389
389
  {
390
- begin: "\\("
390
+ begin: '\\('
391
391
  beginCaptures:
392
- "0":
393
- name: "punctuation.parenthesis.open.apex"
394
- end: "\\)"
392
+ '0':
393
+ name: 'punctuation.parenthesis.open.apex'
394
+ end: '\\)'
395
395
  endCaptures:
396
- "0":
397
- name: "punctuation.parenthesis.close.apex"
396
+ '0':
397
+ name: 'punctuation.parenthesis.close.apex'
398
398
  patterns: [
399
399
  {
400
- include: "#expression"
400
+ include: '#expression'
401
401
  }
402
402
  {
403
- include: "#punctuation-comma"
403
+ include: '#punctuation-comma'
404
404
  }
405
405
  ]
406
406
  }
407
407
  {
408
- match: "(\\.)\\s*([_[:alpha:]]*)"
408
+ match: '(\\.)\\s*([_[:alpha:]]*)'
409
409
  captures:
410
- "1":
411
- name: "punctuation.accessor.apex"
412
- "2":
413
- name: "support.type.apex"
410
+ '1':
411
+ name: 'punctuation.accessor.apex'
412
+ '2':
413
+ name: 'support.type.apex'
414
414
  }
415
415
  ]
416
- "support-arguments":
417
- begin: "<"
416
+ 'support-arguments':
417
+ begin: '<'
418
418
  beginCaptures:
419
- "0":
420
- name: "punctuation.definition.typeparameters.begin.apex"
421
- end: ">"
419
+ '0':
420
+ name: 'punctuation.definition.typeparameters.begin.apex'
421
+ end: '>'
422
422
  endCaptures:
423
- "0":
424
- name: "punctuation.definition.typeparameters.end.apex"
423
+ '0':
424
+ name: 'punctuation.definition.typeparameters.end.apex'
425
425
  patterns: [
426
426
  {
427
- include: "#comment"
427
+ include: '#comment'
428
428
  }
429
429
  {
430
- include: "#support-type"
430
+ include: '#support-type'
431
431
  }
432
432
  {
433
- include: "#punctuation-comma"
433
+ include: '#punctuation-comma'
434
434
  }
435
435
  ]
436
- "merge-expression":
437
- begin: "(merge)\\b\\s+"
436
+ 'merge-expression':
437
+ begin: '(merge)\\b\\s+'
438
438
  beginCaptures:
439
- "1":
440
- name: "support.function.apex"
441
- end: "(?<=\\;)"
439
+ '1':
440
+ name: 'support.function.apex'
441
+ end: '(?<=\\;)'
442
442
  patterns: [
443
443
  {
444
- include: "#object-creation-expression"
444
+ include: '#object-creation-expression'
445
445
  }
446
446
  {
447
- include: "#merge-type-statement"
447
+ include: '#merge-type-statement'
448
448
  }
449
449
  {
450
- include: "#expression"
450
+ include: '#expression'
451
451
  }
452
452
  {
453
- include: "#punctuation-semicolon"
453
+ include: '#punctuation-semicolon'
454
454
  }
455
455
  ]
456
- "merge-type-statement":
457
- match: "([_[:alpha:]]*)\\b\\s+([_[:alpha:]]*)\\b\\s*(\\;)"
456
+ 'merge-type-statement':
457
+ match: '([_[:alpha:]]*)\\b\\s+([_[:alpha:]]*)\\b\\s*(\\;)'
458
458
  captures:
459
- "1":
460
- name: "variable.other.readwrite.apex"
461
- "2":
462
- name: "variable.other.readwrite.apex"
463
- "3":
464
- name: "punctuation.terminator.statement.apex"
465
- "sharing-modifier":
466
- name: "sharing.modifier.apex"
467
- match: "(?<!\\.)\\b(with sharing|without sharing|inherited sharing)\\b"
468
- "storage-modifier":
469
- name: "storage.modifier.apex"
470
- match: "(?<!\\.)\\b(new|public|protected|private|abstract|virtual|override|global|static|final|transient)\\b"
471
- "class-declaration":
472
- begin: "(?=\\bclass\\b)"
473
- end: "(?<=\\})"
459
+ '1':
460
+ name: 'variable.other.readwrite.apex'
461
+ '2':
462
+ name: 'variable.other.readwrite.apex'
463
+ '3':
464
+ name: 'punctuation.terminator.statement.apex'
465
+ 'sharing-modifier':
466
+ name: 'sharing.modifier.apex'
467
+ match: '(?<!\\.)\\b(with sharing|without sharing|inherited sharing)\\b'
468
+ 'storage-modifier':
469
+ name: 'storage.modifier.apex'
470
+ match: '(?<!\\.)\\b(new|public|protected|private|abstract|virtual|override|global|static|final|transient)\\b'
471
+ 'class-declaration':
472
+ begin: '(?=\\bclass\\b)'
473
+ end: '(?<=\\})'
474
474
  patterns: [
475
475
  {
476
476
  begin: '''
@@ -479,54 +479,54 @@ repository:
479
479
  (@?[_[:alpha:]][_[:alnum:]]*)\\s*
480
480
  '''
481
481
  beginCaptures:
482
- "1":
483
- name: "keyword.other.class.apex"
484
- "2":
485
- name: "entity.name.type.class.apex"
486
- end: "(?=\\{)"
482
+ '1':
483
+ name: 'keyword.other.class.apex'
484
+ '2':
485
+ name: 'entity.name.type.class.apex'
486
+ end: '(?=\\{)'
487
487
  patterns: [
488
488
  {
489
- include: "#javadoc-comment"
489
+ include: '#javadoc-comment'
490
490
  }
491
491
  {
492
- include: "#comment"
492
+ include: '#comment'
493
493
  }
494
494
  {
495
- include: "#type-parameter-list"
495
+ include: '#type-parameter-list'
496
496
  }
497
497
  {
498
- include: "#extends-class"
498
+ include: '#extends-class'
499
499
  }
500
500
  {
501
- include: "#implements-class"
501
+ include: '#implements-class'
502
502
  }
503
503
  ]
504
504
  }
505
505
  {
506
- begin: "\\{"
506
+ begin: '\\{'
507
507
  beginCaptures:
508
- "0":
509
- name: "punctuation.curlybrace.open.apex"
510
- end: "\\}"
508
+ '0':
509
+ name: 'punctuation.curlybrace.open.apex'
510
+ end: '\\}'
511
511
  endCaptures:
512
- "0":
513
- name: "punctuation.curlybrace.close.apex"
512
+ '0':
513
+ name: 'punctuation.curlybrace.close.apex'
514
514
  patterns: [
515
515
  {
516
- include: "#class-or-trigger-members"
516
+ include: '#class-or-trigger-members'
517
517
  }
518
518
  ]
519
519
  }
520
520
  {
521
- include: "#javadoc-comment"
521
+ include: '#javadoc-comment'
522
522
  }
523
523
  {
524
- include: "#comment"
524
+ include: '#comment'
525
525
  }
526
526
  ]
527
- "trigger-declaration":
528
- begin: "(?=\\btrigger\\b)"
529
- end: "(?<=\\})"
527
+ 'trigger-declaration':
528
+ begin: '(?=\\btrigger\\b)'
529
+ end: '(?<=\\})'
530
530
  patterns: [
531
531
  {
532
532
  begin: '''
@@ -537,215 +537,215 @@ repository:
537
537
  ([_[:alpha:]][_[:alnum:]]*)\\s*
538
538
  '''
539
539
  beginCaptures:
540
- "1":
541
- name: "keyword.other.trigger.apex"
542
- "2":
543
- name: "entity.name.type.trigger.apex"
544
- "3":
545
- name: "keyword.operator.trigger.on.apex"
546
- "4":
547
- name: "storage.type.apex"
548
- end: "(?=\\{)"
540
+ '1':
541
+ name: 'keyword.other.trigger.apex'
542
+ '2':
543
+ name: 'entity.name.type.trigger.apex'
544
+ '3':
545
+ name: 'keyword.operator.trigger.on.apex'
546
+ '4':
547
+ name: 'storage.type.apex'
548
+ end: '(?=\\{)'
549
549
  patterns: [
550
550
  {
551
- begin: "\\("
551
+ begin: '\\('
552
552
  beginCaptures:
553
- "0":
554
- name: "punctuation.parenthesis.open.apex"
555
- end: "\\)"
553
+ '0':
554
+ name: 'punctuation.parenthesis.open.apex'
555
+ end: '\\)'
556
556
  endCaptures:
557
- "0":
558
- name: "punctuation.parenthesis.close.apex"
557
+ '0':
558
+ name: 'punctuation.parenthesis.close.apex'
559
559
  patterns: [
560
560
  {
561
- include: "#trigger-type-statement"
561
+ include: '#trigger-type-statement'
562
562
  }
563
563
  {
564
- include: "#trigger-operator-statement"
564
+ include: '#trigger-operator-statement'
565
565
  }
566
566
  {
567
- include: "#punctuation-comma"
567
+ include: '#punctuation-comma'
568
568
  }
569
569
  {
570
- include: "#expression"
570
+ include: '#expression'
571
571
  }
572
572
  ]
573
573
  }
574
574
  {
575
- include: "#javadoc-comment"
575
+ include: '#javadoc-comment'
576
576
  }
577
577
  {
578
- include: "#comment"
578
+ include: '#comment'
579
579
  }
580
580
  {
581
- include: "#type-parameter-list"
581
+ include: '#type-parameter-list'
582
582
  }
583
583
  ]
584
584
  }
585
585
  {
586
- begin: "\\{"
586
+ begin: '\\{'
587
587
  beginCaptures:
588
- "0":
589
- name: "punctuation.curlybrace.open.apex"
590
- end: "\\}"
588
+ '0':
589
+ name: 'punctuation.curlybrace.open.apex'
590
+ end: '\\}'
591
591
  endCaptures:
592
- "0":
593
- name: "punctuation.curlybrace.close.apex"
592
+ '0':
593
+ name: 'punctuation.curlybrace.close.apex'
594
594
  patterns: [
595
595
  {
596
- include: "#statement"
596
+ include: '#statement'
597
597
  }
598
598
  {
599
- include: "#class-or-trigger-members"
599
+ include: '#class-or-trigger-members'
600
600
  }
601
601
  ]
602
602
  }
603
603
  {
604
- include: "#javadoc-comment"
604
+ include: '#javadoc-comment'
605
605
  }
606
606
  {
607
- include: "#comment"
607
+ include: '#comment'
608
608
  }
609
609
  ]
610
- "trigger-type-statement":
611
- match: "\\b(?:(before)|(after))\\b"
610
+ 'trigger-type-statement':
611
+ match: '\\b(?:(before)|(after))\\b'
612
612
  captures:
613
- "1":
614
- name: "keyword.control.trigger.before.apex"
615
- "2":
616
- name: "keyword.control.trigger.after.apex"
617
- "trigger-operator-statement":
618
- name: "keyword.operator.trigger.apex"
619
- match: "\\b(insert|update|delete|merge|upsert|undelete)\\b"
620
- "trigger-context-declaration":
621
- begin: "\\b(?:(Trigger))\\b(\\.)\\b"
613
+ '1':
614
+ name: 'keyword.control.trigger.before.apex'
615
+ '2':
616
+ name: 'keyword.control.trigger.after.apex'
617
+ 'trigger-operator-statement':
618
+ name: 'keyword.operator.trigger.apex'
619
+ match: '\\b(insert|update|delete|merge|upsert|undelete)\\b'
620
+ 'trigger-context-declaration':
621
+ begin: '\\b(?:(Trigger))\\b(\\.)\\b'
622
622
  beginCaptures:
623
- "1":
624
- name: "support.class.trigger.apex"
625
- "2":
626
- name: "punctuation.accessor.apex"
627
- end: "(?=\\})|(?=;)|(?=\\)|(?=\\]))"
623
+ '1':
624
+ name: 'support.class.trigger.apex'
625
+ '2':
626
+ name: 'punctuation.accessor.apex'
627
+ end: '(?=\\})|(?=;)|(?=\\)|(?=\\]))'
628
628
  patterns: [
629
629
  {
630
- name: "support.type.trigger.apex"
631
- match: "\\b(isExecuting|isInsert|isUpdate|isDelete|isBefore|isAfter|isUndelete|new|newMap|old|oldMap|size)\\b"
630
+ name: 'support.type.trigger.apex'
631
+ match: '\\b(isExecuting|isInsert|isUpdate|isDelete|isBefore|isAfter|isUndelete|new|newMap|old|oldMap|size)\\b'
632
632
  }
633
633
  {
634
- match: "(?:(\\??\\.))([[:alpha:]]+)(?=\\()"
634
+ match: '(?:(\\??\\.))([[:alpha:]]+)(?=\\()'
635
635
  captures:
636
- "1":
636
+ '1':
637
637
  patterns: [
638
638
  {
639
- include: "#punctuation-accessor"
639
+ include: '#punctuation-accessor'
640
640
  }
641
641
  {
642
- include: "#operator-safe-navigation"
642
+ include: '#operator-safe-navigation'
643
643
  }
644
644
  ]
645
- "2":
646
- name: "support.function.trigger.apex"
645
+ '2':
646
+ name: 'support.function.trigger.apex'
647
647
  }
648
648
  {
649
- begin: "\\("
649
+ begin: '\\('
650
650
  beginCaptures:
651
- "0":
652
- name: "punctuation.parenthesis.open.apex"
653
- end: "\\)"
651
+ '0':
652
+ name: 'punctuation.parenthesis.open.apex'
653
+ end: '\\)'
654
654
  endCaptures:
655
- "0":
656
- name: "punctuation.parenthesis.close.apex"
655
+ '0':
656
+ name: 'punctuation.parenthesis.close.apex'
657
657
  patterns: [
658
658
  {
659
- include: "#trigger-type-statement"
659
+ include: '#trigger-type-statement'
660
660
  }
661
661
  {
662
- include: "#javadoc-comment"
662
+ include: '#javadoc-comment'
663
663
  }
664
664
  {
665
- include: "#comment"
665
+ include: '#comment'
666
666
  }
667
667
  {
668
- include: "#expression"
668
+ include: '#expression'
669
669
  }
670
670
  ]
671
671
  }
672
672
  {
673
- include: "#expression"
673
+ include: '#expression'
674
674
  }
675
675
  ]
676
- "enum-declaration":
677
- begin: "(?=\\benum\\b)"
678
- end: "(?<=\\})"
676
+ 'enum-declaration':
677
+ begin: '(?=\\benum\\b)'
678
+ end: '(?<=\\})'
679
679
  patterns: [
680
680
  {
681
- begin: "(?=enum)"
682
- end: "(?=\\{)"
681
+ begin: '(?=enum)'
682
+ end: '(?=\\{)'
683
683
  patterns: [
684
684
  {
685
- include: "#javadoc-comment"
685
+ include: '#javadoc-comment'
686
686
  }
687
687
  {
688
- include: "#comment"
688
+ include: '#comment'
689
689
  }
690
690
  {
691
- match: "(enum)\\s+(@?[_[:alpha:]][_[:alnum:]]*)"
691
+ match: '(enum)\\s+(@?[_[:alpha:]][_[:alnum:]]*)'
692
692
  captures:
693
- "1":
694
- name: "keyword.other.enum.apex"
695
- "2":
696
- name: "entity.name.type.enum.apex"
693
+ '1':
694
+ name: 'keyword.other.enum.apex'
695
+ '2':
696
+ name: 'entity.name.type.enum.apex'
697
697
  }
698
698
  ]
699
699
  }
700
700
  {
701
- begin: "\\{"
701
+ begin: '\\{'
702
702
  beginCaptures:
703
- "0":
704
- name: "punctuation.curlybrace.open.apex"
705
- end: "\\}"
703
+ '0':
704
+ name: 'punctuation.curlybrace.open.apex'
705
+ end: '\\}'
706
706
  endCaptures:
707
- "0":
708
- name: "punctuation.curlybrace.close.apex"
707
+ '0':
708
+ name: 'punctuation.curlybrace.close.apex'
709
709
  patterns: [
710
710
  {
711
- include: "#javadoc-comment"
711
+ include: '#javadoc-comment'
712
712
  }
713
713
  {
714
- include: "#comment"
714
+ include: '#comment'
715
715
  }
716
716
  {
717
- include: "#punctuation-comma"
717
+ include: '#punctuation-comma'
718
718
  }
719
719
  {
720
- begin: "@?[_[:alpha:]][_[:alnum:]]*"
720
+ begin: '@?[_[:alpha:]][_[:alnum:]]*'
721
721
  beginCaptures:
722
- "0":
723
- name: "entity.name.variable.enum-member.apex"
724
- end: "(?=(,|\\}))"
722
+ '0':
723
+ name: 'entity.name.variable.enum-member.apex'
724
+ end: '(?=(,|\\}))'
725
725
  patterns: [
726
726
  {
727
- include: "#javadoc-comment"
727
+ include: '#javadoc-comment'
728
728
  }
729
729
  {
730
- include: "#comment"
730
+ include: '#comment'
731
731
  }
732
732
  {
733
- include: "#variable-initializer"
733
+ include: '#variable-initializer'
734
734
  }
735
735
  ]
736
736
  }
737
737
  ]
738
738
  }
739
739
  {
740
- include: "#javadoc-comment"
740
+ include: '#javadoc-comment'
741
741
  }
742
742
  {
743
- include: "#comment"
743
+ include: '#comment'
744
744
  }
745
745
  ]
746
- "interface-declaration":
747
- begin: "(?=\\binterface\\b)"
748
- end: "(?<=\\})"
746
+ 'interface-declaration':
747
+ begin: '(?=\\binterface\\b)'
748
+ end: '(?<=\\})'
749
749
  patterns: [
750
750
  {
751
751
  begin: '''
@@ -754,358 +754,358 @@ repository:
754
754
  (@?[_[:alpha:]][_[:alnum:]]*)
755
755
  '''
756
756
  beginCaptures:
757
- "1":
758
- name: "keyword.other.interface.apex"
759
- "2":
760
- name: "entity.name.type.interface.apex"
761
- end: "(?=\\{)"
757
+ '1':
758
+ name: 'keyword.other.interface.apex'
759
+ '2':
760
+ name: 'entity.name.type.interface.apex'
761
+ end: '(?=\\{)'
762
762
  patterns: [
763
763
  {
764
- include: "#javadoc-comment"
764
+ include: '#javadoc-comment'
765
765
  }
766
766
  {
767
- include: "#comment"
767
+ include: '#comment'
768
768
  }
769
769
  {
770
- include: "#type-parameter-list"
770
+ include: '#type-parameter-list'
771
771
  }
772
772
  {
773
- include: "#extends-class"
773
+ include: '#extends-class'
774
774
  }
775
775
  ]
776
776
  }
777
777
  {
778
- begin: "\\{"
778
+ begin: '\\{'
779
779
  beginCaptures:
780
- "0":
781
- name: "punctuation.curlybrace.open.apex"
782
- end: "\\}"
780
+ '0':
781
+ name: 'punctuation.curlybrace.open.apex'
782
+ end: '\\}'
783
783
  endCaptures:
784
- "0":
785
- name: "punctuation.curlybrace.close.apex"
784
+ '0':
785
+ name: 'punctuation.curlybrace.close.apex'
786
786
  patterns: [
787
787
  {
788
- include: "#interface-members"
788
+ include: '#interface-members'
789
789
  }
790
790
  ]
791
791
  }
792
792
  {
793
- include: "#javadoc-comment"
793
+ include: '#javadoc-comment'
794
794
  }
795
795
  {
796
- include: "#comment"
796
+ include: '#comment'
797
797
  }
798
798
  ]
799
- "extends-class":
800
- begin: "(extends)\\b\\s+([_[:alpha:]][_[:alnum:]]*)"
799
+ 'extends-class':
800
+ begin: '(extends)\\b\\s+([_[:alpha:]][_[:alnum:]]*)'
801
801
  beginCaptures:
802
- "1":
803
- name: "keyword.other.extends.apex"
804
- "2":
805
- name: "entity.name.type.extends.apex"
806
- end: "(?={|implements)"
807
- "implements-class":
808
- begin: "(implements)\\b\\s+([_[:alpha:]][_[:alnum:]]*)"
802
+ '1':
803
+ name: 'keyword.other.extends.apex'
804
+ '2':
805
+ name: 'entity.name.type.extends.apex'
806
+ end: '(?={|implements)'
807
+ 'implements-class':
808
+ begin: '(implements)\\b\\s+([_[:alpha:]][_[:alnum:]]*)'
809
809
  beginCaptures:
810
- "1":
811
- name: "keyword.other.implements.apex"
812
- "2":
813
- name: "entity.name.type.implements.apex"
814
- end: "(?={|extends)"
815
- "soql-query-expression":
816
- begin: "\\b(SELECT)\\b\\s*"
810
+ '1':
811
+ name: 'keyword.other.implements.apex'
812
+ '2':
813
+ name: 'entity.name.type.implements.apex'
814
+ end: '(?={|extends)'
815
+ 'soql-query-expression':
816
+ begin: '\\b(SELECT)\\b\\s*'
817
817
  beginCaptures:
818
- "1":
819
- name: "keyword.operator.query.select.apex"
820
- end: "(?=;)|(?=\\])|(?=\\))"
818
+ '1':
819
+ name: 'keyword.operator.query.select.apex'
820
+ end: '(?=;)|(?=\\])|(?=\\))'
821
821
  patterns: [
822
822
  {
823
- include: "#soql-query-body"
823
+ include: '#soql-query-body'
824
824
  }
825
825
  {
826
- include: "#comment"
826
+ include: '#comment'
827
827
  }
828
828
  {
829
- include: "#punctuation-comma"
829
+ include: '#punctuation-comma'
830
830
  }
831
831
  {
832
- include: "#operator-assignment"
832
+ include: '#operator-assignment'
833
833
  }
834
834
  {
835
- include: "#parenthesized-expression"
835
+ include: '#parenthesized-expression'
836
836
  }
837
837
  {
838
- include: "#expression-operators"
838
+ include: '#expression-operators'
839
839
  }
840
840
  {
841
- include: "#literal"
841
+ include: '#literal'
842
842
  }
843
843
  {
844
- match: "([_.[:alpha:]][_.[:alnum:]]*)\\s*(\\,)?"
844
+ match: '([_.[:alpha:]][_.[:alnum:]]*)\\s*(\\,)?'
845
845
  captures:
846
- "1":
847
- name: "keyword.query.field.apex"
848
- "2":
849
- name: "punctuation.separator.comma.apex"
846
+ '1':
847
+ name: 'keyword.query.field.apex'
848
+ '2':
849
+ name: 'punctuation.separator.comma.apex'
850
850
  }
851
851
  ]
852
- "soql-query-body":
852
+ 'soql-query-body':
853
853
  patterns: [
854
854
  {
855
- include: "#trigger-context-declaration"
855
+ include: '#trigger-context-declaration'
856
856
  }
857
857
  {
858
- include: "#soql-colon-vars"
858
+ include: '#soql-colon-vars'
859
859
  }
860
860
  {
861
- include: "#soql-functions"
861
+ include: '#soql-functions'
862
862
  }
863
863
  {
864
- include: "#from-clause"
864
+ include: '#from-clause'
865
865
  }
866
866
  {
867
- include: "#where-clause"
867
+ include: '#where-clause'
868
868
  }
869
869
  {
870
- include: "#query-operators"
870
+ include: '#query-operators'
871
871
  }
872
872
  {
873
- include: "#date-literals"
873
+ include: '#date-literals'
874
874
  }
875
875
  {
876
- include: "#date-literal-with-params"
876
+ include: '#date-literal-with-params'
877
877
  }
878
878
  {
879
- include: "#using-scope"
879
+ include: '#using-scope'
880
880
  }
881
881
  {
882
- include: "#soql-group-clauses"
882
+ include: '#soql-group-clauses'
883
883
  }
884
884
  {
885
- include: "#orderby-clause"
885
+ include: '#orderby-clause'
886
886
  }
887
887
  {
888
- include: "#ordering-direction"
888
+ include: '#ordering-direction'
889
889
  }
890
890
  {
891
- include: "#ordering-nulls"
891
+ include: '#ordering-nulls'
892
892
  }
893
893
  ]
894
- "soql-colon-vars":
895
- begin: "(\\:)\\s*"
894
+ 'soql-colon-vars':
895
+ begin: '(\\:)\\s*'
896
896
  beginCaptures:
897
- "0":
898
- name: "keyword.operator.conditional.colon.apex"
899
- end: "(?![_[:alnum:]]|\\(|(\\?)?\\[|<)"
897
+ '0':
898
+ name: 'keyword.operator.conditional.colon.apex'
899
+ end: '(?![_[:alnum:]]|\\(|(\\?)?\\[|<)'
900
900
  patterns: [
901
901
  {
902
- include: "#trigger-context-declaration"
902
+ include: '#trigger-context-declaration'
903
903
  }
904
904
  {
905
- match: "([_[:alpha:]][_[:alnum:]]*)(\\??\\.)"
905
+ match: '([_[:alpha:]][_[:alnum:]]*)(\\??\\.)'
906
906
  captures:
907
- "1":
908
- name: "variable.other.object.apex"
909
- "2":
907
+ '1':
908
+ name: 'variable.other.object.apex'
909
+ '2':
910
910
  patterns: [
911
911
  {
912
- include: "#punctuation-accessor"
912
+ include: '#punctuation-accessor'
913
913
  }
914
914
  {
915
- include: "#operator-safe-navigation"
915
+ include: '#operator-safe-navigation'
916
916
  }
917
917
  ]
918
918
  }
919
919
  {
920
- include: "#soql-colon-method-statement"
920
+ include: '#soql-colon-method-statement'
921
921
  }
922
922
  {
923
- name: "entity.name.variable.local.apex"
924
- match: "[_[:alpha:]][_[:alnum:]]*"
923
+ name: 'entity.name.variable.local.apex'
924
+ match: '[_[:alpha:]][_[:alnum:]]*'
925
925
  }
926
926
  ]
927
- "soql-colon-method-statement":
928
- begin: "(:?\\.)?([_[:alpha:]][_[:alnum:]]*)(?=\\()"
927
+ 'soql-colon-method-statement':
928
+ begin: '(:?\\.)?([_[:alpha:]][_[:alnum:]]*)(?=\\()'
929
929
  beginCaptures:
930
- "1":
931
- name: "punctuation.accessor.apex"
932
- "2":
933
- name: "entity.name.function.apex"
934
- end: "(?<=\\))"
930
+ '1':
931
+ name: 'punctuation.accessor.apex'
932
+ '2':
933
+ name: 'entity.name.function.apex'
934
+ end: '(?<=\\))'
935
935
  patterns: [
936
936
  {
937
- begin: "\\("
937
+ begin: '\\('
938
938
  beginCaptures:
939
- "0":
940
- name: "punctuation.parenthesis.open.apex"
941
- end: "\\)"
939
+ '0':
940
+ name: 'punctuation.parenthesis.open.apex'
941
+ end: '\\)'
942
942
  endCaptures:
943
- "0":
944
- name: "punctuation.parenthesis.close.apex"
943
+ '0':
944
+ name: 'punctuation.parenthesis.close.apex'
945
945
  patterns: [
946
946
  {
947
- include: "#expression"
947
+ include: '#expression'
948
948
  }
949
949
  ]
950
950
  }
951
951
  {
952
- include: "#statement"
952
+ include: '#statement'
953
953
  }
954
954
  ]
955
- "soql-group-clauses":
956
- begin: "\\("
955
+ 'soql-group-clauses':
956
+ begin: '\\('
957
957
  beginCaptures:
958
- "0":
959
- name: "punctuation.parenthesis.open.apex"
960
- end: "\\)"
958
+ '0':
959
+ name: 'punctuation.parenthesis.open.apex'
960
+ end: '\\)'
961
961
  endCaptures:
962
- "0":
963
- name: "punctuation.parenthesis.close.apex"
962
+ '0':
963
+ name: 'punctuation.parenthesis.close.apex'
964
964
  patterns: [
965
965
  {
966
- include: "#soql-query-expression"
966
+ include: '#soql-query-expression'
967
967
  }
968
968
  {
969
- include: "#soql-colon-vars"
969
+ include: '#soql-colon-vars'
970
970
  }
971
971
  {
972
- include: "#soql-group-clauses"
972
+ include: '#soql-group-clauses'
973
973
  }
974
974
  {
975
- include: "#punctuation-comma"
975
+ include: '#punctuation-comma'
976
976
  }
977
977
  {
978
- include: "#operator-assignment"
978
+ include: '#operator-assignment'
979
979
  }
980
980
  {
981
- include: "#literal"
981
+ include: '#literal'
982
982
  }
983
983
  {
984
- include: "#query-operators"
984
+ include: '#query-operators'
985
985
  }
986
986
  {
987
- include: "#date-literals"
987
+ include: '#date-literals'
988
988
  }
989
989
  {
990
- include: "#date-literal-with-params"
990
+ include: '#date-literal-with-params'
991
991
  }
992
992
  {
993
- include: "#using-scope"
993
+ include: '#using-scope'
994
994
  }
995
995
  {
996
- name: "keyword.query.field.apex"
997
- match: "[_.[:alpha:]][_.[:alnum:]]*"
996
+ name: 'keyword.query.field.apex'
997
+ match: '[_.[:alpha:]][_.[:alnum:]]*'
998
998
  }
999
999
  ]
1000
- "soql-functions":
1001
- begin: "\\b(AVG|CALENDAR_MONTH|CALENDAR_QUARTER|CALENDAR_YEAR|convertCurrency|convertTimezone|COUNT|COUNT_DISTINCT|DAY_IN_MONTH|DAY_IN_WEEK|DAY_IN_YEAR|DAY_ONLY|toLabel|INCLUDES|EXCLUDES|FISCAL_MONTH|FISCAL_QUARTER|FISCAL_YEAR|FORMAT|GROUPING|GROUP BY CUBE|GROUP BY ROLLUP|HOUR_IN_DAY|MAX|MIN|SUM|WEEK_IN_MONTH|WEEK_IN_YEAR)\\s*(\\()"
1000
+ 'soql-functions':
1001
+ begin: '\\b(AVG|CALENDAR_MONTH|CALENDAR_QUARTER|CALENDAR_YEAR|convertCurrency|convertTimezone|COUNT|COUNT_DISTINCT|DAY_IN_MONTH|DAY_IN_WEEK|DAY_IN_YEAR|DAY_ONLY|toLabel|INCLUDES|EXCLUDES|FISCAL_MONTH|FISCAL_QUARTER|FISCAL_YEAR|FORMAT|GROUPING|GROUP BY CUBE|GROUP BY ROLLUP|HOUR_IN_DAY|MAX|MIN|SUM|WEEK_IN_MONTH|WEEK_IN_YEAR)\\s*(\\()'
1002
1002
  beginCaptures:
1003
- "1":
1004
- name: "support.function.query.apex"
1005
- "2":
1006
- name: "punctuation.parenthesis.open.apex"
1007
- end: "\\)"
1003
+ '1':
1004
+ name: 'support.function.query.apex'
1005
+ '2':
1006
+ name: 'punctuation.parenthesis.open.apex'
1007
+ end: '\\)'
1008
1008
  endCaptures:
1009
- "0":
1010
- name: "punctuation.parenthesis.close.apex"
1009
+ '0':
1010
+ name: 'punctuation.parenthesis.close.apex'
1011
1011
  patterns: [
1012
1012
  {
1013
- include: "#literal"
1013
+ include: '#literal'
1014
1014
  }
1015
1015
  {
1016
- include: "#punctuation-comma"
1016
+ include: '#punctuation-comma'
1017
1017
  }
1018
1018
  {
1019
- include: "#soql-functions"
1019
+ include: '#soql-functions'
1020
1020
  }
1021
1021
  {
1022
- name: "keyword.query.field.apex"
1023
- match: "[_.[:alpha:]][_.[:alnum:]]*"
1022
+ name: 'keyword.query.field.apex'
1023
+ match: '[_.[:alpha:]][_.[:alnum:]]*'
1024
1024
  }
1025
1025
  ]
1026
- "from-clause":
1027
- match: "(FROM)\\b\\s*([_\\.[:alnum:]]+\\b)?"
1026
+ 'from-clause':
1027
+ match: '(FROM)\\b\\s*([_\\.[:alnum:]]+\\b)?'
1028
1028
  captures:
1029
- "1":
1030
- name: "keyword.operator.query.from.apex"
1031
- "2":
1032
- name: "storage.type.apex"
1033
- "where-clause":
1034
- match: "\\b(WHERE)\\b\\s*"
1029
+ '1':
1030
+ name: 'keyword.operator.query.from.apex'
1031
+ '2':
1032
+ name: 'storage.type.apex'
1033
+ 'where-clause':
1034
+ match: '\\b(WHERE)\\b\\s*'
1035
1035
  captures:
1036
- "1":
1037
- name: "keyword.operator.query.where.apex"
1038
- "orderby-clause":
1039
- match: "\\b(ORDER BY)\\b\\s*"
1036
+ '1':
1037
+ name: 'keyword.operator.query.where.apex'
1038
+ 'orderby-clause':
1039
+ match: '\\b(ORDER BY)\\b\\s*'
1040
1040
  captures:
1041
- "1":
1042
- name: "keyword.operator.query.orderby.apex"
1041
+ '1':
1042
+ name: 'keyword.operator.query.orderby.apex'
1043
1043
  patterns: [
1044
1044
  {
1045
- include: "#ordering-direction"
1045
+ include: '#ordering-direction'
1046
1046
  }
1047
1047
  {
1048
- include: "#ordering-nulls"
1048
+ include: '#ordering-nulls'
1049
1049
  }
1050
1050
  ]
1051
- "ordering-direction":
1052
- match: "\\b(?:(ASC)|(DESC))\\b"
1051
+ 'ordering-direction':
1052
+ match: '\\b(?:(ASC)|(DESC))\\b'
1053
1053
  captures:
1054
- "1":
1055
- name: "keyword.operator.query.ascending.apex"
1056
- "2":
1057
- name: "keyword.operator.query.descending.apex"
1058
- "ordering-nulls":
1059
- match: "\\b(?:(NULLS FIRST)|(NULLS LAST))\\b"
1054
+ '1':
1055
+ name: 'keyword.operator.query.ascending.apex'
1056
+ '2':
1057
+ name: 'keyword.operator.query.descending.apex'
1058
+ 'ordering-nulls':
1059
+ match: '\\b(?:(NULLS FIRST)|(NULLS LAST))\\b'
1060
1060
  captures:
1061
- "1":
1062
- name: "keyword.operator.query.nullsfirst.apex"
1063
- "2":
1064
- name: "keyword.operator.query.nullslast.apex"
1065
- "query-operators":
1066
- match: "\\b(ABOVE|AND|AT|FOR REFERENCE|FOR UPDATE|FOR VIEW|GROUP BY|HAVING|IN|LIKE|LIMIT|NOT IN|NOT|OFFSET|OR|TYPEOF|UPDATE TRACKING|UPDATE VIEWSTAT|WITH DATA CATEGORY|WITH)\\b\\s*"
1061
+ '1':
1062
+ name: 'keyword.operator.query.nullsfirst.apex'
1063
+ '2':
1064
+ name: 'keyword.operator.query.nullslast.apex'
1065
+ 'query-operators':
1066
+ match: '\\b(ABOVE|AND|AT|FOR REFERENCE|FOR UPDATE|FOR VIEW|GROUP BY|HAVING|IN|LIKE|LIMIT|NOT IN|NOT|OFFSET|OR|TYPEOF|UPDATE TRACKING|UPDATE VIEWSTAT|WITH DATA CATEGORY|WITH)\\b\\s*'
1067
1067
  captures:
1068
- "1":
1069
- name: "keyword.operator.query.apex"
1070
- "date-literals":
1071
- match: "\\b(YESTERDAY|TODAY|TOMORROW|LAST_WEEK|THIS_WEEK|NEXT_WEEK|LAST_MONTH|THIS_MONTH|NEXT_MONTH|LAST_90_DAYS|NEXT_90_DAYS|THIS_QUARTER|LAST_QUARTER|NEXT_QUARTER|THIS_YEAR|LAST_YEAR|NEXT_YEAR|THIS_FISCAL_QUARTER|LAST_FISCAL_QUARTER|NEXT_FISCAL_QUARTER|THIS_FISCAL_YEAR|LAST_FISCAL_YEAR|NEXT_FISCAL_YEAR)\\b\\s*"
1068
+ '1':
1069
+ name: 'keyword.operator.query.apex'
1070
+ 'date-literals':
1071
+ match: '\\b(YESTERDAY|TODAY|TOMORROW|LAST_WEEK|THIS_WEEK|NEXT_WEEK|LAST_MONTH|THIS_MONTH|NEXT_MONTH|LAST_90_DAYS|NEXT_90_DAYS|THIS_QUARTER|LAST_QUARTER|NEXT_QUARTER|THIS_YEAR|LAST_YEAR|NEXT_YEAR|THIS_FISCAL_QUARTER|LAST_FISCAL_QUARTER|NEXT_FISCAL_QUARTER|THIS_FISCAL_YEAR|LAST_FISCAL_YEAR|NEXT_FISCAL_YEAR)\\b\\s*'
1072
1072
  captures:
1073
- "1":
1074
- name: "keyword.operator.query.date.apex"
1075
- "date-literal-with-params":
1076
- match: "\\b((LAST_N_DAYS|NEXT_N_DAYS|NEXT_N_WEEKS|LAST_N_WEEKS|NEXT_N_MONTHS|LAST_N_MONTHS|NEXT_N_QUARTERS|LAST_N_QUARTERS|NEXT_N_YEARS|LAST_N_YEARS|NEXT_N_FISCAL_QUARTERS|LAST_N_FISCAL_QUARTERS|NEXT_N_FISCAL_YEARS|LAST_N_FISCAL_YEARS)\\s*\\:\\d+)\\b"
1073
+ '1':
1074
+ name: 'keyword.operator.query.date.apex'
1075
+ 'date-literal-with-params':
1076
+ match: '\\b((LAST_N_DAYS|NEXT_N_DAYS|NEXT_N_WEEKS|LAST_N_WEEKS|NEXT_N_MONTHS|LAST_N_MONTHS|NEXT_N_QUARTERS|LAST_N_QUARTERS|NEXT_N_YEARS|LAST_N_YEARS|NEXT_N_FISCAL_QUARTERS|LAST_N_FISCAL_QUARTERS|NEXT_N_FISCAL_YEARS|LAST_N_FISCAL_YEARS)\\s*\\:\\d+)\\b'
1077
1077
  captures:
1078
- "1":
1079
- name: "keyword.operator.query.date.apex"
1080
- "using-scope":
1081
- match: "((USING SCOPE)\\b\\s*(Delegated|Everything|Mine|My_Territory|My_Team_Territory|Team))\\b\\s*"
1078
+ '1':
1079
+ name: 'keyword.operator.query.date.apex'
1080
+ 'using-scope':
1081
+ match: '((USING SCOPE)\\b\\s*(Delegated|Everything|Mine|My_Territory|My_Team_Territory|Team))\\b\\s*'
1082
1082
  captures:
1083
- "1":
1084
- name: "keyword.operator.query.using.apex"
1085
- "type-parameter-list":
1086
- begin: "\\<"
1083
+ '1':
1084
+ name: 'keyword.operator.query.using.apex'
1085
+ 'type-parameter-list':
1086
+ begin: '\\<'
1087
1087
  beginCaptures:
1088
- "0":
1089
- name: "punctuation.definition.typeparameters.begin.apex"
1090
- end: "\\>"
1088
+ '0':
1089
+ name: 'punctuation.definition.typeparameters.begin.apex'
1090
+ end: '\\>'
1091
1091
  endCaptures:
1092
- "0":
1093
- name: "punctuation.definition.typeparameters.end.apex"
1092
+ '0':
1093
+ name: 'punctuation.definition.typeparameters.end.apex'
1094
1094
  patterns: [
1095
1095
  {
1096
- match: "(@?[_[:alpha:]][_[:alnum:]]*)\\b"
1096
+ match: '(@?[_[:alpha:]][_[:alnum:]]*)\\b'
1097
1097
  captures:
1098
- "1":
1099
- name: "entity.name.type.type-parameter.apex"
1098
+ '1':
1099
+ name: 'entity.name.type.type-parameter.apex'
1100
1100
  }
1101
1101
  {
1102
- include: "#comment"
1102
+ include: '#comment'
1103
1103
  }
1104
1104
  {
1105
- include: "#punctuation-comma"
1105
+ include: '#punctuation-comma'
1106
1106
  }
1107
1107
  ]
1108
- "field-declaration":
1108
+ 'field-declaration':
1109
1109
  begin: '''
1110
1110
  (?x)
1111
1111
  (?<type_name>
@@ -1126,37 +1126,37 @@ repository:
1126
1126
  (?!=>|==)(?=,|;|=|$)
1127
1127
  '''
1128
1128
  beginCaptures:
1129
- "1":
1129
+ '1':
1130
1130
  patterns: [
1131
1131
  {
1132
- include: "#support-type"
1132
+ include: '#support-type'
1133
1133
  }
1134
1134
  {
1135
- include: "#type"
1135
+ include: '#type'
1136
1136
  }
1137
1137
  ]
1138
- "5":
1139
- name: "entity.name.variable.field.apex"
1140
- end: "(?=;)"
1138
+ '5':
1139
+ name: 'entity.name.variable.field.apex'
1140
+ end: '(?=;)'
1141
1141
  patterns: [
1142
1142
  {
1143
- name: "entity.name.variable.field.apex"
1144
- match: "@?[_[:alpha:]][_[:alnum:]]*"
1143
+ name: 'entity.name.variable.field.apex'
1144
+ match: '@?[_[:alpha:]][_[:alnum:]]*'
1145
1145
  }
1146
1146
  {
1147
- include: "#punctuation-comma"
1147
+ include: '#punctuation-comma'
1148
1148
  }
1149
1149
  {
1150
- include: "#comment"
1150
+ include: '#comment'
1151
1151
  }
1152
1152
  {
1153
- include: "#variable-initializer"
1153
+ include: '#variable-initializer'
1154
1154
  }
1155
1155
  {
1156
- include: "#class-or-trigger-members"
1156
+ include: '#class-or-trigger-members'
1157
1157
  }
1158
1158
  ]
1159
- "property-declaration":
1159
+ 'property-declaration':
1160
1160
  begin: '''
1161
1161
  (?x)
1162
1162
  (?!.*\\b(?:class|interface|enum)\\b)\\s*
@@ -1182,42 +1182,42 @@ repository:
1182
1182
  (?=\\{|=>|$)
1183
1183
  '''
1184
1184
  beginCaptures:
1185
- "1":
1185
+ '1':
1186
1186
  patterns: [
1187
1187
  {
1188
- include: "#type"
1188
+ include: '#type'
1189
1189
  }
1190
1190
  ]
1191
- "6":
1191
+ '6':
1192
1192
  patterns: [
1193
1193
  {
1194
- include: "#type"
1194
+ include: '#type'
1195
1195
  }
1196
1196
  {
1197
- include: "#punctuation-accessor"
1197
+ include: '#punctuation-accessor'
1198
1198
  }
1199
1199
  ]
1200
- "7":
1201
- name: "entity.name.variable.property.apex"
1202
- end: "(?<=\\})|(?=;)"
1200
+ '7':
1201
+ name: 'entity.name.variable.property.apex'
1202
+ end: '(?<=\\})|(?=;)'
1203
1203
  patterns: [
1204
1204
  {
1205
- include: "#comment"
1205
+ include: '#comment'
1206
1206
  }
1207
1207
  {
1208
- include: "#property-accessors"
1208
+ include: '#property-accessors'
1209
1209
  }
1210
1210
  {
1211
- include: "#expression-body"
1211
+ include: '#expression-body'
1212
1212
  }
1213
1213
  {
1214
- include: "#variable-initializer"
1214
+ include: '#variable-initializer'
1215
1215
  }
1216
1216
  {
1217
- include: "#class-or-trigger-members"
1217
+ include: '#class-or-trigger-members'
1218
1218
  }
1219
1219
  ]
1220
- "indexer-declaration":
1220
+ 'indexer-declaration':
1221
1221
  begin: '''
1222
1222
  (?x)
1223
1223
  (?<return_type>
@@ -1242,74 +1242,74 @@ repository:
1242
1242
  (?=\\[)
1243
1243
  '''
1244
1244
  beginCaptures:
1245
- "1":
1245
+ '1':
1246
1246
  patterns: [
1247
1247
  {
1248
- include: "#type"
1248
+ include: '#type'
1249
1249
  }
1250
1250
  ]
1251
- "6":
1251
+ '6':
1252
1252
  patterns: [
1253
1253
  {
1254
- include: "#type"
1254
+ include: '#type'
1255
1255
  }
1256
1256
  {
1257
- include: "#punctuation-accessor"
1257
+ include: '#punctuation-accessor'
1258
1258
  }
1259
1259
  ]
1260
- "7":
1261
- name: "keyword.other.this.apex"
1262
- end: "(?<=\\})|(?=;)"
1260
+ '7':
1261
+ name: 'keyword.other.this.apex'
1262
+ end: '(?<=\\})|(?=;)'
1263
1263
  patterns: [
1264
1264
  {
1265
- include: "#comment"
1265
+ include: '#comment'
1266
1266
  }
1267
1267
  {
1268
- include: "#property-accessors"
1268
+ include: '#property-accessors'
1269
1269
  }
1270
1270
  {
1271
- include: "#expression-body"
1271
+ include: '#expression-body'
1272
1272
  }
1273
1273
  {
1274
- include: "#variable-initializer"
1274
+ include: '#variable-initializer'
1275
1275
  }
1276
1276
  ]
1277
- "property-accessors":
1278
- begin: "\\{"
1277
+ 'property-accessors':
1278
+ begin: '\\{'
1279
1279
  beginCaptures:
1280
- "0":
1281
- name: "punctuation.curlybrace.open.apex"
1282
- end: "\\}"
1280
+ '0':
1281
+ name: 'punctuation.curlybrace.open.apex'
1282
+ end: '\\}'
1283
1283
  endCaptures:
1284
- "0":
1285
- name: "punctuation.curlybrace.close.apex"
1284
+ '0':
1285
+ name: 'punctuation.curlybrace.close.apex'
1286
1286
  patterns: [
1287
1287
  {
1288
- name: "storage.modifier.apex"
1289
- match: "\\b(private|protected)\\b"
1288
+ name: 'storage.modifier.apex'
1289
+ match: '\\b(private|protected)\\b'
1290
1290
  }
1291
1291
  {
1292
- name: "keyword.other.get.apex"
1293
- match: "\\b(get)\\b"
1292
+ name: 'keyword.other.get.apex'
1293
+ match: '\\b(get)\\b'
1294
1294
  }
1295
1295
  {
1296
- name: "keyword.other.set.apex"
1297
- match: "\\b(set)\\b"
1296
+ name: 'keyword.other.set.apex'
1297
+ match: '\\b(set)\\b'
1298
1298
  }
1299
1299
  {
1300
- include: "#comment"
1300
+ include: '#comment'
1301
1301
  }
1302
1302
  {
1303
- include: "#expression-body"
1303
+ include: '#expression-body'
1304
1304
  }
1305
1305
  {
1306
- include: "#block"
1306
+ include: '#block'
1307
1307
  }
1308
1308
  {
1309
- include: "#punctuation-semicolon"
1309
+ include: '#punctuation-semicolon'
1310
1310
  }
1311
1311
  ]
1312
- "method-declaration":
1312
+ 'method-declaration':
1313
1313
  begin: '''
1314
1314
  (?x)
1315
1315
  (?<return_type>
@@ -1335,236 +1335,236 @@ repository:
1335
1335
  (?=\\()
1336
1336
  '''
1337
1337
  beginCaptures:
1338
- "1":
1338
+ '1':
1339
1339
  patterns: [
1340
1340
  {
1341
- include: "#support-type"
1341
+ include: '#support-type'
1342
1342
  }
1343
1343
  {
1344
- include: "#type"
1344
+ include: '#type'
1345
1345
  }
1346
1346
  ]
1347
- "6":
1347
+ '6':
1348
1348
  patterns: [
1349
1349
  {
1350
- include: "#type"
1350
+ include: '#type'
1351
1351
  }
1352
1352
  {
1353
- include: "#punctuation-accessor"
1353
+ include: '#punctuation-accessor'
1354
1354
  }
1355
1355
  ]
1356
- "7":
1356
+ '7':
1357
1357
  patterns: [
1358
1358
  {
1359
- include: "#support-type"
1359
+ include: '#support-type'
1360
1360
  }
1361
1361
  {
1362
- include: "#method-name-custom"
1362
+ include: '#method-name-custom'
1363
1363
  }
1364
1364
  ]
1365
- "8":
1365
+ '8':
1366
1366
  patterns: [
1367
1367
  {
1368
- include: "#type-parameter-list"
1368
+ include: '#type-parameter-list'
1369
1369
  }
1370
1370
  ]
1371
- end: "(?<=\\})|(?=;)"
1371
+ end: '(?<=\\})|(?=;)'
1372
1372
  patterns: [
1373
1373
  {
1374
- include: "#comment"
1374
+ include: '#comment'
1375
1375
  }
1376
1376
  {
1377
- include: "#parenthesized-parameter-list"
1377
+ include: '#parenthesized-parameter-list'
1378
1378
  }
1379
1379
  {
1380
- include: "#expression-body"
1380
+ include: '#expression-body'
1381
1381
  }
1382
1382
  {
1383
- include: "#block"
1383
+ include: '#block'
1384
1384
  }
1385
1385
  ]
1386
- "method-name-custom":
1387
- name: "entity.name.function.apex"
1388
- match: "@?[_[:alpha:]][_[:alnum:]]*"
1389
- "constructor-declaration":
1390
- begin: "(?=@?[_[:alpha:]][_[:alnum:]]*\\s*\\()"
1391
- end: "(?<=\\})|(?=;)"
1386
+ 'method-name-custom':
1387
+ name: 'entity.name.function.apex'
1388
+ match: '@?[_[:alpha:]][_[:alnum:]]*'
1389
+ 'constructor-declaration':
1390
+ begin: '(?=@?[_[:alpha:]][_[:alnum:]]*\\s*\\()'
1391
+ end: '(?<=\\})|(?=;)'
1392
1392
  patterns: [
1393
1393
  {
1394
- match: "(@?[_[:alpha:]][_[:alnum:]]*)\\b"
1394
+ match: '(@?[_[:alpha:]][_[:alnum:]]*)\\b'
1395
1395
  captures:
1396
- "1":
1397
- name: "entity.name.function.apex"
1396
+ '1':
1397
+ name: 'entity.name.function.apex'
1398
1398
  }
1399
1399
  {
1400
- begin: "(:)"
1400
+ begin: '(:)'
1401
1401
  beginCaptures:
1402
- "1":
1403
- name: "punctuation.separator.colon.apex"
1404
- end: "(?=\\{|=>)"
1402
+ '1':
1403
+ name: 'punctuation.separator.colon.apex'
1404
+ end: '(?=\\{|=>)'
1405
1405
  patterns: [
1406
1406
  {
1407
- include: "#constructor-initializer"
1407
+ include: '#constructor-initializer'
1408
1408
  }
1409
1409
  ]
1410
1410
  }
1411
1411
  {
1412
- include: "#parenthesized-parameter-list"
1412
+ include: '#parenthesized-parameter-list'
1413
1413
  }
1414
1414
  {
1415
- include: "#comment"
1415
+ include: '#comment'
1416
1416
  }
1417
1417
  {
1418
- include: "#expression-body"
1418
+ include: '#expression-body'
1419
1419
  }
1420
1420
  {
1421
- include: "#block"
1421
+ include: '#block'
1422
1422
  }
1423
1423
  ]
1424
- "constructor-initializer":
1425
- begin: "\\b(?:(this))\\b\\s*(?=\\()"
1424
+ 'constructor-initializer':
1425
+ begin: '\\b(?:(this))\\b\\s*(?=\\()'
1426
1426
  beginCaptures:
1427
- "1":
1428
- name: "keyword.other.this.apex"
1429
- end: "(?<=\\))"
1427
+ '1':
1428
+ name: 'keyword.other.this.apex'
1429
+ end: '(?<=\\))'
1430
1430
  patterns: [
1431
1431
  {
1432
- include: "#argument-list"
1432
+ include: '#argument-list'
1433
1433
  }
1434
1434
  ]
1435
1435
  block:
1436
- begin: "\\{"
1436
+ begin: '\\{'
1437
1437
  beginCaptures:
1438
- "0":
1439
- name: "punctuation.curlybrace.open.apex"
1440
- end: "\\}"
1438
+ '0':
1439
+ name: 'punctuation.curlybrace.open.apex'
1440
+ end: '\\}'
1441
1441
  endCaptures:
1442
- "0":
1443
- name: "punctuation.curlybrace.close.apex"
1442
+ '0':
1443
+ name: 'punctuation.curlybrace.close.apex'
1444
1444
  patterns: [
1445
1445
  {
1446
- include: "#statement"
1446
+ include: '#statement'
1447
1447
  }
1448
1448
  ]
1449
- "variable-initializer":
1450
- begin: "(?<!=|!)(=)(?!=|>)"
1449
+ 'variable-initializer':
1450
+ begin: '(?<!=|!)(=)(?!=|>)'
1451
1451
  beginCaptures:
1452
- "1":
1453
- name: "keyword.operator.assignment.apex"
1454
- end: "(?=[,\\)\\];}])"
1452
+ '1':
1453
+ name: 'keyword.operator.assignment.apex'
1454
+ end: '(?=[,\\)\\];}])'
1455
1455
  patterns: [
1456
1456
  {
1457
- include: "#expression"
1457
+ include: '#expression'
1458
1458
  }
1459
1459
  ]
1460
- "expression-body":
1461
- begin: "=>"
1460
+ 'expression-body':
1461
+ begin: '=>'
1462
1462
  beginCaptures:
1463
- "0":
1464
- name: "keyword.operator.arrow.apex"
1465
- end: "(?=[,\\);}])"
1463
+ '0':
1464
+ name: 'keyword.operator.arrow.apex'
1465
+ end: '(?=[,\\);}])'
1466
1466
  patterns: [
1467
1467
  {
1468
- include: "#expression"
1468
+ include: '#expression'
1469
1469
  }
1470
1470
  ]
1471
- "goto-statement":
1472
- begin: "(?<!\\.)\\b(goto)\\b"
1471
+ 'goto-statement':
1472
+ begin: '(?<!\\.)\\b(goto)\\b'
1473
1473
  beginCaptures:
1474
- "1":
1475
- name: "keyword.control.goto.apex"
1476
- end: "(?=;)"
1474
+ '1':
1475
+ name: 'keyword.control.goto.apex'
1476
+ end: '(?=;)'
1477
1477
  patterns: [
1478
1478
  {
1479
- begin: "\\b(case)\\b"
1479
+ begin: '\\b(case)\\b'
1480
1480
  beginCaptures:
1481
- "1":
1482
- name: "keyword.control.case.apex"
1483
- end: "(?=;)"
1481
+ '1':
1482
+ name: 'keyword.control.case.apex'
1483
+ end: '(?=;)'
1484
1484
  patterns: [
1485
1485
  {
1486
- include: "#expression"
1486
+ include: '#expression'
1487
1487
  }
1488
1488
  ]
1489
1489
  }
1490
1490
  {
1491
- match: "\\b(default)\\b"
1491
+ match: '\\b(default)\\b'
1492
1492
  captures:
1493
- "1":
1494
- name: "keyword.control.default.apex"
1493
+ '1':
1494
+ name: 'keyword.control.default.apex'
1495
1495
  }
1496
1496
  {
1497
- name: "entity.name.label.apex"
1498
- match: "@?[_[:alpha:]][_[:alnum:]]*"
1497
+ name: 'entity.name.label.apex'
1498
+ match: '@?[_[:alpha:]][_[:alnum:]]*'
1499
1499
  }
1500
1500
  ]
1501
- "return-statement":
1502
- begin: "(?<!\\.)\\b(return)\\b"
1501
+ 'return-statement':
1502
+ begin: '(?<!\\.)\\b(return)\\b'
1503
1503
  beginCaptures:
1504
- "1":
1505
- name: "keyword.control.flow.return.apex"
1506
- end: "(?=;)"
1504
+ '1':
1505
+ name: 'keyword.control.flow.return.apex'
1506
+ end: '(?=;)'
1507
1507
  patterns: [
1508
1508
  {
1509
- include: "#expression"
1509
+ include: '#expression'
1510
1510
  }
1511
1511
  ]
1512
- "break-or-continue-statement":
1513
- match: "(?<!\\.)\\b(?:(break)|(continue))\\b"
1512
+ 'break-or-continue-statement':
1513
+ match: '(?<!\\.)\\b(?:(break)|(continue))\\b'
1514
1514
  captures:
1515
- "1":
1516
- name: "keyword.control.flow.break.apex"
1517
- "2":
1518
- name: "keyword.control.flow.continue.apex"
1519
- "throw-statement":
1520
- begin: "(?<!\\.)\\b(throw)\\b"
1515
+ '1':
1516
+ name: 'keyword.control.flow.break.apex'
1517
+ '2':
1518
+ name: 'keyword.control.flow.continue.apex'
1519
+ 'throw-statement':
1520
+ begin: '(?<!\\.)\\b(throw)\\b'
1521
1521
  beginCaptures:
1522
- "1":
1523
- name: "keyword.control.flow.throw.apex"
1524
- end: "(?=;)"
1522
+ '1':
1523
+ name: 'keyword.control.flow.throw.apex'
1524
+ end: '(?=;)'
1525
1525
  patterns: [
1526
1526
  {
1527
- include: "#expression"
1527
+ include: '#expression'
1528
1528
  }
1529
1529
  ]
1530
- "if-statement":
1531
- begin: "(?<!\\.)\\b(if)\\b\\s*(?=\\()"
1530
+ 'if-statement':
1531
+ begin: '(?<!\\.)\\b(if)\\b\\s*(?=\\()'
1532
1532
  beginCaptures:
1533
- "1":
1534
- name: "keyword.control.conditional.if.apex"
1535
- end: "(?<=\\})|(?=;)"
1533
+ '1':
1534
+ name: 'keyword.control.conditional.if.apex'
1535
+ end: '(?<=\\})|(?=;)'
1536
1536
  patterns: [
1537
1537
  {
1538
- begin: "\\("
1538
+ begin: '\\('
1539
1539
  beginCaptures:
1540
- "0":
1541
- name: "punctuation.parenthesis.open.apex"
1542
- end: "\\)"
1540
+ '0':
1541
+ name: 'punctuation.parenthesis.open.apex'
1542
+ end: '\\)'
1543
1543
  endCaptures:
1544
- "0":
1545
- name: "punctuation.parenthesis.close.apex"
1544
+ '0':
1545
+ name: 'punctuation.parenthesis.close.apex'
1546
1546
  patterns: [
1547
1547
  {
1548
- include: "#expression"
1548
+ include: '#expression'
1549
1549
  }
1550
1550
  ]
1551
1551
  }
1552
1552
  {
1553
- include: "#statement"
1553
+ include: '#statement'
1554
1554
  }
1555
1555
  ]
1556
- "else-part":
1557
- begin: "(?<!\\.)\\b(else)\\b"
1556
+ 'else-part':
1557
+ begin: '(?<!\\.)\\b(else)\\b'
1558
1558
  beginCaptures:
1559
- "1":
1560
- name: "keyword.control.conditional.else.apex"
1561
- end: "(?<=\\})|(?=;)"
1559
+ '1':
1560
+ name: 'keyword.control.conditional.else.apex'
1561
+ end: '(?<=\\})|(?=;)'
1562
1562
  patterns: [
1563
1563
  {
1564
- include: "#statement"
1564
+ include: '#statement'
1565
1565
  }
1566
1566
  ]
1567
- "switch-statement":
1567
+ 'switch-statement':
1568
1568
  begin: '''
1569
1569
  (?x)
1570
1570
  (switch)\\b\\s+
@@ -1573,308 +1573,308 @@ repository:
1573
1573
  (\\{)
1574
1574
  '''
1575
1575
  beginCaptures:
1576
- "1":
1577
- name: "keyword.control.switch.apex"
1578
- "2":
1579
- name: "keyword.control.switch.on.apex"
1580
- "3":
1576
+ '1':
1577
+ name: 'keyword.control.switch.apex'
1578
+ '2':
1579
+ name: 'keyword.control.switch.on.apex'
1580
+ '3':
1581
1581
  patterns: [
1582
1582
  {
1583
- include: "#statement"
1583
+ include: '#statement'
1584
1584
  }
1585
1585
  {
1586
- include: "#parenthesized-expression"
1586
+ include: '#parenthesized-expression'
1587
1587
  }
1588
1588
  ]
1589
- "4":
1590
- name: "punctuation.curlybrace.open.apex"
1591
- end: "(\\})"
1589
+ '4':
1590
+ name: 'punctuation.curlybrace.open.apex'
1591
+ end: '(\\})'
1592
1592
  endCaptures:
1593
- "0":
1594
- name: "punctuation.curlybrace.close.apex"
1593
+ '0':
1594
+ name: 'punctuation.curlybrace.close.apex'
1595
1595
  patterns: [
1596
1596
  {
1597
- include: "#when-string"
1597
+ include: '#when-string'
1598
1598
  }
1599
1599
  {
1600
- include: "#when-else-statement"
1600
+ include: '#when-else-statement'
1601
1601
  }
1602
1602
  {
1603
- include: "#when-sobject-statement"
1603
+ include: '#when-sobject-statement'
1604
1604
  }
1605
1605
  {
1606
- include: "#when-statement"
1606
+ include: '#when-statement'
1607
1607
  }
1608
1608
  {
1609
- include: "#when-multiple-statement"
1609
+ include: '#when-multiple-statement'
1610
1610
  }
1611
1611
  {
1612
- include: "#expression"
1612
+ include: '#expression'
1613
1613
  }
1614
1614
  {
1615
- include: "#punctuation-comma"
1615
+ include: '#punctuation-comma'
1616
1616
  }
1617
1617
  {
1618
- include: "#punctuation-semicolon"
1618
+ include: '#punctuation-semicolon'
1619
1619
  }
1620
1620
  ]
1621
- "when-statement":
1621
+ 'when-statement':
1622
1622
  begin: "(when)\\b\\s+([\\'_\\-[:alnum:]]+)\\s*"
1623
1623
  beginCaptures:
1624
- "1":
1625
- name: "keyword.control.switch.when.apex"
1626
- "2":
1624
+ '1':
1625
+ name: 'keyword.control.switch.when.apex'
1626
+ '2':
1627
1627
  patterns: [
1628
1628
  {
1629
- include: "#expression"
1629
+ include: '#expression'
1630
1630
  }
1631
1631
  ]
1632
- end: "(?<=\\})"
1632
+ end: '(?<=\\})'
1633
1633
  patterns: [
1634
1634
  {
1635
- include: "#block"
1635
+ include: '#block'
1636
1636
  }
1637
1637
  {
1638
- include: "#expression"
1638
+ include: '#expression'
1639
1639
  }
1640
1640
  ]
1641
- "when-string":
1641
+ 'when-string':
1642
1642
  begin: "(when)(\\b\\s*)((\\')[_.\\,\\'\\s*[:alnum:]]+)"
1643
1643
  beginCaptures:
1644
- "1":
1645
- name: "keyword.control.switch.when.apex"
1646
- "2":
1647
- name: "punctuation.whitespace.apex"
1648
- "3":
1644
+ '1':
1645
+ name: 'keyword.control.switch.when.apex'
1646
+ '2':
1647
+ name: 'punctuation.whitespace.apex'
1648
+ '3':
1649
1649
  patterns: [
1650
1650
  {
1651
- include: "#when-string-statement"
1651
+ include: '#when-string-statement'
1652
1652
  }
1653
1653
  {
1654
- include: "#punctuation-comma"
1654
+ include: '#punctuation-comma'
1655
1655
  }
1656
1656
  ]
1657
- end: "(?<=\\})"
1657
+ end: '(?<=\\})'
1658
1658
  patterns: [
1659
1659
  {
1660
- include: "#block"
1660
+ include: '#block'
1661
1661
  }
1662
1662
  {
1663
- include: "#expression"
1663
+ include: '#expression'
1664
1664
  }
1665
1665
  ]
1666
- "when-string-statement":
1666
+ 'when-string-statement':
1667
1667
  patterns: [
1668
1668
  {
1669
- name: "string.quoted.single.apex"
1669
+ name: 'string.quoted.single.apex'
1670
1670
  begin: "\\'"
1671
1671
  beginCaptures:
1672
- "0":
1673
- name: "punctuation.definition.string.begin.apex"
1672
+ '0':
1673
+ name: 'punctuation.definition.string.begin.apex'
1674
1674
  end: "\\'"
1675
1675
  endCaptures:
1676
- "0":
1677
- name: "punctuation.definition.string.end.apex"
1676
+ '0':
1677
+ name: 'punctuation.definition.string.end.apex'
1678
1678
  }
1679
1679
  ]
1680
- "when-else-statement":
1681
- begin: "(when)\\b\\s+(else)\\b\\s*"
1680
+ 'when-else-statement':
1681
+ begin: '(when)\\b\\s+(else)\\b\\s*'
1682
1682
  beginCaptures:
1683
- "1":
1684
- name: "keyword.control.switch.when.apex"
1685
- "2":
1686
- name: "keyword.control.switch.else.apex"
1687
- end: "(?<=\\})"
1683
+ '1':
1684
+ name: 'keyword.control.switch.when.apex'
1685
+ '2':
1686
+ name: 'keyword.control.switch.else.apex'
1687
+ end: '(?<=\\})'
1688
1688
  patterns: [
1689
1689
  {
1690
- include: "#block"
1690
+ include: '#block'
1691
1691
  }
1692
1692
  {
1693
- include: "#expression"
1693
+ include: '#expression'
1694
1694
  }
1695
1695
  ]
1696
- "when-multiple-statement":
1697
- begin: "(when)\\b\\s*"
1696
+ 'when-multiple-statement':
1697
+ begin: '(when)\\b\\s*'
1698
1698
  beginCaptures:
1699
- "1":
1700
- name: "keyword.control.switch.when.apex"
1701
- end: "(?<=\\})"
1699
+ '1':
1700
+ name: 'keyword.control.switch.when.apex'
1701
+ end: '(?<=\\})'
1702
1702
  patterns: [
1703
1703
  {
1704
- include: "#block"
1704
+ include: '#block'
1705
1705
  }
1706
1706
  {
1707
- include: "#expression"
1707
+ include: '#expression'
1708
1708
  }
1709
1709
  ]
1710
- "when-sobject-statement":
1711
- begin: "(when)\\b\\s+([_[:alnum:]]+)\\s+([_[:alnum:]]+)\\s*"
1710
+ 'when-sobject-statement':
1711
+ begin: '(when)\\b\\s+([_[:alnum:]]+)\\s+([_[:alnum:]]+)\\s*'
1712
1712
  beginCaptures:
1713
- "1":
1714
- name: "keyword.control.switch.when.apex"
1715
- "2":
1716
- name: "storage.type.apex"
1717
- "3":
1718
- name: "entity.name.variable.local.apex"
1719
- end: "(?<=\\})"
1713
+ '1':
1714
+ name: 'keyword.control.switch.when.apex'
1715
+ '2':
1716
+ name: 'storage.type.apex'
1717
+ '3':
1718
+ name: 'entity.name.variable.local.apex'
1719
+ end: '(?<=\\})'
1720
1720
  patterns: [
1721
1721
  {
1722
- include: "#block"
1722
+ include: '#block'
1723
1723
  }
1724
1724
  {
1725
- include: "#expression"
1725
+ include: '#expression'
1726
1726
  }
1727
1727
  ]
1728
- "do-statement":
1729
- begin: "(?<!\\.)\\b(do)\\b"
1728
+ 'do-statement':
1729
+ begin: '(?<!\\.)\\b(do)\\b'
1730
1730
  beginCaptures:
1731
- "1":
1732
- name: "keyword.control.loop.do.apex"
1733
- end: "(?=;|})"
1731
+ '1':
1732
+ name: 'keyword.control.loop.do.apex'
1733
+ end: '(?=;|})'
1734
1734
  patterns: [
1735
1735
  {
1736
- include: "#statement"
1736
+ include: '#statement'
1737
1737
  }
1738
1738
  ]
1739
- "while-statement":
1740
- begin: "(?<!\\.)\\b(while)\\b\\s*(?=\\()"
1739
+ 'while-statement':
1740
+ begin: '(?<!\\.)\\b(while)\\b\\s*(?=\\()'
1741
1741
  beginCaptures:
1742
- "1":
1743
- name: "keyword.control.loop.while.apex"
1744
- end: "(?<=\\})|(?=;)"
1742
+ '1':
1743
+ name: 'keyword.control.loop.while.apex'
1744
+ end: '(?<=\\})|(?=;)'
1745
1745
  patterns: [
1746
1746
  {
1747
- begin: "\\("
1747
+ begin: '\\('
1748
1748
  beginCaptures:
1749
- "0":
1750
- name: "punctuation.parenthesis.open.apex"
1751
- end: "\\)"
1749
+ '0':
1750
+ name: 'punctuation.parenthesis.open.apex'
1751
+ end: '\\)'
1752
1752
  endCaptures:
1753
- "0":
1754
- name: "punctuation.parenthesis.close.apex"
1753
+ '0':
1754
+ name: 'punctuation.parenthesis.close.apex'
1755
1755
  patterns: [
1756
1756
  {
1757
- include: "#expression"
1757
+ include: '#expression'
1758
1758
  }
1759
1759
  ]
1760
1760
  }
1761
1761
  {
1762
- include: "#statement"
1762
+ include: '#statement'
1763
1763
  }
1764
1764
  ]
1765
- "for-statement":
1766
- begin: "(?<!\\.)\\b(for)\\b\\s*(?=\\()"
1765
+ 'for-statement':
1766
+ begin: '(?<!\\.)\\b(for)\\b\\s*(?=\\()'
1767
1767
  beginCaptures:
1768
- "1":
1769
- name: "keyword.control.loop.for.apex"
1770
- end: "(?<=\\})|(?=;)"
1768
+ '1':
1769
+ name: 'keyword.control.loop.for.apex'
1770
+ end: '(?<=\\})|(?=;)'
1771
1771
  patterns: [
1772
1772
  {
1773
- begin: "\\("
1773
+ begin: '\\('
1774
1774
  beginCaptures:
1775
- "0":
1776
- name: "punctuation.parenthesis.open.apex"
1777
- end: "\\)"
1775
+ '0':
1776
+ name: 'punctuation.parenthesis.open.apex'
1777
+ end: '\\)'
1778
1778
  endCaptures:
1779
- "0":
1780
- name: "punctuation.parenthesis.close.apex"
1779
+ '0':
1780
+ name: 'punctuation.parenthesis.close.apex'
1781
1781
  patterns: [
1782
1782
  {
1783
- include: "#for-apex-syntax"
1783
+ include: '#for-apex-syntax'
1784
1784
  }
1785
1785
  {
1786
- include: "#local-variable-declaration"
1786
+ include: '#local-variable-declaration'
1787
1787
  }
1788
1788
  {
1789
- include: "#expression"
1789
+ include: '#expression'
1790
1790
  }
1791
1791
  {
1792
- include: "#punctuation-comma"
1792
+ include: '#punctuation-comma'
1793
1793
  }
1794
1794
  {
1795
- include: "#punctuation-semicolon"
1795
+ include: '#punctuation-semicolon'
1796
1796
  }
1797
1797
  {
1798
- include: "#colon-expression"
1798
+ include: '#colon-expression'
1799
1799
  }
1800
1800
  ]
1801
1801
  }
1802
1802
  {
1803
- include: "#statement"
1803
+ include: '#statement'
1804
1804
  }
1805
1805
  ]
1806
- "for-apex-syntax":
1807
- match: "([_.[:alpha:]][_.[:alnum:]]+)\\s+([_.[:alpha:]][_.[:alnum:]]*)\\s*(\\:)"
1806
+ 'for-apex-syntax':
1807
+ match: '([_.[:alpha:]][_.[:alnum:]]+)\\s+([_.[:alpha:]][_.[:alnum:]]*)\\s*(\\:)'
1808
1808
  captures:
1809
- "1":
1809
+ '1':
1810
1810
  patterns: [
1811
1811
  {
1812
- include: "#support-type"
1812
+ include: '#support-type'
1813
1813
  }
1814
1814
  {
1815
- include: "#type"
1815
+ include: '#type'
1816
1816
  }
1817
1817
  ]
1818
- "2":
1819
- name: "entity.name.variable.local.apex"
1820
- "3":
1821
- name: "keyword.operator.iterator.colon.apex"
1822
- "try-statement":
1818
+ '2':
1819
+ name: 'entity.name.variable.local.apex'
1820
+ '3':
1821
+ name: 'keyword.operator.iterator.colon.apex'
1822
+ 'try-statement':
1823
1823
  patterns: [
1824
1824
  {
1825
- include: "#try-block"
1825
+ include: '#try-block'
1826
1826
  }
1827
1827
  {
1828
- include: "#catch-clause"
1828
+ include: '#catch-clause'
1829
1829
  }
1830
1830
  {
1831
- include: "#finally-clause"
1831
+ include: '#finally-clause'
1832
1832
  }
1833
1833
  ]
1834
- "try-block":
1835
- begin: "(?<!\\.)\\b(try)\\b"
1834
+ 'try-block':
1835
+ begin: '(?<!\\.)\\b(try)\\b'
1836
1836
  beginCaptures:
1837
- "1":
1838
- name: "keyword.control.try.apex"
1839
- end: "(?<=\\})"
1837
+ '1':
1838
+ name: 'keyword.control.try.apex'
1839
+ end: '(?<=\\})'
1840
1840
  patterns: [
1841
1841
  {
1842
- include: "#comment"
1842
+ include: '#comment'
1843
1843
  }
1844
1844
  {
1845
- include: "#block"
1845
+ include: '#block'
1846
1846
  }
1847
1847
  ]
1848
- "finally-clause":
1849
- begin: "(?<!\\.)\\b(finally)\\b"
1848
+ 'finally-clause':
1849
+ begin: '(?<!\\.)\\b(finally)\\b'
1850
1850
  beginCaptures:
1851
- "1":
1852
- name: "keyword.control.try.finally.apex"
1853
- end: "(?<=\\})"
1851
+ '1':
1852
+ name: 'keyword.control.try.finally.apex'
1853
+ end: '(?<=\\})'
1854
1854
  patterns: [
1855
1855
  {
1856
- include: "#comment"
1856
+ include: '#comment'
1857
1857
  }
1858
1858
  {
1859
- include: "#block"
1859
+ include: '#block'
1860
1860
  }
1861
1861
  ]
1862
- "catch-clause":
1863
- begin: "(?<!\\.)\\b(catch)\\b"
1862
+ 'catch-clause':
1863
+ begin: '(?<!\\.)\\b(catch)\\b'
1864
1864
  beginCaptures:
1865
- "1":
1866
- name: "keyword.control.try.catch.apex"
1867
- end: "(?<=\\})"
1865
+ '1':
1866
+ name: 'keyword.control.try.catch.apex'
1867
+ end: '(?<=\\})'
1868
1868
  patterns: [
1869
1869
  {
1870
- begin: "\\("
1870
+ begin: '\\('
1871
1871
  beginCaptures:
1872
- "0":
1873
- name: "punctuation.parenthesis.open.apex"
1874
- end: "\\)"
1872
+ '0':
1873
+ name: 'punctuation.parenthesis.open.apex'
1874
+ end: '\\)'
1875
1875
  endCaptures:
1876
- "0":
1877
- name: "punctuation.parenthesis.close.apex"
1876
+ '0':
1877
+ name: 'punctuation.parenthesis.close.apex'
1878
1878
  patterns: [
1879
1879
  {
1880
1880
  match: '''
@@ -1896,37 +1896,37 @@ repository:
1896
1896
  (?:(\\g<identifier>)\\b)?
1897
1897
  '''
1898
1898
  captures:
1899
- "1":
1899
+ '1':
1900
1900
  patterns: [
1901
1901
  {
1902
- include: "#support-type"
1902
+ include: '#support-type'
1903
1903
  }
1904
1904
  {
1905
- include: "#type"
1905
+ include: '#type'
1906
1906
  }
1907
1907
  ]
1908
- "5":
1909
- name: "entity.name.variable.local.apex"
1908
+ '5':
1909
+ name: 'entity.name.variable.local.apex'
1910
1910
  }
1911
1911
  ]
1912
1912
  }
1913
1913
  {
1914
- include: "#comment"
1914
+ include: '#comment'
1915
1915
  }
1916
1916
  {
1917
- include: "#block"
1917
+ include: '#block'
1918
1918
  }
1919
1919
  ]
1920
- "local-declaration":
1920
+ 'local-declaration':
1921
1921
  patterns: [
1922
1922
  {
1923
- include: "#local-constant-declaration"
1923
+ include: '#local-constant-declaration'
1924
1924
  }
1925
1925
  {
1926
- include: "#local-variable-declaration"
1926
+ include: '#local-variable-declaration'
1927
1927
  }
1928
1928
  ]
1929
- "local-variable-declaration":
1929
+ 'local-variable-declaration':
1930
1930
  begin: '''
1931
1931
  (?x)
1932
1932
  (?:
@@ -1951,38 +1951,38 @@ repository:
1951
1951
  (?=,|;|=|\\))
1952
1952
  '''
1953
1953
  beginCaptures:
1954
- "1":
1955
- name: "storage.modifier.apex"
1956
- "2":
1957
- name: "keyword.other.var.apex"
1958
- "3":
1954
+ '1':
1955
+ name: 'storage.modifier.apex'
1956
+ '2':
1957
+ name: 'keyword.other.var.apex'
1958
+ '3':
1959
1959
  patterns: [
1960
1960
  {
1961
- include: "#support-type"
1961
+ include: '#support-type'
1962
1962
  }
1963
1963
  {
1964
- include: "#type"
1964
+ include: '#type'
1965
1965
  }
1966
1966
  ]
1967
- "7":
1968
- name: "entity.name.variable.local.apex"
1969
- end: "(?=;|\\))"
1967
+ '7':
1968
+ name: 'entity.name.variable.local.apex'
1969
+ end: '(?=;|\\))'
1970
1970
  patterns: [
1971
1971
  {
1972
- name: "entity.name.variable.local.apex"
1973
- match: "@?[_[:alpha:]][_[:alnum:]]*"
1972
+ name: 'entity.name.variable.local.apex'
1973
+ match: '@?[_[:alpha:]][_[:alnum:]]*'
1974
1974
  }
1975
1975
  {
1976
- include: "#punctuation-comma"
1976
+ include: '#punctuation-comma'
1977
1977
  }
1978
1978
  {
1979
- include: "#comment"
1979
+ include: '#comment'
1980
1980
  }
1981
1981
  {
1982
- include: "#variable-initializer"
1982
+ include: '#variable-initializer'
1983
1983
  }
1984
1984
  ]
1985
- "local-constant-declaration":
1985
+ 'local-constant-declaration':
1986
1986
  begin: '''
1987
1987
  (?x)
1988
1988
  (?<const_keyword>\\b(?:const)\\b)\\s*
@@ -2004,224 +2004,224 @@ repository:
2004
2004
  (?=,|;|=)
2005
2005
  '''
2006
2006
  beginCaptures:
2007
- "1":
2008
- name: "storage.modifier.apex"
2009
- "2":
2007
+ '1':
2008
+ name: 'storage.modifier.apex'
2009
+ '2':
2010
2010
  patterns: [
2011
2011
  {
2012
- include: "#type"
2012
+ include: '#type'
2013
2013
  }
2014
2014
  ]
2015
- "6":
2016
- name: "entity.name.variable.local.apex"
2017
- end: "(?=;)"
2015
+ '6':
2016
+ name: 'entity.name.variable.local.apex'
2017
+ end: '(?=;)'
2018
2018
  patterns: [
2019
2019
  {
2020
- name: "entity.name.variable.local.apex"
2021
- match: "@?[_[:alpha:]][_[:alnum:]]*"
2020
+ name: 'entity.name.variable.local.apex'
2021
+ match: '@?[_[:alpha:]][_[:alnum:]]*'
2022
2022
  }
2023
2023
  {
2024
- include: "#punctuation-comma"
2024
+ include: '#punctuation-comma'
2025
2025
  }
2026
2026
  {
2027
- include: "#comment"
2027
+ include: '#comment'
2028
2028
  }
2029
2029
  {
2030
- include: "#variable-initializer"
2030
+ include: '#variable-initializer'
2031
2031
  }
2032
2032
  ]
2033
- "throw-expression":
2034
- match: "(?<!\\.)\\b(throw)\\b"
2033
+ 'throw-expression':
2034
+ match: '(?<!\\.)\\b(throw)\\b'
2035
2035
  captures:
2036
- "1":
2037
- name: "keyword.control.flow.throw.apex"
2036
+ '1':
2037
+ name: 'keyword.control.flow.throw.apex'
2038
2038
  literal:
2039
2039
  patterns: [
2040
2040
  {
2041
- include: "#boolean-literal"
2041
+ include: '#boolean-literal'
2042
2042
  }
2043
2043
  {
2044
- include: "#null-literal"
2044
+ include: '#null-literal'
2045
2045
  }
2046
2046
  {
2047
- include: "#numeric-literal"
2047
+ include: '#numeric-literal'
2048
2048
  }
2049
2049
  {
2050
- include: "#string-literal"
2050
+ include: '#string-literal'
2051
2051
  }
2052
2052
  ]
2053
- "boolean-literal":
2053
+ 'boolean-literal':
2054
2054
  patterns: [
2055
2055
  {
2056
- name: "constant.language.boolean.true.apex"
2057
- match: "(?<!\\.)\\btrue\\b"
2056
+ name: 'constant.language.boolean.true.apex'
2057
+ match: '(?<!\\.)\\btrue\\b'
2058
2058
  }
2059
2059
  {
2060
- name: "constant.language.boolean.false.apex"
2061
- match: "(?<!\\.)\\bfalse\\b"
2060
+ name: 'constant.language.boolean.false.apex'
2061
+ match: '(?<!\\.)\\bfalse\\b'
2062
2062
  }
2063
2063
  ]
2064
- "null-literal":
2065
- name: "constant.language.null.apex"
2066
- match: "(?<!\\.)\\bnull\\b"
2067
- "numeric-literal":
2064
+ 'null-literal':
2065
+ name: 'constant.language.null.apex'
2066
+ match: '(?<!\\.)\\bnull\\b'
2067
+ 'numeric-literal':
2068
2068
  patterns: [
2069
2069
  {
2070
- name: "constant.numeric.datetime.apex"
2071
- match: "\\b(\\d{4}\\-\\d{2}\\-\\d{2}T\\d{2}\\:\\d{2}\\:\\d{2}(\\.\\d{1,3})?(\\-|\\+)\\d{2}\\:\\d{2})\\b"
2070
+ name: 'constant.numeric.datetime.apex'
2071
+ match: '\\b(\\d{4}\\-\\d{2}\\-\\d{2}T\\d{2}\\:\\d{2}\\:\\d{2}(\\.\\d{1,3})?(\\-|\\+)\\d{2}\\:\\d{2})\\b'
2072
2072
  }
2073
2073
  {
2074
- name: "constant.numeric.datetime.apex"
2075
- match: "\\b(\\d{4}\\-\\d{2}\\-\\d{2}T\\d{2}\\:\\d{2}\\:\\d{2}(\\.\\d{1,3})?(Z)?)\\b"
2074
+ name: 'constant.numeric.datetime.apex'
2075
+ match: '\\b(\\d{4}\\-\\d{2}\\-\\d{2}T\\d{2}\\:\\d{2}\\:\\d{2}(\\.\\d{1,3})?(Z)?)\\b'
2076
2076
  }
2077
2077
  {
2078
- name: "constant.numeric.date.apex"
2079
- match: "\\b(\\d{4}\\-\\d{2}\\-\\d{2})\\b"
2078
+ name: 'constant.numeric.date.apex'
2079
+ match: '\\b(\\d{4}\\-\\d{2}\\-\\d{2})\\b'
2080
2080
  }
2081
2081
  {
2082
- name: "constant.numeric.hex.apex"
2083
- match: "\\b0(x|X)[0-9a-fA-F_]+(U|u|L|l|UL|Ul|uL|ul|LU|Lu|lU|lu)?\\b"
2082
+ name: 'constant.numeric.hex.apex'
2083
+ match: '\\b0(x|X)[0-9a-fA-F_]+(U|u|L|l|UL|Ul|uL|ul|LU|Lu|lU|lu)?\\b'
2084
2084
  }
2085
2085
  {
2086
- name: "constant.numeric.binary.apex"
2087
- match: "\\b0(b|B)[01_]+(U|u|L|l|UL|Ul|uL|ul|LU|Lu|lU|lu)?\\b"
2086
+ name: 'constant.numeric.binary.apex'
2087
+ match: '\\b0(b|B)[01_]+(U|u|L|l|UL|Ul|uL|ul|LU|Lu|lU|lu)?\\b'
2088
2088
  }
2089
2089
  {
2090
- name: "constant.numeric.decimal.apex"
2091
- match: "\\b([0-9_]+)?\\.[0-9_]+((e|E)[0-9]+)?(F|f|D|d|M|m)?\\b"
2090
+ name: 'constant.numeric.decimal.apex'
2091
+ match: '\\b([0-9_]+)?\\.[0-9_]+((e|E)[0-9]+)?(F|f|D|d|M|m)?\\b'
2092
2092
  }
2093
2093
  {
2094
- name: "constant.numeric.decimal.apex"
2095
- match: "\\b[0-9_]+(e|E)[0-9_]+(F|f|D|d|M|m)?\\b"
2094
+ name: 'constant.numeric.decimal.apex'
2095
+ match: '\\b[0-9_]+(e|E)[0-9_]+(F|f|D|d|M|m)?\\b'
2096
2096
  }
2097
2097
  {
2098
- name: "constant.numeric.decimal.apex"
2099
- match: "\\b[0-9_]+(F|f|D|d|M|m)\\b"
2098
+ name: 'constant.numeric.decimal.apex'
2099
+ match: '\\b[0-9_]+(F|f|D|d|M|m)\\b'
2100
2100
  }
2101
2101
  {
2102
- name: "constant.numeric.decimal.apex"
2103
- match: "\\b[0-9_]+(U|u|L|l|UL|Ul|uL|ul|LU|Lu|lU|lu)?\\b"
2102
+ name: 'constant.numeric.decimal.apex'
2103
+ match: '\\b[0-9_]+(U|u|L|l|UL|Ul|uL|ul|LU|Lu|lU|lu)?\\b'
2104
2104
  }
2105
2105
  ]
2106
- "string-literal":
2107
- name: "string.quoted.single.apex"
2106
+ 'string-literal':
2107
+ name: 'string.quoted.single.apex'
2108
2108
  begin: "'"
2109
2109
  beginCaptures:
2110
- "0":
2111
- name: "punctuation.definition.string.begin.apex"
2110
+ '0':
2111
+ name: 'punctuation.definition.string.begin.apex'
2112
2112
  end: "(\\')|((?:[^\\\\\\n])$)"
2113
2113
  endCaptures:
2114
- "1":
2115
- name: "punctuation.definition.string.end.apex"
2116
- "2":
2117
- name: "invalid.illegal.newline.apex"
2114
+ '1':
2115
+ name: 'punctuation.definition.string.end.apex'
2116
+ '2':
2117
+ name: 'invalid.illegal.newline.apex'
2118
2118
  patterns: [
2119
2119
  {
2120
- include: "#string-character-escape"
2120
+ include: '#string-character-escape'
2121
2121
  }
2122
2122
  ]
2123
- "string-character-escape":
2124
- name: "constant.character.escape.apex"
2125
- match: "\\\\."
2126
- "expression-operators":
2123
+ 'string-character-escape':
2124
+ name: 'constant.character.escape.apex'
2125
+ match: '\\\\.'
2126
+ 'expression-operators':
2127
2127
  patterns: [
2128
2128
  {
2129
- name: "keyword.operator.assignment.compound.apex"
2130
- match: "\\*=|/=|%=|\\+=|-="
2129
+ name: 'keyword.operator.assignment.compound.apex'
2130
+ match: '\\*=|/=|%=|\\+=|-='
2131
2131
  }
2132
2132
  {
2133
- name: "keyword.operator.assignment.compound.bitwise.apex"
2134
- match: "\\&=|\\^=|<<=|>>=|\\|="
2133
+ name: 'keyword.operator.assignment.compound.bitwise.apex'
2134
+ match: '\\&=|\\^=|<<=|>>=|\\|='
2135
2135
  }
2136
2136
  {
2137
- name: "keyword.operator.bitwise.shift.apex"
2138
- match: "<<|>>"
2137
+ name: 'keyword.operator.bitwise.shift.apex'
2138
+ match: '<<|>>'
2139
2139
  }
2140
2140
  {
2141
- name: "keyword.operator.comparison.apex"
2142
- match: "==|!="
2141
+ name: 'keyword.operator.comparison.apex'
2142
+ match: '==|!='
2143
2143
  }
2144
2144
  {
2145
- name: "keyword.operator.relational.apex"
2146
- match: "<=|>=|<|>"
2145
+ name: 'keyword.operator.relational.apex'
2146
+ match: '<=|>=|<|>'
2147
2147
  }
2148
2148
  {
2149
- name: "keyword.operator.logical.apex"
2150
- match: "\\!|&&|\\|\\|"
2149
+ name: 'keyword.operator.logical.apex'
2150
+ match: '\\!|&&|\\|\\|'
2151
2151
  }
2152
2152
  {
2153
- name: "keyword.operator.bitwise.apex"
2154
- match: "\\&|~|\\^|\\|"
2153
+ name: 'keyword.operator.bitwise.apex'
2154
+ match: '\\&|~|\\^|\\|'
2155
2155
  }
2156
2156
  {
2157
- name: "keyword.operator.assignment.apex"
2158
- match: "\\="
2157
+ name: 'keyword.operator.assignment.apex'
2158
+ match: '\\='
2159
2159
  }
2160
2160
  {
2161
- name: "keyword.operator.decrement.apex"
2162
- match: "--"
2161
+ name: 'keyword.operator.decrement.apex'
2162
+ match: '--'
2163
2163
  }
2164
2164
  {
2165
- name: "keyword.operator.increment.apex"
2166
- match: "\\+\\+"
2165
+ name: 'keyword.operator.increment.apex'
2166
+ match: '\\+\\+'
2167
2167
  }
2168
2168
  {
2169
- name: "keyword.operator.arithmetic.apex"
2170
- match: "%|\\*|/|-|\\+"
2169
+ name: 'keyword.operator.arithmetic.apex'
2170
+ match: '%|\\*|/|-|\\+'
2171
2171
  }
2172
2172
  ]
2173
- "conditional-operator":
2174
- begin: "(?<!\\?)\\?(?!\\?|\\.|\\[)"
2173
+ 'conditional-operator':
2174
+ begin: '(?<!\\?)\\?(?!\\?|\\.|\\[)'
2175
2175
  beginCaptures:
2176
- "0":
2177
- name: "keyword.operator.conditional.question-mark.apex"
2178
- end: ":"
2176
+ '0':
2177
+ name: 'keyword.operator.conditional.question-mark.apex'
2178
+ end: ':'
2179
2179
  endCaptures:
2180
- "0":
2181
- name: "keyword.operator.conditional.colon.apex"
2180
+ '0':
2181
+ name: 'keyword.operator.conditional.colon.apex'
2182
2182
  patterns: [
2183
2183
  {
2184
- include: "#expression"
2184
+ include: '#expression'
2185
2185
  }
2186
2186
  ]
2187
- "colon-expression":
2188
- name: "keyword.operator.conditional.colon.apex"
2189
- match: ":"
2190
- "parenthesized-expression":
2191
- begin: "\\("
2187
+ 'colon-expression':
2188
+ name: 'keyword.operator.conditional.colon.apex'
2189
+ match: ':'
2190
+ 'parenthesized-expression':
2191
+ begin: '\\('
2192
2192
  beginCaptures:
2193
- "0":
2194
- name: "punctuation.parenthesis.open.apex"
2195
- end: "\\)"
2193
+ '0':
2194
+ name: 'punctuation.parenthesis.open.apex'
2195
+ end: '\\)'
2196
2196
  endCaptures:
2197
- "0":
2198
- name: "punctuation.parenthesis.close.apex"
2197
+ '0':
2198
+ name: 'punctuation.parenthesis.close.apex'
2199
2199
  patterns: [
2200
2200
  {
2201
- include: "#expression"
2201
+ include: '#expression'
2202
2202
  }
2203
2203
  ]
2204
- "initializer-expression":
2205
- begin: "\\{"
2204
+ 'initializer-expression':
2205
+ begin: '\\{'
2206
2206
  beginCaptures:
2207
- "0":
2208
- name: "punctuation.curlybrace.open.apex"
2209
- end: "\\}"
2207
+ '0':
2208
+ name: 'punctuation.curlybrace.open.apex'
2209
+ end: '\\}'
2210
2210
  endCaptures:
2211
- "0":
2212
- name: "punctuation.curlybrace.close.apex"
2211
+ '0':
2212
+ name: 'punctuation.curlybrace.close.apex'
2213
2213
  patterns: [
2214
2214
  {
2215
- include: "#expression"
2215
+ include: '#expression'
2216
2216
  }
2217
2217
  {
2218
- include: "#punctuation-comma"
2218
+ include: '#punctuation-comma'
2219
2219
  }
2220
2220
  ]
2221
2221
  identifier:
2222
- name: "variable.other.readwrite.apex"
2223
- match: "@?[_[:alpha:]][_[:alnum:]]*"
2224
- "cast-expression":
2222
+ name: 'variable.other.readwrite.apex'
2223
+ match: '@?[_[:alpha:]][_[:alnum:]]*'
2224
+ 'cast-expression':
2225
2225
  match: '''
2226
2226
  (?x)
2227
2227
  (\\()\\s*
@@ -2242,25 +2242,25 @@ repository:
2242
2242
  (\\))(?=\\s*@?[_[:alnum:]\\(])
2243
2243
  '''
2244
2244
  captures:
2245
- "1":
2246
- name: "punctuation.parenthesis.open.apex"
2247
- "2":
2245
+ '1':
2246
+ name: 'punctuation.parenthesis.open.apex'
2247
+ '2':
2248
2248
  patterns: [
2249
2249
  {
2250
- include: "#support-type"
2250
+ include: '#support-type'
2251
2251
  }
2252
2252
  {
2253
- include: "#type"
2253
+ include: '#type'
2254
2254
  }
2255
2255
  ]
2256
- "6":
2257
- name: "punctuation.parenthesis.close.apex"
2258
- "this-expression":
2259
- match: "\\b(?:(this))\\b"
2256
+ '6':
2257
+ name: 'punctuation.parenthesis.close.apex'
2258
+ 'this-expression':
2259
+ match: '\\b(?:(this))\\b'
2260
2260
  captures:
2261
- "1":
2262
- name: "keyword.other.this.apex"
2263
- "invocation-expression":
2261
+ '1':
2262
+ name: 'keyword.other.this.apex'
2263
+ 'invocation-expression':
2264
2264
  begin: '''
2265
2265
  (?x)
2266
2266
  (?:(\\??\\.)\\s*)? # safe navigator or accessor
@@ -2269,30 +2269,30 @@ repository:
2269
2269
  (?=\\() # open paren of argument list
2270
2270
  '''
2271
2271
  beginCaptures:
2272
- "1":
2272
+ '1':
2273
2273
  patterns: [
2274
2274
  {
2275
- include: "#punctuation-accessor"
2275
+ include: '#punctuation-accessor'
2276
2276
  }
2277
2277
  {
2278
- include: "#operator-safe-navigation"
2278
+ include: '#operator-safe-navigation'
2279
2279
  }
2280
2280
  ]
2281
- "2":
2282
- name: "entity.name.function.apex"
2283
- "3":
2281
+ '2':
2282
+ name: 'entity.name.function.apex'
2283
+ '3':
2284
2284
  patterns: [
2285
2285
  {
2286
- include: "#type-arguments"
2286
+ include: '#type-arguments'
2287
2287
  }
2288
2288
  ]
2289
- end: "(?<=\\))"
2289
+ end: '(?<=\\))'
2290
2290
  patterns: [
2291
2291
  {
2292
- include: "#argument-list"
2292
+ include: '#argument-list'
2293
2293
  }
2294
2294
  ]
2295
- "element-access-expression":
2295
+ 'element-access-expression':
2296
2296
  begin: '''
2297
2297
  (?x)
2298
2298
  (?:(\\??\\.)\\s*)? # safe navigator or accessor
@@ -2301,26 +2301,26 @@ repository:
2301
2301
  (?=\\[) # open bracket of argument list
2302
2302
  '''
2303
2303
  beginCaptures:
2304
- "1":
2304
+ '1':
2305
2305
  patterns: [
2306
2306
  {
2307
- include: "#punctuation-accessor"
2307
+ include: '#punctuation-accessor'
2308
2308
  }
2309
2309
  {
2310
- include: "#operator-safe-navigation"
2310
+ include: '#operator-safe-navigation'
2311
2311
  }
2312
2312
  ]
2313
- "2":
2314
- name: "variable.other.object.property.apex"
2315
- "3":
2316
- name: "keyword.operator.null-conditional.apex"
2317
- end: "(?<=\\])(?!\\s*\\[)"
2313
+ '2':
2314
+ name: 'variable.other.object.property.apex'
2315
+ '3':
2316
+ name: 'keyword.operator.null-conditional.apex'
2317
+ end: '(?<=\\])(?!\\s*\\[)'
2318
2318
  patterns: [
2319
2319
  {
2320
- include: "#bracketed-argument-list"
2320
+ include: '#bracketed-argument-list'
2321
2321
  }
2322
2322
  ]
2323
- "member-access-expression":
2323
+ 'member-access-expression':
2324
2324
  patterns: [
2325
2325
  {
2326
2326
  match: '''
@@ -2330,17 +2330,17 @@ repository:
2330
2330
  (?![_[:alnum:]]|\\(|(\\?)?\\[|<) # next character is not alpha-numeric, nor a (, [, or <. Also, test for ?[
2331
2331
  '''
2332
2332
  captures:
2333
- "1":
2333
+ '1':
2334
2334
  patterns: [
2335
2335
  {
2336
- include: "#punctuation-accessor"
2336
+ include: '#punctuation-accessor'
2337
2337
  }
2338
2338
  {
2339
- include: "#operator-safe-navigation"
2339
+ include: '#operator-safe-navigation'
2340
2340
  }
2341
2341
  ]
2342
- "2":
2343
- name: "variable.other.object.property.apex"
2342
+ '2':
2343
+ name: 'variable.other.object.property.apex'
2344
2344
  }
2345
2345
  {
2346
2346
  match: '''
@@ -2354,21 +2354,21 @@ repository:
2354
2354
  )
2355
2355
  '''
2356
2356
  captures:
2357
- "1":
2357
+ '1':
2358
2358
  patterns: [
2359
2359
  {
2360
- include: "#punctuation-accessor"
2360
+ include: '#punctuation-accessor'
2361
2361
  }
2362
2362
  {
2363
- include: "#operator-safe-navigation"
2363
+ include: '#operator-safe-navigation'
2364
2364
  }
2365
2365
  ]
2366
- "2":
2367
- name: "variable.other.object.apex"
2368
- "3":
2366
+ '2':
2367
+ name: 'variable.other.object.apex'
2368
+ '3':
2369
2369
  patterns: [
2370
2370
  {
2371
- include: "#type-arguments"
2371
+ include: '#type-arguments'
2372
2372
  }
2373
2373
  ]
2374
2374
  }
@@ -2382,23 +2382,23 @@ repository:
2382
2382
  )
2383
2383
  '''
2384
2384
  captures:
2385
- "1":
2386
- name: "variable.other.object.apex"
2385
+ '1':
2386
+ name: 'variable.other.object.apex'
2387
2387
  }
2388
2388
  ]
2389
- "object-creation-expression":
2389
+ 'object-creation-expression':
2390
2390
  patterns: [
2391
2391
  {
2392
- include: "#object-creation-expression-with-parameters"
2392
+ include: '#object-creation-expression-with-parameters'
2393
2393
  }
2394
2394
  {
2395
- include: "#object-creation-expression-with-no-parameters"
2395
+ include: '#object-creation-expression-with-no-parameters'
2396
2396
  }
2397
2397
  {
2398
- include: "#punctuation-comma"
2398
+ include: '#punctuation-comma'
2399
2399
  }
2400
2400
  ]
2401
- "object-creation-expression-with-parameters":
2401
+ 'object-creation-expression-with-parameters':
2402
2402
  begin: '''
2403
2403
  (?x)
2404
2404
  (delete|insert|undelete|update|upsert)?
@@ -2420,26 +2420,26 @@ repository:
2420
2420
  (?=\\()
2421
2421
  '''
2422
2422
  beginCaptures:
2423
- "1":
2424
- name: "support.function.apex"
2425
- "2":
2426
- name: "keyword.control.new.apex"
2427
- "3":
2423
+ '1':
2424
+ name: 'support.function.apex'
2425
+ '2':
2426
+ name: 'keyword.control.new.apex'
2427
+ '3':
2428
2428
  patterns: [
2429
2429
  {
2430
- include: "#support-type"
2430
+ include: '#support-type'
2431
2431
  }
2432
2432
  {
2433
- include: "#type"
2433
+ include: '#type'
2434
2434
  }
2435
2435
  ]
2436
- end: "(?<=\\))"
2436
+ end: '(?<=\\))'
2437
2437
  patterns: [
2438
2438
  {
2439
- include: "#argument-list"
2439
+ include: '#argument-list'
2440
2440
  }
2441
2441
  ]
2442
- "object-creation-expression-with-no-parameters":
2442
+ 'object-creation-expression-with-no-parameters':
2443
2443
  match: '''
2444
2444
  (?x)
2445
2445
  (delete|insert|undelete|update|upsert)?
@@ -2461,20 +2461,20 @@ repository:
2461
2461
  (?=\\{|$)
2462
2462
  '''
2463
2463
  captures:
2464
- "1":
2465
- name: "support.function.apex"
2466
- "2":
2467
- name: "keyword.control.new.apex"
2468
- "3":
2464
+ '1':
2465
+ name: 'support.function.apex'
2466
+ '2':
2467
+ name: 'keyword.control.new.apex'
2468
+ '3':
2469
2469
  patterns: [
2470
2470
  {
2471
- include: "#support-type"
2471
+ include: '#support-type'
2472
2472
  }
2473
2473
  {
2474
- include: "#type"
2474
+ include: '#type'
2475
2475
  }
2476
2476
  ]
2477
- "array-creation-expression":
2477
+ 'array-creation-expression':
2478
2478
  begin: '''
2479
2479
  (?x)
2480
2480
  \\b(new)\\b\\s*
@@ -2495,44 +2495,44 @@ repository:
2495
2495
  (?=\\[)
2496
2496
  '''
2497
2497
  beginCaptures:
2498
- "1":
2499
- name: "keyword.control.new.apex"
2500
- "2":
2498
+ '1':
2499
+ name: 'keyword.control.new.apex'
2500
+ '2':
2501
2501
  patterns: [
2502
2502
  {
2503
- include: "#support-type"
2503
+ include: '#support-type'
2504
2504
  }
2505
2505
  {
2506
- include: "#type"
2506
+ include: '#type'
2507
2507
  }
2508
2508
  ]
2509
- end: "(?<=\\])"
2509
+ end: '(?<=\\])'
2510
2510
  patterns: [
2511
2511
  {
2512
- include: "#bracketed-argument-list"
2512
+ include: '#bracketed-argument-list'
2513
2513
  }
2514
2514
  ]
2515
- "parenthesized-parameter-list":
2516
- begin: "(\\()"
2515
+ 'parenthesized-parameter-list':
2516
+ begin: '(\\()'
2517
2517
  beginCaptures:
2518
- "0":
2519
- name: "punctuation.parenthesis.open.apex"
2520
- end: "(\\))"
2518
+ '0':
2519
+ name: 'punctuation.parenthesis.open.apex'
2520
+ end: '(\\))'
2521
2521
  endCaptures:
2522
- "0":
2523
- name: "punctuation.parenthesis.close.apex"
2522
+ '0':
2523
+ name: 'punctuation.parenthesis.close.apex'
2524
2524
  patterns: [
2525
2525
  {
2526
- include: "#comment"
2526
+ include: '#comment'
2527
2527
  }
2528
2528
  {
2529
- include: "#parameter"
2529
+ include: '#parameter'
2530
2530
  }
2531
2531
  {
2532
- include: "#punctuation-comma"
2532
+ include: '#punctuation-comma'
2533
2533
  }
2534
2534
  {
2535
- include: "#variable-initializer"
2535
+ include: '#variable-initializer'
2536
2536
  }
2537
2537
  ]
2538
2538
  parameter:
@@ -2557,285 +2557,285 @@ repository:
2557
2557
  (\\g<identifier>)
2558
2558
  '''
2559
2559
  captures:
2560
- "1":
2561
- name: "storage.modifier.apex"
2562
- "2":
2560
+ '1':
2561
+ name: 'storage.modifier.apex'
2562
+ '2':
2563
2563
  patterns: [
2564
2564
  {
2565
- include: "#support-type"
2565
+ include: '#support-type'
2566
2566
  }
2567
2567
  {
2568
- include: "#type"
2568
+ include: '#type'
2569
2569
  }
2570
2570
  ]
2571
- "6":
2572
- name: "entity.name.variable.parameter.apex"
2573
- "argument-list":
2574
- begin: "\\("
2571
+ '6':
2572
+ name: 'entity.name.variable.parameter.apex'
2573
+ 'argument-list':
2574
+ begin: '\\('
2575
2575
  beginCaptures:
2576
- "0":
2577
- name: "punctuation.parenthesis.open.apex"
2578
- end: "\\)"
2576
+ '0':
2577
+ name: 'punctuation.parenthesis.open.apex'
2578
+ end: '\\)'
2579
2579
  endCaptures:
2580
- "0":
2581
- name: "punctuation.parenthesis.close.apex"
2580
+ '0':
2581
+ name: 'punctuation.parenthesis.close.apex'
2582
2582
  patterns: [
2583
2583
  {
2584
- include: "#named-argument"
2584
+ include: '#named-argument'
2585
2585
  }
2586
2586
  {
2587
- include: "#expression"
2587
+ include: '#expression'
2588
2588
  }
2589
2589
  {
2590
- include: "#punctuation-comma"
2590
+ include: '#punctuation-comma'
2591
2591
  }
2592
2592
  ]
2593
- "bracketed-argument-list":
2594
- begin: "\\["
2593
+ 'bracketed-argument-list':
2594
+ begin: '\\['
2595
2595
  beginCaptures:
2596
- "0":
2597
- name: "punctuation.squarebracket.open.apex"
2598
- end: "\\]"
2596
+ '0':
2597
+ name: 'punctuation.squarebracket.open.apex'
2598
+ end: '\\]'
2599
2599
  endCaptures:
2600
- "0":
2601
- name: "punctuation.squarebracket.close.apex"
2600
+ '0':
2601
+ name: 'punctuation.squarebracket.close.apex'
2602
2602
  patterns: [
2603
2603
  {
2604
- include: "#soql-query-expression"
2604
+ include: '#soql-query-expression'
2605
2605
  }
2606
2606
  {
2607
- include: "#named-argument"
2607
+ include: '#named-argument'
2608
2608
  }
2609
2609
  {
2610
- include: "#expression"
2610
+ include: '#expression'
2611
2611
  }
2612
2612
  {
2613
- include: "#punctuation-comma"
2613
+ include: '#punctuation-comma'
2614
2614
  }
2615
2615
  ]
2616
- "named-argument":
2617
- begin: "(@?[_[:alpha:]][_[:alnum:]]*)\\s*(:)"
2616
+ 'named-argument':
2617
+ begin: '(@?[_[:alpha:]][_[:alnum:]]*)\\s*(:)'
2618
2618
  beginCaptures:
2619
- "1":
2620
- name: "entity.name.variable.parameter.apex"
2621
- "2":
2622
- name: "punctuation.separator.colon.apex"
2623
- end: "(?=(,|\\)|\\]))"
2619
+ '1':
2620
+ name: 'entity.name.variable.parameter.apex'
2621
+ '2':
2622
+ name: 'punctuation.separator.colon.apex'
2623
+ end: '(?=(,|\\)|\\]))'
2624
2624
  patterns: [
2625
2625
  {
2626
- include: "#expression"
2626
+ include: '#expression'
2627
2627
  }
2628
2628
  ]
2629
2629
  type:
2630
- name: "meta.type.apex"
2630
+ name: 'meta.type.apex'
2631
2631
  patterns: [
2632
2632
  {
2633
- include: "#comment"
2633
+ include: '#comment'
2634
2634
  }
2635
2635
  {
2636
- include: "#type-builtin"
2636
+ include: '#type-builtin'
2637
2637
  }
2638
2638
  {
2639
- include: "#type-name"
2639
+ include: '#type-name'
2640
2640
  }
2641
2641
  {
2642
- include: "#type-arguments"
2642
+ include: '#type-arguments'
2643
2643
  }
2644
2644
  {
2645
- include: "#type-array-suffix"
2645
+ include: '#type-array-suffix'
2646
2646
  }
2647
2647
  {
2648
- include: "#type-nullable-suffix"
2648
+ include: '#type-nullable-suffix'
2649
2649
  }
2650
2650
  ]
2651
- "type-builtin":
2652
- match: "\\b(Blob|Boolean|byte|Date|Datetime|Decimal|Double|ID|Integer|Long|Object|String|Time|void)\\b"
2651
+ 'type-builtin':
2652
+ match: '\\b(Blob|Boolean|byte|Date|Datetime|Decimal|Double|ID|Integer|Long|Object|String|Time|void)\\b'
2653
2653
  captures:
2654
- "1":
2655
- name: "keyword.type.apex"
2656
- "type-name":
2654
+ '1':
2655
+ name: 'keyword.type.apex'
2656
+ 'type-name':
2657
2657
  patterns: [
2658
2658
  {
2659
- match: "(@?[_[:alpha:]][_[:alnum:]]*)\\s*(\\.)"
2659
+ match: '(@?[_[:alpha:]][_[:alnum:]]*)\\s*(\\.)'
2660
2660
  captures:
2661
- "1":
2662
- name: "storage.type.apex"
2663
- "2":
2664
- name: "punctuation.accessor.apex"
2661
+ '1':
2662
+ name: 'storage.type.apex'
2663
+ '2':
2664
+ name: 'punctuation.accessor.apex'
2665
2665
  }
2666
2666
  {
2667
- match: "(\\.)\\s*(@?[_[:alpha:]][_[:alnum:]]*)"
2667
+ match: '(\\.)\\s*(@?[_[:alpha:]][_[:alnum:]]*)'
2668
2668
  captures:
2669
- "1":
2670
- name: "punctuation.accessor.apex"
2671
- "2":
2672
- name: "storage.type.apex"
2669
+ '1':
2670
+ name: 'punctuation.accessor.apex'
2671
+ '2':
2672
+ name: 'storage.type.apex'
2673
2673
  }
2674
2674
  {
2675
- name: "storage.type.apex"
2676
- match: "@?[_[:alpha:]][_[:alnum:]]*"
2675
+ name: 'storage.type.apex'
2676
+ match: '@?[_[:alpha:]][_[:alnum:]]*'
2677
2677
  }
2678
2678
  ]
2679
- "type-arguments":
2680
- begin: "<"
2679
+ 'type-arguments':
2680
+ begin: '<'
2681
2681
  beginCaptures:
2682
- "0":
2683
- name: "punctuation.definition.typeparameters.begin.apex"
2684
- end: ">"
2682
+ '0':
2683
+ name: 'punctuation.definition.typeparameters.begin.apex'
2684
+ end: '>'
2685
2685
  endCaptures:
2686
- "0":
2687
- name: "punctuation.definition.typeparameters.end.apex"
2686
+ '0':
2687
+ name: 'punctuation.definition.typeparameters.end.apex'
2688
2688
  patterns: [
2689
2689
  {
2690
- include: "#comment"
2690
+ include: '#comment'
2691
2691
  }
2692
2692
  {
2693
- include: "#support-type"
2693
+ include: '#support-type'
2694
2694
  }
2695
2695
  {
2696
- include: "#type"
2696
+ include: '#type'
2697
2697
  }
2698
2698
  {
2699
- include: "#punctuation-comma"
2699
+ include: '#punctuation-comma'
2700
2700
  }
2701
2701
  ]
2702
- "type-array-suffix":
2703
- begin: "\\["
2702
+ 'type-array-suffix':
2703
+ begin: '\\['
2704
2704
  beginCaptures:
2705
- "0":
2706
- name: "punctuation.squarebracket.open.apex"
2707
- end: "\\]"
2705
+ '0':
2706
+ name: 'punctuation.squarebracket.open.apex'
2707
+ end: '\\]'
2708
2708
  endCaptures:
2709
- "0":
2710
- name: "punctuation.squarebracket.close.apex"
2709
+ '0':
2710
+ name: 'punctuation.squarebracket.close.apex'
2711
2711
  patterns: [
2712
2712
  {
2713
- include: "#punctuation-comma"
2713
+ include: '#punctuation-comma'
2714
2714
  }
2715
2715
  ]
2716
- "type-nullable-suffix":
2717
- match: "\\?"
2716
+ 'type-nullable-suffix':
2717
+ match: '\\?'
2718
2718
  captures:
2719
- "0":
2720
- name: "punctuation.separator.question-mark.apex"
2721
- "operator-assignment":
2722
- name: "keyword.operator.assignment.apex"
2723
- match: "(?<!=|!)(=)(?!=)"
2724
- "operator-safe-navigation":
2725
- name: "keyword.operator.safe-navigation.apex"
2726
- match: "\\?\\."
2727
- "punctuation-comma":
2728
- name: "punctuation.separator.comma.apex"
2729
- match: ","
2730
- "punctuation-semicolon":
2731
- name: "punctuation.terminator.statement.apex"
2732
- match: ";"
2733
- "punctuation-accessor":
2734
- name: "punctuation.accessor.apex"
2735
- match: "\\."
2719
+ '0':
2720
+ name: 'punctuation.separator.question-mark.apex'
2721
+ 'operator-assignment':
2722
+ name: 'keyword.operator.assignment.apex'
2723
+ match: '(?<!=|!)(=)(?!=)'
2724
+ 'operator-safe-navigation':
2725
+ name: 'keyword.operator.safe-navigation.apex'
2726
+ match: '\\?\\.'
2727
+ 'punctuation-comma':
2728
+ name: 'punctuation.separator.comma.apex'
2729
+ match: ','
2730
+ 'punctuation-semicolon':
2731
+ name: 'punctuation.terminator.statement.apex'
2732
+ match: ';'
2733
+ 'punctuation-accessor':
2734
+ name: 'punctuation.accessor.apex'
2735
+ match: '\\.'
2736
2736
  comment:
2737
2737
  patterns: [
2738
2738
  {
2739
- name: "comment.block.apex"
2740
- begin: "/\\*(\\*)?"
2739
+ name: 'comment.block.apex'
2740
+ begin: '/\\*(\\*)?'
2741
2741
  beginCaptures:
2742
- "0":
2743
- name: "punctuation.definition.comment.apex"
2744
- end: "\\*/"
2742
+ '0':
2743
+ name: 'punctuation.definition.comment.apex'
2744
+ end: '\\*/'
2745
2745
  endCaptures:
2746
- "0":
2747
- name: "punctuation.definition.comment.apex"
2746
+ '0':
2747
+ name: 'punctuation.definition.comment.apex'
2748
2748
  }
2749
2749
  {
2750
- begin: "(^\\s+)?(?=//)"
2750
+ begin: '(^\\s+)?(?=//)'
2751
2751
  beginCaptures:
2752
- "1":
2753
- name: "punctuation.whitespace.comment.leading.apex"
2754
- end: "(?=$)"
2752
+ '1':
2753
+ name: 'punctuation.whitespace.comment.leading.apex'
2754
+ end: '(?=$)'
2755
2755
  patterns: [
2756
2756
  {
2757
- name: "comment.block.documentation.apex"
2758
- begin: "(?<!/)///(?!/)"
2757
+ name: 'comment.block.documentation.apex'
2758
+ begin: '(?<!/)///(?!/)'
2759
2759
  beginCaptures:
2760
- "0":
2761
- name: "punctuation.definition.comment.apex"
2762
- end: "(?=$)"
2760
+ '0':
2761
+ name: 'punctuation.definition.comment.apex'
2762
+ end: '(?=$)'
2763
2763
  patterns: [
2764
2764
  {
2765
- include: "#xml-doc-comment"
2765
+ include: '#xml-doc-comment'
2766
2766
  }
2767
2767
  ]
2768
2768
  }
2769
2769
  {
2770
- name: "comment.line.double-slash.apex"
2771
- begin: "(?<!/)//(?:(?!/)|(?=//))"
2770
+ name: 'comment.line.double-slash.apex'
2771
+ begin: '(?<!/)//(?:(?!/)|(?=//))'
2772
2772
  beginCaptures:
2773
- "0":
2774
- name: "punctuation.definition.comment.apex"
2775
- end: "(?=$)"
2773
+ '0':
2774
+ name: 'punctuation.definition.comment.apex'
2775
+ end: '(?=$)'
2776
2776
  }
2777
2777
  ]
2778
2778
  }
2779
2779
  ]
2780
- "javadoc-comment":
2780
+ 'javadoc-comment':
2781
2781
  patterns: [
2782
2782
  {
2783
- name: "comment.block.javadoc.apex"
2784
- begin: "^\\s*(/\\*\\*)(?!/)"
2783
+ name: 'comment.block.javadoc.apex'
2784
+ begin: '^\\s*(/\\*\\*)(?!/)'
2785
2785
  beginCaptures:
2786
- "1":
2787
- name: "punctuation.definition.comment.apex"
2788
- end: "\\*/"
2786
+ '1':
2787
+ name: 'punctuation.definition.comment.apex'
2788
+ end: '\\*/'
2789
2789
  endCaptures:
2790
- "0":
2791
- name: "punctuation.definition.comment.apex"
2790
+ '0':
2791
+ name: 'punctuation.definition.comment.apex'
2792
2792
  patterns: [
2793
2793
  {
2794
- match: "@(deprecated|author|return|see|serial|since|version|usage|name|link)\\b"
2795
- name: "keyword.other.documentation.javadoc.apex"
2794
+ match: '@(deprecated|author|return|see|serial|since|version|usage|name|link)\\b'
2795
+ name: 'keyword.other.documentation.javadoc.apex'
2796
2796
  }
2797
2797
  {
2798
- match: "(@param)\\s+(\\S+)"
2798
+ match: '(@param)\\s+(\\S+)'
2799
2799
  captures:
2800
- "1":
2801
- name: "keyword.other.documentation.javadoc.apex"
2802
- "2":
2803
- name: "entity.name.variable.parameter.apex"
2800
+ '1':
2801
+ name: 'keyword.other.documentation.javadoc.apex'
2802
+ '2':
2803
+ name: 'entity.name.variable.parameter.apex'
2804
2804
  }
2805
2805
  {
2806
- match: "(@(?:exception|throws))\\s+(\\S+)"
2806
+ match: '(@(?:exception|throws))\\s+(\\S+)'
2807
2807
  captures:
2808
- "1":
2809
- name: "keyword.other.documentation.javadoc.apex"
2810
- "2":
2811
- name: "entity.name.type.class.apex"
2808
+ '1':
2809
+ name: 'keyword.other.documentation.javadoc.apex'
2810
+ '2':
2811
+ name: 'entity.name.type.class.apex'
2812
2812
  }
2813
2813
  {
2814
- match: "(`([^`]+?)`)"
2814
+ match: '(`([^`]+?)`)'
2815
2815
  captures:
2816
- "1":
2817
- name: "string.quoted.single.apex"
2816
+ '1':
2817
+ name: 'string.quoted.single.apex'
2818
2818
  }
2819
2819
  ]
2820
2820
  }
2821
2821
  ]
2822
- "xml-doc-comment":
2822
+ 'xml-doc-comment':
2823
2823
  patterns: [
2824
2824
  {
2825
- include: "#xml-comment"
2825
+ include: '#xml-comment'
2826
2826
  }
2827
2827
  {
2828
- include: "#xml-character-entity"
2828
+ include: '#xml-character-entity'
2829
2829
  }
2830
2830
  {
2831
- include: "#xml-cdata"
2831
+ include: '#xml-cdata'
2832
2832
  }
2833
2833
  {
2834
- include: "#xml-tag"
2834
+ include: '#xml-tag'
2835
2835
  }
2836
2836
  ]
2837
- "xml-tag":
2838
- name: "meta.tag.apex"
2837
+ 'xml-tag':
2838
+ name: 'meta.tag.apex'
2839
2839
  begin: '''
2840
2840
  (?x)
2841
2841
  (</?)
@@ -2848,26 +2848,26 @@ repository:
2848
2848
  )
2849
2849
  '''
2850
2850
  beginCaptures:
2851
- "1":
2852
- name: "punctuation.definition.tag.apex"
2853
- "2":
2854
- name: "entity.name.tag.apex"
2855
- "3":
2856
- name: "entity.name.tag.namespace.apex"
2857
- "4":
2858
- name: "punctuation.separator.colon.apex"
2859
- "5":
2860
- name: "entity.name.tag.localname.apex"
2861
- end: "(/?>)"
2851
+ '1':
2852
+ name: 'punctuation.definition.tag.apex'
2853
+ '2':
2854
+ name: 'entity.name.tag.apex'
2855
+ '3':
2856
+ name: 'entity.name.tag.namespace.apex'
2857
+ '4':
2858
+ name: 'punctuation.separator.colon.apex'
2859
+ '5':
2860
+ name: 'entity.name.tag.localname.apex'
2861
+ end: '(/?>)'
2862
2862
  endCaptures:
2863
- "1":
2864
- name: "punctuation.definition.tag.apex"
2863
+ '1':
2864
+ name: 'punctuation.definition.tag.apex'
2865
2865
  patterns: [
2866
2866
  {
2867
- include: "#xml-attribute"
2867
+ include: '#xml-attribute'
2868
2868
  }
2869
2869
  ]
2870
- "xml-attribute":
2870
+ 'xml-attribute':
2871
2871
  patterns: [
2872
2872
  {
2873
2873
  match: '''
@@ -2883,70 +2883,70 @@ repository:
2883
2883
  (=)
2884
2884
  '''
2885
2885
  captures:
2886
- "1":
2887
- name: "entity.other.attribute-name.apex"
2888
- "2":
2889
- name: "entity.other.attribute-name.namespace.apex"
2890
- "3":
2891
- name: "punctuation.separator.colon.apex"
2892
- "4":
2893
- name: "entity.other.attribute-name.localname.apex"
2894
- "5":
2895
- name: "punctuation.separator.equals.apex"
2886
+ '1':
2887
+ name: 'entity.other.attribute-name.apex'
2888
+ '2':
2889
+ name: 'entity.other.attribute-name.namespace.apex'
2890
+ '3':
2891
+ name: 'punctuation.separator.colon.apex'
2892
+ '4':
2893
+ name: 'entity.other.attribute-name.localname.apex'
2894
+ '5':
2895
+ name: 'punctuation.separator.equals.apex'
2896
2896
  }
2897
2897
  {
2898
- include: "#xml-string"
2898
+ include: '#xml-string'
2899
2899
  }
2900
2900
  ]
2901
- "xml-cdata":
2902
- name: "string.unquoted.cdata.apex"
2903
- begin: "<!\\[CDATA\\["
2901
+ 'xml-cdata':
2902
+ name: 'string.unquoted.cdata.apex'
2903
+ begin: '<!\\[CDATA\\['
2904
2904
  beginCaptures:
2905
- "0":
2906
- name: "punctuation.definition.string.begin.apex"
2907
- end: "\\]\\]>"
2905
+ '0':
2906
+ name: 'punctuation.definition.string.begin.apex'
2907
+ end: '\\]\\]>'
2908
2908
  endCaptures:
2909
- "0":
2910
- name: "punctuation.definition.string.end.apex"
2911
- "xml-string":
2909
+ '0':
2910
+ name: 'punctuation.definition.string.end.apex'
2911
+ 'xml-string':
2912
2912
  patterns: [
2913
2913
  {
2914
- name: "string.quoted.single.apex"
2914
+ name: 'string.quoted.single.apex'
2915
2915
  begin: "\\'"
2916
2916
  beginCaptures:
2917
- "0":
2918
- name: "punctuation.definition.string.begin.apex"
2917
+ '0':
2918
+ name: 'punctuation.definition.string.begin.apex'
2919
2919
  end: "\\'"
2920
2920
  endCaptures:
2921
- "0":
2922
- name: "punctuation.definition.string.end.apex"
2921
+ '0':
2922
+ name: 'punctuation.definition.string.end.apex'
2923
2923
  patterns: [
2924
2924
  {
2925
- include: "#xml-character-entity"
2925
+ include: '#xml-character-entity'
2926
2926
  }
2927
2927
  ]
2928
2928
  }
2929
2929
  {
2930
- name: "string.quoted.double.apex"
2931
- begin: "\\\""
2930
+ name: 'string.quoted.double.apex'
2931
+ begin: '\\"'
2932
2932
  beginCaptures:
2933
- "0":
2934
- name: "punctuation.definition.stringdoublequote.begin.apex"
2935
- end: "\\\""
2933
+ '0':
2934
+ name: 'punctuation.definition.stringdoublequote.begin.apex'
2935
+ end: '\\"'
2936
2936
  endCaptures:
2937
- "0":
2938
- name: "punctuation.definition.stringdoublequote.end.apex"
2937
+ '0':
2938
+ name: 'punctuation.definition.stringdoublequote.end.apex'
2939
2939
  patterns: [
2940
2940
  {
2941
- include: "#xml-character-entity"
2941
+ include: '#xml-character-entity'
2942
2942
  }
2943
2943
  ]
2944
2944
  }
2945
2945
  ]
2946
- "xml-character-entity":
2946
+ 'xml-character-entity':
2947
2947
  patterns: [
2948
2948
  {
2949
- name: "constant.character.entity.apex"
2949
+ name: 'constant.character.entity.apex'
2950
2950
  match: '''
2951
2951
  (?x)
2952
2952
  (&)
@@ -2958,23 +2958,23 @@ repository:
2958
2958
  (;)
2959
2959
  '''
2960
2960
  captures:
2961
- "1":
2962
- name: "punctuation.definition.constant.apex"
2963
- "3":
2964
- name: "punctuation.definition.constant.apex"
2961
+ '1':
2962
+ name: 'punctuation.definition.constant.apex'
2963
+ '3':
2964
+ name: 'punctuation.definition.constant.apex'
2965
2965
  }
2966
2966
  {
2967
- name: "invalid.illegal.bad-ampersand.apex"
2968
- match: "&"
2967
+ name: 'invalid.illegal.bad-ampersand.apex'
2968
+ match: '&'
2969
2969
  }
2970
2970
  ]
2971
- "xml-comment":
2972
- name: "comment.block.apex"
2973
- begin: "<!--"
2971
+ 'xml-comment':
2972
+ name: 'comment.block.apex'
2973
+ begin: '<!--'
2974
2974
  beginCaptures:
2975
- "0":
2976
- name: "punctuation.definition.comment.apex"
2977
- end: "-->"
2975
+ '0':
2976
+ name: 'punctuation.definition.comment.apex'
2977
+ end: '-->'
2978
2978
  endCaptures:
2979
- "0":
2980
- name: "punctuation.definition.comment.apex"
2979
+ '0':
2980
+ name: 'punctuation.definition.comment.apex'