crates/highlight/syntaxes/javascript.json 222.6 KiB raw
1
{
2
  "displayName": "JavaScript",
3
  "name": "javascript",
4
  "patterns": [
5
    {
6
      "include": "#directives"
7
    },
8
    {
9
      "include": "#statements"
10
    },
11
    {
12
      "include": "#shebang"
13
    }
14
  ],
15
  "repository": {
16
    "access-modifier": {
17
      "match": "(?<![$_[:alnum:]])(?:(?<=\\.\\.\\.)|(?<!\\.))(abstract|declare|override|public|protected|private|readonly|static)(?![$_[:alnum:]])(?:(?=\\.\\.\\.)|(?!\\.))",
18
      "name": "storage.modifier.js"
19
    },
20
    "after-operator-block-as-object-literal": {
21
      "begin": "(?<!\\+\\+|--)(?<=[!(+,:=>?\\[]|^await|[^$._[:alnum:]]await|^return|[^$._[:alnum:]]return|^yield|[^$._[:alnum:]]yield|^throw|[^$._[:alnum:]]throw|^in|[^$._[:alnum:]]in|^of|[^$._[:alnum:]]of|^typeof|[^$._[:alnum:]]typeof|&&|\\|\\||\\*)\\s*(\\{)",
22
      "beginCaptures": {
23
        "1": {
24
          "name": "punctuation.definition.block.js"
25
        }
26
      },
27
      "end": "}",
28
      "endCaptures": {
29
        "0": {
30
          "name": "punctuation.definition.block.js"
31
        }
32
      },
33
      "name": "meta.objectliteral.js",
34
      "patterns": [
35
        {
36
          "include": "#object-member"
37
        }
38
      ]
39
    },
40
    "array-binding-pattern": {
41
      "begin": "(?:(\\.\\.\\.)\\s*)?(\\[)",
42
      "beginCaptures": {
43
        "1": {
44
          "name": "keyword.operator.rest.js"
45
        },
46
        "2": {
47
          "name": "punctuation.definition.binding-pattern.array.js"
48
        }
49
      },
50
      "end": "]",
51
      "endCaptures": {
52
        "0": {
53
          "name": "punctuation.definition.binding-pattern.array.js"
54
        }
55
      },
56
      "patterns": [
57
        {
58
          "include": "#binding-element"
59
        },
60
        {
61
          "include": "#punctuation-comma"
62
        }
63
      ]
64
    },
65
    "array-binding-pattern-const": {
66
      "begin": "(?:(\\.\\.\\.)\\s*)?(\\[)",
67
      "beginCaptures": {
68
        "1": {
69
          "name": "keyword.operator.rest.js"
70
        },
71
        "2": {
72
          "name": "punctuation.definition.binding-pattern.array.js"
73
        }
74
      },
75
      "end": "]",
76
      "endCaptures": {
77
        "0": {
78
          "name": "punctuation.definition.binding-pattern.array.js"
79
        }
80
      },
81
      "patterns": [
82
        {
83
          "include": "#binding-element-const"
84
        },
85
        {
86
          "include": "#punctuation-comma"
87
        }
88
      ]
89
    },
90
    "array-literal": {
91
      "begin": "\\s*(\\[)",
92
      "beginCaptures": {
93
        "1": {
94
          "name": "meta.brace.square.js"
95
        }
96
      },
97
      "end": "]",
98
      "endCaptures": {
99
        "0": {
100
          "name": "meta.brace.square.js"
101
        }
102
      },
103
      "name": "meta.array.literal.js",
104
      "patterns": [
105
        {
106
          "include": "#expression"
107
        },
108
        {
109
          "include": "#punctuation-comma"
110
        }
111
      ]
112
    },
113
    "arrow-function": {
114
      "patterns": [
115
        {
116
          "captures": {
117
            "1": {
118
              "name": "storage.modifier.async.js"
119
            },
120
            "2": {
121
              "name": "variable.parameter.js"
122
            }
123
          },
124
          "match": "(?:(?<![$_[:alnum:]])(?:(?<=\\.\\.\\.)|(?<!\\.))\\b(async)\\s+)?([$_[:alpha:]][$_[:alnum:]]*)\\s*(?==>)",
125
          "name": "meta.arrow.js"
126
        },
127
        {
128
          "begin": "(?:(?<![$_[:alnum:]])(?:(?<=\\.\\.\\.)|(?<!\\.))\\b(async))?((?<![]!)}])\\s*(?=((<\\s*(((const\\s+)?[$_[:alpha:]])|(\\{([^{}]|(\\{([^{}]|\\{[^{}]*})*}))*})|(\\(([^()]|(\\(([^()]|\\([^()]*\\))*\\)))*\\))|(\\[([^]\\[]|(\\[([^]\\[]|\\[[^]\\[]*])*]))*]))([^<=>]|=[^<]|<\\s*(((const\\s+)?[$_[:alpha:]])|(\\{([^{}]|(\\{([^{}]|\\{[^{}]*})*}))*})|(\\(([^()]|(\\(([^()]|\\([^()]*\\))*\\)))*\\))|(\\[([^]\\[]|(\\[([^]\\[]|\\[[^]\\[]*])*]))*]))([^<=>]|=[^<]|<\\s*(((const\\s+)?[$_[:alpha:]])|(\\{([^{}]|(\\{([^{}]|\\{[^{}]*})*}))*})|(\\(([^()]|(\\(([^()]|\\([^()]*\\))*\\)))*\\))|(\\[([^]\\[]|(\\[([^]\\[]|\\[[^]\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\s*)?\\(\\s*(/\\*([^*]|(\\*[^/]))*\\*/\\s*)*((\\)\\s*:)|((\\.\\.\\.\\s*)?[$_[:alpha:]][$_[:alnum:]]*\\s*:)))|(<\\s*[$_[:alpha:]][$_[:alnum:]]*\\s+extends\\s*[^=>])|((<\\s*(((const\\s+)?[$_[:alpha:]])|(\\{([^{}]|(\\{([^{}]|\\{[^{}]*})*}))*})|(\\(([^()]|(\\(([^()]|\\([^()]*\\))*\\)))*\\))|(\\[([^]\\[]|(\\[([^]\\[]|\\[[^]\\[]*])*]))*]))([^<=>]|=[^<]|<\\s*(((const\\s+)?[$_[:alpha:]])|(\\{([^{}]|(\\{([^{}]|\\{[^{}]*})*}))*})|(\\(([^()]|(\\(([^()]|\\([^()]*\\))*\\)))*\\))|(\\[([^]\\[]|(\\[([^]\\[]|\\[[^]\\[]*])*]))*]))([^<=>]|=[^<]|<\\s*(((const\\s+)?[$_[:alpha:]])|(\\{([^{}]|(\\{([^{}]|\\{[^{}]*})*}))*})|(\\(([^()]|(\\(([^()]|\\([^()]*\\))*\\)))*\\))|(\\[([^]\\[]|(\\[([^]\\[]|\\[[^]\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\s*)?\\(\\s*(/\\*([^*]|(\\*[^/]))*\\*/\\s*)*(([$_[:alpha:]]|(\\{([^{}]|(\\{([^{}]|\\{[^{}]*})*}))*})|(\\[([^]\\[]|(\\[([^]\\[]|\\[[^]\\[]*])*]))*])|(\\.\\.\\.\\s*[$_[:alpha:]]))([^\"'()`]|(\\(([^()]|(\\(([^()]|\\([^()]*\\))*\\)))*\\))|('([^'\\\\]|\\\\.)*')|(\"([^\"\\\\]|\\\\.)*\")|(`([^\\\\`]|\\\\.)*`))*)?\\)(\\s*:\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\([^()]+\\)|\\{[^{}]+})+)?\\s*=>)))",
129
          "beginCaptures": {
130
            "1": {
131
              "name": "storage.modifier.async.js"
132
            }
133
          },
134
          "end": "(?==>|\\{|^(\\s*(export|function|class|interface|let|var|\\busing(?=\\s+(?!in\\b|of\\b(?!\\s*(?:of\\b|=)))[$_[:alpha:]])\\b|\\bawait\\s+\\busing(?=\\s+(?!in\\b|of\\b(?!\\s*(?:of\\b|=)))[$_[:alpha:]])\\b\\b|const|import|enum|namespace|module|type|abstract|declare)\\s+))",
135
          "name": "meta.arrow.js",
136
          "patterns": [
137
            {
138
              "include": "#comment"
139
            },
140
            {
141
              "include": "#type-parameters"
142
            },
143
            {
144
              "include": "#function-parameters"
145
            },
146
            {
147
              "include": "#arrow-return-type"
148
            },
149
            {
150
              "include": "#possibly-arrow-return-type"
151
            }
152
          ]
153
        },
154
        {
155
          "begin": "=>",
156
          "beginCaptures": {
157
            "0": {
158
              "name": "storage.type.function.arrow.js"
159
            }
160
          },
161
          "end": "((?<=[}\\S])(?<!=>)|((?!\\{)(?=\\S)))(?!/[*/])",
162
          "name": "meta.arrow.js",
163
          "patterns": [
164
            {
165
              "include": "#single-line-comment-consuming-line-ending"
166
            },
167
            {
168
              "include": "#decl-block"
169
            },
170
            {
171
              "include": "#expression"
172
            }
173
          ]
174
        }
175
      ]
176
    },
177
    "arrow-return-type": {
178
      "begin": "(?<=\\))\\s*(:)",
179
      "beginCaptures": {
180
        "1": {
181
          "name": "keyword.operator.type.annotation.js"
182
        }
183
      },
184
      "end": "(?==>|\\{|^(\\s*(export|function|class|interface|let|var|\\busing(?=\\s+(?!in\\b|of\\b(?!\\s*(?:of\\b|=)))[$_[:alpha:]])\\b|\\bawait\\s+\\busing(?=\\s+(?!in\\b|of\\b(?!\\s*(?:of\\b|=)))[$_[:alpha:]])\\b\\b|const|import|enum|namespace|module|type|abstract|declare)\\s+))",
185
      "name": "meta.return.type.arrow.js",
186
      "patterns": [
187
        {
188
          "include": "#arrow-return-type-body"
189
        }
190
      ]
191
    },
192
    "arrow-return-type-body": {
193
      "patterns": [
194
        {
195
          "begin": "(?<=:)(?=\\s*\\{)",
196
          "end": "(?<=})",
197
          "patterns": [
198
            {
199
              "include": "#type-object"
200
            }
201
          ]
202
        },
203
        {
204
          "include": "#type-predicate-operator"
205
        },
206
        {
207
          "include": "#type"
208
        }
209
      ]
210
    },
211
    "async-modifier": {
212
      "match": "(?<![$_[:alnum:]])(?:(?<=\\.\\.\\.)|(?<!\\.))(async)(?![$_[:alnum:]])(?:(?=\\.\\.\\.)|(?!\\.))",
213
      "name": "storage.modifier.async.js"
214
    },
215
    "binding-element": {
216
      "patterns": [
217
        {
218
          "include": "#comment"
219
        },
220
        {
221
          "include": "#string"
222
        },
223
        {
224
          "include": "#numeric-literal"
225
        },
226
        {
227
          "include": "#regex"
228
        },
229
        {
230
          "include": "#object-binding-pattern"
231
        },
232
        {
233
          "include": "#array-binding-pattern"
234
        },
235
        {
236
          "include": "#destructuring-variable-rest"
237
        },
238
        {
239
          "include": "#variable-initializer"
240
        }
241
      ]
242
    },
243
    "binding-element-const": {
244
      "patterns": [
245
        {
246
          "include": "#comment"
247
        },
248
        {
249
          "include": "#string"
250
        },
251
        {
252
          "include": "#numeric-literal"
253
        },
254
        {
255
          "include": "#regex"
256
        },
257
        {
258
          "include": "#object-binding-pattern-const"
259
        },
260
        {
261
          "include": "#array-binding-pattern-const"
262
        },
263
        {
264
          "include": "#destructuring-variable-rest-const"
265
        },
266
        {
267
          "include": "#variable-initializer"
268
        }
269
      ]
270
    },
271
    "boolean-literal": {
272
      "patterns": [
273
        {
274
          "match": "(?<![$_[:alnum:]])(?:(?<=\\.\\.\\.)|(?<!\\.))true(?![$_[:alnum:]])(?:(?=\\.\\.\\.)|(?!\\.))",
275
          "name": "constant.language.boolean.true.js"
276
        },
277
        {
278
          "match": "(?<![$_[:alnum:]])(?:(?<=\\.\\.\\.)|(?<!\\.))false(?![$_[:alnum:]])(?:(?=\\.\\.\\.)|(?!\\.))",
279
          "name": "constant.language.boolean.false.js"
280
        }
281
      ]
282
    },
283
    "brackets": {
284
      "patterns": [
285
        {
286
          "begin": "\\{",
287
          "end": "}|(?=\\*/)",
288
          "patterns": [
289
            {
290
              "include": "#brackets"
291
            }
292
          ]
293
        },
294
        {
295
          "begin": "\\[",
296
          "end": "]|(?=\\*/)",
297
          "patterns": [
298
            {
299
              "include": "#brackets"
300
            }
301
          ]
302
        }
303
      ]
304
    },
305
    "cast": {
306
      "patterns": [
307
        {
308
          "include": "#jsx"
309
        }
310
      ]
311
    },
312
    "class-declaration": {
313
      "begin": "(?<![$_[:alnum:]])(?:(?<=\\.\\.\\.)|(?<!\\.))(?:\\b(export)\\s+)?(?:\\b(declare)\\s+)?\\b(?:(abstract)\\s+)?\\b(class)\\b(?=\\s+|/[*/])",
314
      "beginCaptures": {
315
        "1": {
316
          "name": "keyword.control.export.js"
317
        },
318
        "2": {
319
          "name": "storage.modifier.js"
320
        },
321
        "3": {
322
          "name": "storage.modifier.js"
323
        },
324
        "4": {
325
          "name": "storage.type.class.js"
326
        }
327
      },
328
      "end": "(?<=})",
329
      "name": "meta.class.js",
330
      "patterns": [
331
        {
332
          "include": "#class-declaration-or-expression-patterns"
333
        }
334
      ]
335
    },
336
    "class-declaration-or-expression-patterns": {
337
      "patterns": [
338
        {
339
          "include": "#comment"
340
        },
341
        {
342
          "include": "#class-or-interface-heritage"
343
        },
344
        {
345
          "captures": {
346
            "0": {
347
              "name": "entity.name.type.class.js"
348
            }
349
          },
350
          "match": "[$_[:alpha:]][$_[:alnum:]]*"
351
        },
352
        {
353
          "include": "#type-parameters"
354
        },
355
        {
356
          "include": "#class-or-interface-body"
357
        }
358
      ]
359
    },
360
    "class-expression": {
361
      "begin": "(?<![$_[:alnum:]])(?:(?<=\\.\\.\\.)|(?<!\\.))(?:(abstract)\\s+)?(class)\\b(?=\\s+|[<{]|/[*/])",
362
      "beginCaptures": {
363
        "1": {
364
          "name": "storage.modifier.js"
365
        },
366
        "2": {
367
          "name": "storage.type.class.js"
368
        }
369
      },
370
      "end": "(?<=})",
371
      "name": "meta.class.js",
372
      "patterns": [
373
        {
374
          "include": "#class-declaration-or-expression-patterns"
375
        }
376
      ]
377
    },
378
    "class-or-interface-body": {
379
      "begin": "\\{",
380
      "beginCaptures": {
381
        "0": {
382
          "name": "punctuation.definition.block.js"
383
        }
384
      },
385
      "end": "}",
386
      "endCaptures": {
387
        "0": {
388
          "name": "punctuation.definition.block.js"
389
        }
390
      },
391
      "patterns": [
392
        {
393
          "include": "#comment"
394
        },
395
        {
396
          "include": "#decorator"
397
        },
398
        {
399
          "begin": "(?<=:)\\s*",
400
          "end": "(?=[-\\])+,:;}\\s]|^\\s*$|^\\s*(?:abstract|async|\\bawait\\s+\\busing(?=\\s+(?!in\\b|of\\b(?!\\s*(?:of\\b|=)))[$_[:alpha:]])\\b\\b|break|case|catch|class|const|continue|declare|do|else|enum|export|finally|function|for|goto|if|import|interface|let|module|namespace|switch|return|throw|try|type|\\busing(?=\\s+(?!in\\b|of\\b(?!\\s*(?:of\\b|=)))[$_[:alpha:]])\\b|var|while)\\b)",
401
          "patterns": [
402
            {
403
              "include": "#expression"
404
            }
405
          ]
406
        },
407
        {
408
          "include": "#method-declaration"
409
        },
410
        {
411
          "include": "#indexer-declaration"
412
        },
413
        {
414
          "include": "#field-declaration"
415
        },
416
        {
417
          "include": "#string"
418
        },
419
        {
420
          "include": "#type-annotation"
421
        },
422
        {
423
          "include": "#variable-initializer"
424
        },
425
        {
426
          "include": "#access-modifier"
427
        },
428
        {
429
          "include": "#property-accessor"
430
        },
431
        {
432
          "include": "#async-modifier"
433
        },
434
        {
435
          "include": "#after-operator-block-as-object-literal"
436
        },
437
        {
438
          "include": "#decl-block"
439
        },
440
        {
441
          "include": "#expression"
442
        },
443
        {
444
          "include": "#punctuation-comma"
445
        },
446
        {
447
          "include": "#punctuation-semicolon"
448
        }
449
      ]
450
    },
451
    "class-or-interface-heritage": {
452
      "begin": "(?<![$_[:alnum:]])(?:(?<=\\.\\.\\.)|(?<!\\.))\\b(extends|implements)\\b(?![$_[:alnum:]])(?:(?=\\.\\.\\.)|(?!\\.))",
453
      "beginCaptures": {
454
        "1": {
455
          "name": "storage.modifier.js"
456
        }
457
      },
458
      "end": "(?=\\{)",
459
      "patterns": [
460
        {
461
          "include": "#comment"
462
        },
463
        {
464
          "include": "#class-or-interface-heritage"
465
        },
466
        {
467
          "include": "#type-parameters"
468
        },
469
        {
470
          "include": "#expressionWithoutIdentifiers"
471
        },
472
        {
473
          "captures": {
474
            "1": {
475
              "name": "entity.name.type.module.js"
476
            },
477
            "2": {
478
              "name": "punctuation.accessor.js"
479
            },
480
            "3": {
481
              "name": "punctuation.accessor.optional.js"
482
            }
483
          },
484
          "match": "([$_[:alpha:]][$_[:alnum:]]*)\\s*(?:(\\.)|(\\?\\.(?!\\s*\\d)))(?=\\s*[$_[:alpha:]][$_[:alnum:]]*(\\s*\\??\\.\\s*[$_[:alpha:]][$_[:alnum:]]*)*\\s*)"
485
        },
486
        {
487
          "captures": {
488
            "1": {
489
              "name": "entity.other.inherited-class.js"
490
            }
491
          },
492
          "match": "([$_[:alpha:]][$_[:alnum:]]*)"
493
        },
494
        {
495
          "include": "#expressionPunctuations"
496
        }
497
      ]
498
    },
499
    "comment": {
500
      "patterns": [
501
        {
502
          "begin": "/\\*\\*(?!/)",
503
          "beginCaptures": {
504
            "0": {
505
              "name": "punctuation.definition.comment.js"
506
            }
507
          },
508
          "end": "\\*/",
509
          "endCaptures": {
510
            "0": {
511
              "name": "punctuation.definition.comment.js"
512
            }
513
          },
514
          "name": "comment.block.documentation.js",
515
          "patterns": [
516
            {
517
              "include": "#docblock"
518
            }
519
          ]
520
        },
521
        {
522
          "begin": "(/\\*)(?:\\s*((@)internal)(?=\\s|(\\*/)))?",
523
          "beginCaptures": {
524
            "1": {
525
              "name": "punctuation.definition.comment.js"
526
            },
527
            "2": {
528
              "name": "storage.type.internaldeclaration.js"
529
            },
530
            "3": {
531
              "name": "punctuation.decorator.internaldeclaration.js"
532
            }
533
          },
534
          "end": "\\*/",
535
          "endCaptures": {
536
            "0": {
537
              "name": "punctuation.definition.comment.js"
538
            }
539
          },
540
          "name": "comment.block.js"
541
        },
542
        {
543
          "begin": "(^[\\t ]+)?((//)(?:\\s*((@)internal)(?=\\s|$))?)",
544
          "beginCaptures": {
545
            "1": {
546
              "name": "punctuation.whitespace.comment.leading.js"
547
            },
548
            "2": {
549
              "name": "comment.line.double-slash.js"
550
            },
551
            "3": {
552
              "name": "punctuation.definition.comment.js"
553
            },
554
            "4": {
555
              "name": "storage.type.internaldeclaration.js"
556
            },
557
            "5": {
558
              "name": "punctuation.decorator.internaldeclaration.js"
559
            }
560
          },
561
          "contentName": "comment.line.double-slash.js",
562
          "end": "(?=$)"
563
        }
564
      ]
565
    },
566
    "control-statement": {
567
      "patterns": [
568
        {
569
          "include": "#switch-statement"
570
        },
571
        {
572
          "include": "#for-loop"
573
        },
574
        {
575
          "match": "(?<![$_[:alnum:]])(?:(?<=\\.\\.\\.)|(?<!\\.))(catch|finally|throw|try)(?![$_[:alnum:]])(?:(?=\\.\\.\\.)|(?!\\.))",
576
          "name": "keyword.control.trycatch.js"
577
        },
578
        {
579
          "captures": {
580
            "1": {
581
              "name": "keyword.control.loop.js"
582
            },
583
            "2": {
584
              "name": "entity.name.label.js"
585
            }
586
          },
587
          "match": "(?<![$_[:alnum:]])(?:(?<=\\.\\.\\.)|(?<!\\.))(break|continue|goto)\\s+([$_[:alpha:]][$_[:alnum:]]*)(?![$_[:alnum:]])(?:(?=\\.\\.\\.)|(?!\\.))"
588
        },
589
        {
590
          "match": "(?<![$_[:alnum:]])(?:(?<=\\.\\.\\.)|(?<!\\.))(break|continue|do|goto|while)(?![$_[:alnum:]])(?:(?=\\.\\.\\.)|(?!\\.))",
591
          "name": "keyword.control.loop.js"
592
        },
593
        {
594
          "begin": "(?<![$_[:alnum:]])(?:(?<=\\.\\.\\.)|(?<!\\.))(return)(?![$_[:alnum:]])(?:(?=\\.\\.\\.)|(?!\\.))",
595
          "beginCaptures": {
596
            "0": {
597
              "name": "keyword.control.flow.js"
598
            }
599
          },
600
          "end": "(?=[;}]|$|;|^\\s*$|^\\s*(?:abstract|async|\\bawait\\s+\\busing(?=\\s+(?!in\\b|of\\b(?!\\s*(?:of\\b|=)))[$_[:alpha:]])\\b\\b|break|case|catch|class|const|continue|declare|do|else|enum|export|finally|function|for|goto|if|import|interface|let|module|namespace|switch|return|throw|try|type|\\busing(?=\\s+(?!in\\b|of\\b(?!\\s*(?:of\\b|=)))[$_[:alpha:]])\\b|var|while)\\b)",
601
          "patterns": [
602
            {
603
              "include": "#expression"
604
            }
605
          ]
606
        },
607
        {
608
          "match": "(?<![$_[:alnum:]])(?:(?<=\\.\\.\\.)|(?<!\\.))(case|default|switch)(?![$_[:alnum:]])(?:(?=\\.\\.\\.)|(?!\\.))",
609
          "name": "keyword.control.switch.js"
610
        },
611
        {
612
          "include": "#if-statement"
613
        },
614
        {
615
          "match": "(?<![$_[:alnum:]])(?:(?<=\\.\\.\\.)|(?<!\\.))(else|if)(?![$_[:alnum:]])(?:(?=\\.\\.\\.)|(?!\\.))",
616
          "name": "keyword.control.conditional.js"
617
        },
618
        {
619
          "match": "(?<![$_[:alnum:]])(?:(?<=\\.\\.\\.)|(?<!\\.))(with)(?![$_[:alnum:]])(?:(?=\\.\\.\\.)|(?!\\.))",
620
          "name": "keyword.control.with.js"
621
        },
622
        {
623
          "match": "(?<![$_[:alnum:]])(?:(?<=\\.\\.\\.)|(?<!\\.))(package)(?![$_[:alnum:]])(?:(?=\\.\\.\\.)|(?!\\.))",
624
          "name": "keyword.control.js"
625
        },
626
        {
627
          "match": "(?<![$_[:alnum:]])(?:(?<=\\.\\.\\.)|(?<!\\.))(debugger)(?![$_[:alnum:]])(?:(?=\\.\\.\\.)|(?!\\.))",
628
          "name": "keyword.other.debugger.js"
629
        }
630
      ]
631
    },
632
    "decl-block": {
633
      "begin": "\\{",
634
      "beginCaptures": {
635
        "0": {
636
          "name": "punctuation.definition.block.js"
637
        }
638
      },
639
      "end": "}",
640
      "endCaptures": {
641
        "0": {
642
          "name": "punctuation.definition.block.js"
643
        }
644
      },
645
      "name": "meta.block.js",
646
      "patterns": [
647
        {
648
          "include": "#statements"
649
        }
650
      ]
651
    },
652
    "declaration": {
653
      "patterns": [
654
        {
655
          "include": "#decorator"
656
        },
657
        {
658
          "include": "#var-expr"
659
        },
660
        {
661
          "include": "#function-declaration"
662
        },
663
        {
664
          "include": "#class-declaration"
665
        },
666
        {
667
          "include": "#interface-declaration"
668
        },
669
        {
670
          "include": "#enum-declaration"
671
        },
672
        {
673
          "include": "#namespace-declaration"
674
        },
675
        {
676
          "include": "#type-alias-declaration"
677
        },
678
        {
679
          "include": "#import-equals-declaration"
680
        },
681
        {
682
          "include": "#import-declaration"
683
        },
684
        {
685
          "include": "#export-declaration"
686
        },
687
        {
688
          "match": "(?<![$_[:alnum:]])(?:(?<=\\.\\.\\.)|(?<!\\.))(declare|export)(?![$_[:alnum:]])(?:(?=\\.\\.\\.)|(?!\\.))",
689
          "name": "storage.modifier.js"
690
        }
691
      ]
692
    },
693
    "decorator": {
694
      "begin": "(?<![$_[:alnum:]])(?:(?<=\\.\\.\\.)|(?<!\\.))@",
695
      "beginCaptures": {
696
        "0": {
697
          "name": "punctuation.decorator.js"
698
        }
699
      },
700
      "end": "(?=\\s)",
701
      "name": "meta.decorator.js",
702
      "patterns": [
703
        {
704
          "include": "#expression"
705
        }
706
      ]
707
    },
708
    "destructuring-const": {
709
      "patterns": [
710
        {
711
          "begin": "(?<![:=]|^of|[^$._[:alnum:]]of|^in|[^$._[:alnum:]]in)\\s*(?=\\{)",
712
          "end": "(?=$|^|[,;=}]|((?<![$_[:alnum:]])(?:(?<=\\.\\.\\.)|(?<!\\.))(of|in)\\s+))",
713
          "name": "meta.object-binding-pattern-variable.js",
714
          "patterns": [
715
            {
716
              "include": "#object-binding-pattern-const"
717
            },
718
            {
719
              "include": "#type-annotation"
720
            },
721
            {
722
              "include": "#comment"
723
            }
724
          ]
725
        },
726
        {
727
          "begin": "(?<![:=]|^of|[^$._[:alnum:]]of|^in|[^$._[:alnum:]]in)\\s*(?=\\[)",
728
          "end": "(?=$|^|[,;=}]|((?<![$_[:alnum:]])(?:(?<=\\.\\.\\.)|(?<!\\.))(of|in)\\s+))",
729
          "name": "meta.array-binding-pattern-variable.js",
730
          "patterns": [
731
            {
732
              "include": "#array-binding-pattern-const"
733
            },
734
            {
735
              "include": "#type-annotation"
736
            },
737
            {
738
              "include": "#comment"
739
            }
740
          ]
741
        }
742
      ]
743
    },
744
    "destructuring-parameter": {
745
      "patterns": [
746
        {
747
          "begin": "(?<![:=])\\s*(?:(\\.\\.\\.)\\s*)?(\\{)",
748
          "beginCaptures": {
749
            "1": {
750
              "name": "keyword.operator.rest.js"
751
            },
752
            "2": {
753
              "name": "punctuation.definition.binding-pattern.object.js"
754
            }
755
          },
756
          "end": "}",
757
          "endCaptures": {
758
            "0": {
759
              "name": "punctuation.definition.binding-pattern.object.js"
760
            }
761
          },
762
          "name": "meta.parameter.object-binding-pattern.js",
763
          "patterns": [
764
            {
765
              "include": "#parameter-object-binding-element"
766
            }
767
          ]
768
        },
769
        {
770
          "begin": "(?<![:=])\\s*(?:(\\.\\.\\.)\\s*)?(\\[)",
771
          "beginCaptures": {
772
            "1": {
773
              "name": "keyword.operator.rest.js"
774
            },
775
            "2": {
776
              "name": "punctuation.definition.binding-pattern.array.js"
777
            }
778
          },
779
          "end": "]",
780
          "endCaptures": {
781
            "0": {
782
              "name": "punctuation.definition.binding-pattern.array.js"
783
            }
784
          },
785
          "name": "meta.paramter.array-binding-pattern.js",
786
          "patterns": [
787
            {
788
              "include": "#parameter-binding-element"
789
            },
790
            {
791
              "include": "#punctuation-comma"
792
            }
793
          ]
794
        }
795
      ]
796
    },
797
    "destructuring-parameter-rest": {
798
      "captures": {
799
        "1": {
800
          "name": "keyword.operator.rest.js"
801
        },
802
        "2": {
803
          "name": "variable.parameter.js"
804
        }
805
      },
806
      "match": "(?:(\\.\\.\\.)\\s*)?([$_[:alpha:]][$_[:alnum:]]*)"
807
    },
808
    "destructuring-variable": {
809
      "patterns": [
810
        {
811
          "begin": "(?<![:=]|^of|[^$._[:alnum:]]of|^in|[^$._[:alnum:]]in)\\s*(?=\\{)",
812
          "end": "(?=$|^|[,;=}]|((?<![$_[:alnum:]])(?:(?<=\\.\\.\\.)|(?<!\\.))(of|in)\\s+))",
813
          "name": "meta.object-binding-pattern-variable.js",
814
          "patterns": [
815
            {
816
              "include": "#object-binding-pattern"
817
            },
818
            {
819
              "include": "#type-annotation"
820
            },
821
            {
822
              "include": "#comment"
823
            }
824
          ]
825
        },
826
        {
827
          "begin": "(?<![:=]|^of|[^$._[:alnum:]]of|^in|[^$._[:alnum:]]in)\\s*(?=\\[)",
828
          "end": "(?=$|^|[,;=}]|((?<![$_[:alnum:]])(?:(?<=\\.\\.\\.)|(?<!\\.))(of|in)\\s+))",
829
          "name": "meta.array-binding-pattern-variable.js",
830
          "patterns": [
831
            {
832
              "include": "#array-binding-pattern"
833
            },
834
            {
835
              "include": "#type-annotation"
836
            },
837
            {
838
              "include": "#comment"
839
            }
840
          ]
841
        }
842
      ]
843
    },
844
    "destructuring-variable-rest": {
845
      "captures": {
846
        "1": {
847
          "name": "keyword.operator.rest.js"
848
        },
849
        "2": {
850
          "name": "meta.definition.variable.js variable.other.readwrite.js"
851
        }
852
      },
853
      "match": "(?:(\\.\\.\\.)\\s*)?([$_[:alpha:]][$_[:alnum:]]*)"
854
    },
855
    "destructuring-variable-rest-const": {
856
      "captures": {
857
        "1": {
858
          "name": "keyword.operator.rest.js"
859
        },
860
        "2": {
861
          "name": "meta.definition.variable.js variable.other.constant.js"
862
        }
863
      },
864
      "match": "(?:(\\.\\.\\.)\\s*)?([$_[:alpha:]][$_[:alnum:]]*)"
865
    },
866
    "directives": {
867
      "begin": "^(///)\\s*(?=<(reference|amd-dependency|amd-module)(\\s+(path|types|no-default-lib|lib|name|resolution-mode)\\s*=\\s*(('([^'\\\\]|\\\\.)*')|(\"([^\"\\\\]|\\\\.)*\")|(`([^\\\\`]|\\\\.)*`)))+\\s*/>\\s*$)",
868
      "beginCaptures": {
869
        "1": {
870
          "name": "punctuation.definition.comment.js"
871
        }
872
      },
873
      "end": "(?=$)",
874
      "name": "comment.line.triple-slash.directive.js",
875
      "patterns": [
876
        {
877
          "begin": "(<)(reference|amd-dependency|amd-module)",
878
          "beginCaptures": {
879
            "1": {
880
              "name": "punctuation.definition.tag.directive.js"
881
            },
882
            "2": {
883
              "name": "entity.name.tag.directive.js"
884
            }
885
          },
886
          "end": "/>",
887
          "endCaptures": {
888
            "0": {
889
              "name": "punctuation.definition.tag.directive.js"
890
            }
891
          },
892
          "name": "meta.tag.js",
893
          "patterns": [
894
            {
895
              "match": "path|types|no-default-lib|lib|name|resolution-mode",
896
              "name": "entity.other.attribute-name.directive.js"
897
            },
898
            {
899
              "match": "=",
900
              "name": "keyword.operator.assignment.js"
901
            },
902
            {
903
              "include": "#string"
904
            }
905
          ]
906
        }
907
      ]
908
    },
909
    "docblock": {
910
      "patterns": [
911
        {
912
          "captures": {
913
            "1": {
914
              "name": "storage.type.class.jsdoc"
915
            },
916
            "2": {
917
              "name": "punctuation.definition.block.tag.jsdoc"
918
            },
919
            "3": {
920
              "name": "constant.language.access-type.jsdoc"
921
            }
922
          },
923
          "match": "((@)a(?:ccess|pi))\\s+(p(?:rivate|rotected|ublic))\\b"
924
        },
925
        {
926
          "captures": {
927
            "1": {
928
              "name": "storage.type.class.jsdoc"
929
            },
930
            "2": {
931
              "name": "punctuation.definition.block.tag.jsdoc"
932
            },
933
            "3": {
934
              "name": "entity.name.type.instance.jsdoc"
935
            },
936
            "4": {
937
              "name": "punctuation.definition.bracket.angle.begin.jsdoc"
938
            },
939
            "5": {
940
              "name": "constant.other.email.link.underline.jsdoc"
941
            },
942
            "6": {
943
              "name": "punctuation.definition.bracket.angle.end.jsdoc"
944
            }
945
          },
946
          "match": "((@)author)\\s+([^*/<>@\\s](?:[^*/<>@]|\\*[^/])*)(?:\\s*(<)([^>\\s]+)(>))?"
947
        },
948
        {
949
          "captures": {
950
            "1": {
951
              "name": "storage.type.class.jsdoc"
952
            },
953
            "2": {
954
              "name": "punctuation.definition.block.tag.jsdoc"
955
            },
956
            "3": {
957
              "name": "entity.name.type.instance.jsdoc"
958
            },
959
            "4": {
960
              "name": "keyword.operator.control.jsdoc"
961
            },
962
            "5": {
963
              "name": "entity.name.type.instance.jsdoc"
964
            }
965
          },
966
          "match": "((@)borrows)\\s+((?:[^*/@\\s]|\\*[^/])+)\\s+(as)\\s+((?:[^*/@\\s]|\\*[^/])+)"
967
        },
968
        {
969
          "begin": "((@)example)\\s+",
970
          "beginCaptures": {
971
            "1": {
972
              "name": "storage.type.class.jsdoc"
973
            },
974
            "2": {
975
              "name": "punctuation.definition.block.tag.jsdoc"
976
            }
977
          },
978
          "end": "(?=@|\\*/)",
979
          "name": "meta.example.jsdoc",
980
          "patterns": [
981
            {
982
              "match": "^\\s\\*\\s+"
983
            },
984
            {
985
              "begin": "\\G(<)caption(>)",
986
              "beginCaptures": {
987
                "0": {
988
                  "name": "entity.name.tag.inline.jsdoc"
989
                },
990
                "1": {
991
                  "name": "punctuation.definition.bracket.angle.begin.jsdoc"
992
                },
993
                "2": {
994
                  "name": "punctuation.definition.bracket.angle.end.jsdoc"
995
                }
996
              },
997
              "contentName": "constant.other.description.jsdoc",
998
              "end": "(</)caption(>)|(?=\\*/)",
999
              "endCaptures": {
1000
                "0": {
1001
                  "name": "entity.name.tag.inline.jsdoc"
1002
                },
1003
                "1": {
1004
                  "name": "punctuation.definition.bracket.angle.begin.jsdoc"
1005
                },
1006
                "2": {
1007
                  "name": "punctuation.definition.bracket.angle.end.jsdoc"
1008
                }
1009
              }
1010
            },
1011
            {
1012
              "captures": {
1013
                "0": {
1014
                  "name": "source.embedded.js"
1015
                }
1016
              },
1017
              "match": "[^*@\\s](?:[^*]|\\*[^/])*"
1018
            }
1019
          ]
1020
        },
1021
        {
1022
          "captures": {
1023
            "1": {
1024
              "name": "storage.type.class.jsdoc"
1025
            },
1026
            "2": {
1027
              "name": "punctuation.definition.block.tag.jsdoc"
1028
            },
1029
            "3": {
1030
              "name": "constant.language.symbol-type.jsdoc"
1031
            }
1032
          },
1033
          "match": "((@)kind)\\s+(class|constant|event|external|file|function|member|mixin|module|namespace|typedef)\\b"
1034
        },
1035
        {
1036
          "captures": {
1037
            "1": {
1038
              "name": "storage.type.class.jsdoc"
1039
            },
1040
            "2": {
1041
              "name": "punctuation.definition.block.tag.jsdoc"
1042
            },
1043
            "3": {
1044
              "name": "variable.other.link.underline.jsdoc"
1045
            },
1046
            "4": {
1047
              "name": "entity.name.type.instance.jsdoc"
1048
            }
1049
          },
1050
          "match": "((@)see)\\s+(?:((?=https?://)(?:[^*\\s]|\\*[^/])+)|((?!https?://|(?:\\[[^]\\[]*])?\\{@(?:link|linkcode|linkplain|tutorial)\\b)(?:[^*/@\\s]|\\*[^/])+))"
1051
        },
1052
        {
1053
          "captures": {
1054
            "1": {
1055
              "name": "storage.type.class.jsdoc"
1056
            },
1057
            "2": {
1058
              "name": "punctuation.definition.block.tag.jsdoc"
1059
            },
1060
            "3": {
1061
              "name": "variable.other.jsdoc"
1062
            }
1063
          },
1064
          "match": "((@)template)\\s+([$A-Z_a-z][]$.\\[\\w]*(?:\\s*,\\s*[$A-Z_a-z][]$.\\[\\w]*)*)"
1065
        },
1066
        {
1067
          "begin": "((@)template)\\s+(?=\\{)",
1068
          "beginCaptures": {
1069
            "1": {
1070
              "name": "storage.type.class.jsdoc"
1071
            },
1072
            "2": {
1073
              "name": "punctuation.definition.block.tag.jsdoc"
1074
            }
1075
          },
1076
          "end": "(?=\\s|\\*/|[^]$A-\\[_a-{}])",
1077
          "patterns": [
1078
            {
1079
              "include": "#jsdoctype"
1080
            },
1081
            {
1082
              "match": "([$A-Z_a-z][]$.\\[\\w]*)",
1083
              "name": "variable.other.jsdoc"
1084
            }
1085
          ]
1086
        },
1087
        {
1088
          "captures": {
1089
            "1": {
1090
              "name": "storage.type.class.jsdoc"
1091
            },
1092
            "2": {
1093
              "name": "punctuation.definition.block.tag.jsdoc"
1094
            },
1095
            "3": {
1096
              "name": "variable.other.jsdoc"
1097
            }
1098
          },
1099
          "match": "((@)(?:arg|argument|const|constant|member|namespace|param|var))\\s+([$A-Z_a-z][]$.\\[\\w]*)"
1100
        },
1101
        {
1102
          "begin": "((@)typedef)\\s+(?=\\{)",
1103
          "beginCaptures": {
1104
            "1": {
1105
              "name": "storage.type.class.jsdoc"
1106
            },
1107
            "2": {
1108
              "name": "punctuation.definition.block.tag.jsdoc"
1109
            }
1110
          },
1111
          "end": "(?=\\s|\\*/|[^]$A-\\[_a-{}])",
1112
          "patterns": [
1113
            {
1114
              "include": "#jsdoctype"
1115
            },
1116
            {
1117
              "match": "(?:[^*/@\\s]|\\*[^/])+",
1118
              "name": "entity.name.type.instance.jsdoc"
1119
            }
1120
          ]
1121
        },
1122
        {
1123
          "begin": "((@)(?:arg|argument|const|constant|member|namespace|param|prop|property|var))\\s+(?=\\{)",
1124
          "beginCaptures": {
1125
            "1": {
1126
              "name": "storage.type.class.jsdoc"
1127
            },
1128
            "2": {
1129
              "name": "punctuation.definition.block.tag.jsdoc"
1130
            }
1131
          },
1132
          "end": "(?=\\s|\\*/|[^]$A-\\[_a-{}])",
1133
          "patterns": [
1134
            {
1135
              "include": "#jsdoctype"
1136
            },
1137
            {
1138
              "match": "([$A-Z_a-z][]$.\\[\\w]*)",
1139
              "name": "variable.other.jsdoc"
1140
            },
1141
            {
1142
              "captures": {
1143
                "1": {
1144
                  "name": "punctuation.definition.optional-value.begin.bracket.square.jsdoc"
1145
                },
1146
                "2": {
1147
                  "name": "keyword.operator.assignment.jsdoc"
1148
                },
1149
                "3": {
1150
                  "name": "source.embedded.js"
1151
                },
1152
                "4": {
1153
                  "name": "punctuation.definition.optional-value.end.bracket.square.jsdoc"
1154
                },
1155
                "5": {
1156
                  "name": "invalid.illegal.syntax.jsdoc"
1157
                }
1158
              },
1159
              "match": "(\\[)\\s*[$\\w]+(?:(?:\\[])?\\.[$\\w]+)*(?:\\s*(=)\\s*((?>\"(?:\\*(?!/)|\\\\(?!\")|[^*\\\\])*?\"|'(?:\\*(?!/)|\\\\(?!')|[^*\\\\])*?'|\\[(?:\\*(?!/)|[^*])*?]|(?:\\*(?!/)|\\s(?!\\s*])|\\[.*?(?:]|(?=\\*/))|[^]*\\[\\s])*)*))?\\s*(?:(])((?:[^*\\s]|\\*[^/\\s])+)?|(?=\\*/))",
1160
              "name": "variable.other.jsdoc"
1161
            }
1162
          ]
1163
        },
1164
        {
1165
          "begin": "((@)(?:define|enum|exception|export|extends|lends|implements|modifies|namespace|private|protected|returns?|satisfies|suppress|this|throws|type|yields?))\\s+(?=\\{)",
1166
          "beginCaptures": {
1167
            "1": {
1168
              "name": "storage.type.class.jsdoc"
1169
            },
1170
            "2": {
1171
              "name": "punctuation.definition.block.tag.jsdoc"
1172
            }
1173
          },
1174
          "end": "(?=\\s|\\*/|[^]$A-\\[_a-{}])",
1175
          "patterns": [
1176
            {
1177
              "include": "#jsdoctype"
1178
            }
1179
          ]
1180
        },
1181
        {
1182
          "captures": {
1183
            "1": {
1184
              "name": "storage.type.class.jsdoc"
1185
            },
1186
            "2": {
1187
              "name": "punctuation.definition.block.tag.jsdoc"
1188
            },
1189
            "3": {
1190
              "name": "entity.name.type.instance.jsdoc"
1191
            }
1192
          },
1193
          "match": "((@)(?:alias|augments|callback|constructs|emits|event|fires|exports?|extends|external|function|func|host|lends|listens|interface|memberof!?|method|module|mixes|mixin|name|requires|see|this|typedef|uses))\\s+((?:[^*@{}\\s]|\\*[^/])+)"
1194
        },
1195
        {
1196
          "begin": "((@)(?:default(?:value)?|license|version))\\s+(([\"']))",
1197
          "beginCaptures": {
1198
            "1": {
1199
              "name": "storage.type.class.jsdoc"
1200
            },
1201
            "2": {
1202
              "name": "punctuation.definition.block.tag.jsdoc"
1203
            },
1204
            "3": {
1205
              "name": "variable.other.jsdoc"
1206
            },
1207
            "4": {
1208
              "name": "punctuation.definition.string.begin.jsdoc"
1209
            }
1210
          },
1211
          "contentName": "variable.other.jsdoc",
1212
          "end": "(\\3)|(?=$|\\*/)",
1213
          "endCaptures": {
1214
            "0": {
1215
              "name": "variable.other.jsdoc"
1216
            },
1217
            "1": {
1218
              "name": "punctuation.definition.string.end.jsdoc"
1219
            }
1220
          }
1221
        },
1222
        {
1223
          "captures": {
1224
            "1": {
1225
              "name": "storage.type.class.jsdoc"
1226
            },
1227
            "2": {
1228
              "name": "punctuation.definition.block.tag.jsdoc"
1229
            },
1230
            "3": {
1231
              "name": "variable.other.jsdoc"
1232
            }
1233
          },
1234
          "match": "((@)(?:default(?:value)?|license|tutorial|variation|version))\\s+([^*\\s]+)"
1235
        },
1236
        {
1237
          "captures": {
1238
            "1": {
1239
              "name": "punctuation.definition.block.tag.jsdoc"
1240
            }
1241
          },
1242
          "match": "(@)(?:abstract|access|alias|api|arg|argument|async|attribute|augments|author|beta|borrows|bubbles|callback|chainable|class|classdesc|code|config|const|constant|constructor|constructs|copyright|default|defaultvalue|define|deprecated|desc|description|dict|emits|enum|event|example|exception|exports?|extends|extension(?:_?for)?|external|externs|file|fileoverview|final|fires|for|func|function|generator|global|hideconstructor|host|ignore|implements|implicitCast|inherit[Dd]oc|inner|instance|interface|internal|kind|lends|license|listens|main|member|memberof!?|method|mixes|mixins?|modifies|module|name|namespace|noalias|nocollapse|nocompile|nosideeffects|override|overview|package|param|polymer(?:Behavior)?|preserve|private|prop|property|protected|public|read[Oo]nly|record|require[ds]|returns?|see|since|static|struct|submodule|summary|suppress|template|this|throws|todo|tutorial|type|typedef|unrestricted|uses|var|variation|version|virtual|writeOnce|yields?)\\b",
1243
          "name": "storage.type.class.jsdoc"
1244
        },
1245
        {
1246
          "include": "#inline-tags"
1247
        },
1248
        {
1249
          "captures": {
1250
            "1": {
1251
              "name": "storage.type.class.jsdoc"
1252
            },
1253
            "2": {
1254
              "name": "punctuation.definition.block.tag.jsdoc"
1255
            }
1256
          },
1257
          "match": "((@)[$_[:alpha:]][$_[:alnum:]]*)(?=\\s+)"
1258
        }
1259
      ]
1260
    },
1261
    "enum-declaration": {
1262
      "begin": "(?<![$_[:alnum:]])(?:(?<=\\.\\.\\.)|(?<!\\.))(?:\\b(export)\\s+)?(?:\\b(declare)\\s+)?(?:\\b(const)\\s+)?\\b(enum)\\s+([$_[:alpha:]][$_[:alnum:]]*)",
1263
      "beginCaptures": {
1264
        "1": {
1265
          "name": "keyword.control.export.js"
1266
        },
1267
        "2": {
1268
          "name": "storage.modifier.js"
1269
        },
1270
        "3": {
1271
          "name": "storage.modifier.js"
1272
        },
1273
        "4": {
1274
          "name": "storage.type.enum.js"
1275
        },
1276
        "5": {
1277
          "name": "entity.name.type.enum.js"
1278
        }
1279
      },
1280
      "end": "(?<=})",
1281
      "name": "meta.enum.declaration.js",
1282
      "patterns": [
1283
        {
1284
          "include": "#comment"
1285
        },
1286
        {
1287
          "begin": "\\{",
1288
          "beginCaptures": {
1289
            "0": {
1290
              "name": "punctuation.definition.block.js"
1291
            }
1292
          },
1293
          "end": "}",
1294
          "endCaptures": {
1295
            "0": {
1296
              "name": "punctuation.definition.block.js"
1297
            }
1298
          },
1299
          "patterns": [
1300
            {
1301
              "include": "#comment"
1302
            },
1303
            {
1304
              "begin": "([$_[:alpha:]][$_[:alnum:]]*)",
1305
              "beginCaptures": {
1306
                "0": {
1307
                  "name": "variable.other.enummember.js"
1308
                }
1309
              },
1310
              "end": "(?=[,}]|$)",
1311
              "patterns": [
1312
                {
1313
                  "include": "#comment"
1314
                },
1315
                {
1316
                  "include": "#variable-initializer"
1317
                }
1318
              ]
1319
            },
1320
            {
1321
              "begin": "(?=(('([^'\\\\]|\\\\.)*')|(\"([^\"\\\\]|\\\\.)*\")|(`([^\\\\`]|\\\\.)*`)|(\\[([^]\\[]|\\[[^]\\[]*])+])))",
1322
              "end": "(?=[,}]|$)",
1323
              "patterns": [
1324
                {
1325
                  "include": "#string"
1326
                },
1327
                {
1328
                  "include": "#array-literal"
1329
                },
1330
                {
1331
                  "include": "#comment"
1332
                },
1333
                {
1334
                  "include": "#variable-initializer"
1335
                }
1336
              ]
1337
            },
1338
            {
1339
              "include": "#punctuation-comma"
1340
            }
1341
          ]
1342
        }
1343
      ]
1344
    },
1345
    "export-declaration": {
1346
      "patterns": [
1347
        {
1348
          "captures": {
1349
            "1": {
1350
              "name": "keyword.control.export.js"
1351
            },
1352
            "2": {
1353
              "name": "keyword.control.as.js"
1354
            },
1355
            "3": {
1356
              "name": "storage.type.namespace.js"
1357
            },
1358
            "4": {
1359
              "name": "entity.name.type.module.js"
1360
            }
1361
          },
1362
          "match": "(?<![$_[:alnum:]])(?:(?<=\\.\\.\\.)|(?<!\\.))(export)\\s+(as)\\s+(namespace)\\s+([$_[:alpha:]][$_[:alnum:]]*)"
1363
        },
1364
        {
1365
          "begin": "(?<![$_[:alnum:]])(?:(?<=\\.\\.\\.)|(?<!\\.))(export)(?:\\s+(type))?(?:\\s*(=)|\\s+(default)(?=\\s+))",
1366
          "beginCaptures": {
1367
            "1": {
1368
              "name": "keyword.control.export.js"
1369
            },
1370
            "2": {
1371
              "name": "keyword.control.type.js"
1372
            },
1373
            "3": {
1374
              "name": "keyword.operator.assignment.js"
1375
            },
1376
            "4": {
1377
              "name": "keyword.control.default.js"
1378
            }
1379
          },
1380
          "end": "(?=$|;|^\\s*$|^\\s*(?:abstract|async|\\bawait\\s+\\busing(?=\\s+(?!in\\b|of\\b(?!\\s*(?:of\\b|=)))[$_[:alpha:]])\\b\\b|break|case|catch|class|const|continue|declare|do|else|enum|export|finally|function|for|goto|if|import|interface|let|module|namespace|switch|return|throw|try|type|\\busing(?=\\s+(?!in\\b|of\\b(?!\\s*(?:of\\b|=)))[$_[:alpha:]])\\b|var|while)\\b)",
1381
          "name": "meta.export.default.js",
1382
          "patterns": [
1383
            {
1384
              "include": "#interface-declaration"
1385
            },
1386
            {
1387
              "include": "#expression"
1388
            }
1389
          ]
1390
        },
1391
        {
1392
          "begin": "(?<![$_[:alnum:]])(?:(?<=\\.\\.\\.)|(?<!\\.))(export)(?:\\s+(type))?\\b(?!(\\$)|(\\s*:))((?=\\s*[*{])|((?=\\s*[$_[:alpha:]][$_[:alnum:]]*([,\\s]))(?!\\s*(?:abstract|async|\\bawait\\s+\\busing(?=\\s+(?!in\\b|of\\b(?!\\s*(?:of\\b|=)))[$_[:alpha:]])\\b\\b|break|case|catch|class|const|continue|declare|do|else|enum|export|finally|function|for|goto|if|import|interface|let|module|namespace|switch|return|throw|try|type|\\busing(?=\\s+(?!in\\b|of\\b(?!\\s*(?:of\\b|=)))[$_[:alpha:]])\\b|var|while)\\b)))",
1393
          "beginCaptures": {
1394
            "1": {
1395
              "name": "keyword.control.export.js"
1396
            },
1397
            "2": {
1398
              "name": "keyword.control.type.js"
1399
            }
1400
          },
1401
          "end": "(?=$|;|^\\s*$|^\\s*(?:abstract|async|\\bawait\\s+\\busing(?=\\s+(?!in\\b|of\\b(?!\\s*(?:of\\b|=)))[$_[:alpha:]])\\b\\b|break|case|catch|class|const|continue|declare|do|else|enum|export|finally|function|for|goto|if|import|interface|let|module|namespace|switch|return|throw|try|type|\\busing(?=\\s+(?!in\\b|of\\b(?!\\s*(?:of\\b|=)))[$_[:alpha:]])\\b|var|while)\\b)",
1402
          "name": "meta.export.js",
1403
          "patterns": [
1404
            {
1405
              "include": "#import-export-declaration"
1406
            }
1407
          ]
1408
        }
1409
      ]
1410
    },
1411
    "expression": {
1412
      "patterns": [
1413
        {
1414
          "include": "#expressionWithoutIdentifiers"
1415
        },
1416
        {
1417
          "include": "#identifiers"
1418
        },
1419
        {
1420
          "include": "#expressionPunctuations"
1421
        }
1422
      ]
1423
    },
1424
    "expression-inside-possibly-arrow-parens": {
1425
      "patterns": [
1426
        {
1427
          "include": "#expressionWithoutIdentifiers"
1428
        },
1429
        {
1430
          "include": "#comment"
1431
        },
1432
        {
1433
          "include": "#string"
1434
        },
1435
        {
1436
          "include": "#decorator"
1437
        },
1438
        {
1439
          "include": "#destructuring-parameter"
1440
        },
1441
        {
1442
          "captures": {
1443
            "1": {
1444
              "name": "storage.modifier.js"
1445
            }
1446
          },
1447
          "match": "(?<![$_[:alnum:]])(?:(?<=\\.\\.\\.)|(?<!\\.))(override|public|protected|private|readonly)\\s+(?=(override|public|protected|private|readonly)\\s+)"
1448
        },
1449
        {
1450
          "captures": {
1451
            "1": {
1452
              "name": "storage.modifier.js"
1453
            },
1454
            "2": {
1455
              "name": "keyword.operator.rest.js"
1456
            },
1457
            "3": {
1458
              "name": "entity.name.function.js variable.language.this.js"
1459
            },
1460
            "4": {
1461
              "name": "entity.name.function.js"
1462
            },
1463
            "5": {
1464
              "name": "keyword.operator.optional.js"
1465
            }
1466
          },
1467
          "match": "(?:(?<![$_[:alnum:]])(?:(?<=\\.\\.\\.)|(?<!\\.))(override|public|private|protected|readonly)\\s+)?(?:(\\.\\.\\.)\\s*)?(?<![:=])(?<![$_[:alnum:]])(?:(?<=\\.\\.\\.)|(?<!\\.))(?:(this)|([$_[:alpha:]][$_[:alnum:]]*))(?![$_[:alnum:]])(?:(?=\\.\\.\\.)|(?!\\.))\\s*(\\??)(?=\\s*(=\\s*(((async\\s+)?((function\\s*[(*<])|(function\\s+)|([$_[:alpha:]][$_[:alnum:]]*\\s*=>)))|((async\\s*)?(((<\\s*)$|(\\(\\s*((([\\[{]\\s*)?)$|((\\{([^{}]|(\\{([^{}]|\\{[^{}]*})*}))*})\\s*((:\\s*\\{?)$|((\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\([^()]+\\)|\\{[^{}]+})+\\s*)?=\\s*)))|((\\[([^]\\[]|(\\[([^]\\[]|\\[[^]\\[]*])*]))*])\\s*((:\\s*\\[?)$|((\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\([^()]+\\)|\\{[^{}]+})+\\s*)?=\\s*))))))|((<\\s*(((const\\s+)?[$_[:alpha:]])|(\\{([^{}]|(\\{([^{}]|\\{[^{}]*})*}))*})|(\\(([^()]|(\\(([^()]|\\([^()]*\\))*\\)))*\\))|(\\[([^]\\[]|(\\[([^]\\[]|\\[[^]\\[]*])*]))*]))([^<=>]|=[^<]|<\\s*(((const\\s+)?[$_[:alpha:]])|(\\{([^{}]|(\\{([^{}]|\\{[^{}]*})*}))*})|(\\(([^()]|(\\(([^()]|\\([^()]*\\))*\\)))*\\))|(\\[([^]\\[]|(\\[([^]\\[]|\\[[^]\\[]*])*]))*]))([^<=>]|=[^<]|<\\s*(((const\\s+)?[$_[:alpha:]])|(\\{([^{}]|(\\{([^{}]|\\{[^{}]*})*}))*})|(\\(([^()]|(\\(([^()]|\\([^()]*\\))*\\)))*\\))|(\\[([^]\\[]|(\\[([^]\\[]|\\[[^]\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\s*)?\\(\\s*(/\\*([^*]|(\\*[^/]))*\\*/\\s*)*((\\)\\s*:)|((\\.\\.\\.\\s*)?[$_[:alpha:]][$_[:alnum:]]*\\s*:)))|(<\\s*[$_[:alpha:]][$_[:alnum:]]*\\s+extends\\s*[^=>])|((<\\s*(((const\\s+)?[$_[:alpha:]])|(\\{([^{}]|(\\{([^{}]|\\{[^{}]*})*}))*})|(\\(([^()]|(\\(([^()]|\\([^()]*\\))*\\)))*\\))|(\\[([^]\\[]|(\\[([^]\\[]|\\[[^]\\[]*])*]))*]))([^<=>]|=[^<]|<\\s*(((const\\s+)?[$_[:alpha:]])|(\\{([^{}]|(\\{([^{}]|\\{[^{}]*})*}))*})|(\\(([^()]|(\\(([^()]|\\([^()]*\\))*\\)))*\\))|(\\[([^]\\[]|(\\[([^]\\[]|\\[[^]\\[]*])*]))*]))([^<=>]|=[^<]|<\\s*(((const\\s+)?[$_[:alpha:]])|(\\{([^{}]|(\\{([^{}]|\\{[^{}]*})*}))*})|(\\(([^()]|(\\(([^()]|\\([^()]*\\))*\\)))*\\))|(\\[([^]\\[]|(\\[([^]\\[]|\\[[^]\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\s*)?\\(\\s*(/\\*([^*]|(\\*[^/]))*\\*/\\s*)*(([$_[:alpha:]]|(\\{([^{}]|(\\{([^{}]|\\{[^{}]*})*}))*})|(\\[([^]\\[]|(\\[([^]\\[]|\\[[^]\\[]*])*]))*])|(\\.\\.\\.\\s*[$_[:alpha:]]))([^\"'()`]|(\\(([^()]|(\\(([^()]|\\([^()]*\\))*\\)))*\\))|('([^'\\\\]|\\\\.)*')|(\"([^\"\\\\]|\\\\.)*\")|(`([^\\\\`]|\\\\.)*`))*)?\\)(\\s*:\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\([^()]+\\)|\\{[^{}]+})+)?\\s*=>)))))|(:\\s*((<)|(\\(\\s*((\\))|(\\.\\.\\.)|([$_[:alnum:]]+\\s*(([,:=?])|(\\)\\s*=>)))))))|(:\\s*(?<![$_[:alnum:]])(?:(?<=\\.\\.\\.)|(?<!\\.))Function(?![$_[:alnum:]])(?:(?=\\.\\.\\.)|(?!\\.)))|(:\\s*((<\\s*)$|(\\(\\s*((([\\[{]\\s*)?)$|((\\{([^{}]|(\\{([^{}]|\\{[^{}]*})*}))*})\\s*((:\\s*\\{?)$|((\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\([^()]+\\)|\\{[^{}]+})+\\s*)?=\\s*)))|((\\[([^]\\[]|(\\[([^]\\[]|\\[[^]\\[]*])*]))*])\\s*((:\\s*\\[?)$|((\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\([^()]+\\)|\\{[^{}]+})+\\s*)?=\\s*)))))))|(:\\s*(=>|(\\(([^()]|(\\(([^()]|\\([^()]*\\))*\\)))*\\))|(<[^<>]*>)|[^(),<=>])+=\\s*(((async\\s+)?((function\\s*[(*<])|(function\\s+)|([$_[:alpha:]][$_[:alnum:]]*\\s*=>)))|((async\\s*)?(((<\\s*)$|(\\(\\s*((([\\[{]\\s*)?)$|((\\{([^{}]|(\\{([^{}]|\\{[^{}]*})*}))*})\\s*((:\\s*\\{?)$|((\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\([^()]+\\)|\\{[^{}]+})+\\s*)?=\\s*)))|((\\[([^]\\[]|(\\[([^]\\[]|\\[[^]\\[]*])*]))*])\\s*((:\\s*\\[?)$|((\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\([^()]+\\)|\\{[^{}]+})+\\s*)?=\\s*))))))|((<\\s*(((const\\s+)?[$_[:alpha:]])|(\\{([^{}]|(\\{([^{}]|\\{[^{}]*})*}))*})|(\\(([^()]|(\\(([^()]|\\([^()]*\\))*\\)))*\\))|(\\[([^]\\[]|(\\[([^]\\[]|\\[[^]\\[]*])*]))*]))([^<=>]|=[^<]|<\\s*(((const\\s+)?[$_[:alpha:]])|(\\{([^{}]|(\\{([^{}]|\\{[^{}]*})*}))*})|(\\(([^()]|(\\(([^()]|\\([^()]*\\))*\\)))*\\))|(\\[([^]\\[]|(\\[([^]\\[]|\\[[^]\\[]*])*]))*]))([^<=>]|=[^<]|<\\s*(((const\\s+)?[$_[:alpha:]])|(\\{([^{}]|(\\{([^{}]|\\{[^{}]*})*}))*})|(\\(([^()]|(\\(([^()]|\\([^()]*\\))*\\)))*\\))|(\\[([^]\\[]|(\\[([^]\\[]|\\[[^]\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\s*)?\\(\\s*(/\\*([^*]|(\\*[^/]))*\\*/\\s*)*((\\)\\s*:)|((\\.\\.\\.\\s*)?[$_[:alpha:]][$_[:alnum:]]*\\s*:)))|(<\\s*[$_[:alpha:]][$_[:alnum:]]*\\s+extends\\s*[^=>])|((<\\s*(((const\\s+)?[$_[:alpha:]])|(\\{([^{}]|(\\{([^{}]|\\{[^{}]*})*}))*})|(\\(([^()]|(\\(([^()]|\\([^()]*\\))*\\)))*\\))|(\\[([^]\\[]|(\\[([^]\\[]|\\[[^]\\[]*])*]))*]))([^<=>]|=[^<]|<\\s*(((const\\s+)?[$_[:alpha:]])|(\\{([^{}]|(\\{([^{}]|\\{[^{}]*})*}))*})|(\\(([^()]|(\\(([^()]|\\([^()]*\\))*\\)))*\\))|(\\[([^]\\[]|(\\[([^]\\[]|\\[[^]\\[]*])*]))*]))([^<=>]|=[^<]|<\\s*(((const\\s+)?[$_[:alpha:]])|(\\{([^{}]|(\\{([^{}]|\\{[^{}]*})*}))*})|(\\(([^()]|(\\(([^()]|\\([^()]*\\))*\\)))*\\))|(\\[([^]\\[]|(\\[([^]\\[]|\\[[^]\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\s*)?\\(\\s*(/\\*([^*]|(\\*[^/]))*\\*/\\s*)*(([$_[:alpha:]]|(\\{([^{}]|(\\{([^{}]|\\{[^{}]*})*}))*})|(\\[([^]\\[]|(\\[([^]\\[]|\\[[^]\\[]*])*]))*])|(\\.\\.\\.\\s*[$_[:alpha:]]))([^\"'()`]|(\\(([^()]|(\\(([^()]|\\([^()]*\\))*\\)))*\\))|('([^'\\\\]|\\\\.)*')|(\"([^\"\\\\]|\\\\.)*\")|(`([^\\\\`]|\\\\.)*`))*)?\\)(\\s*:\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\([^()]+\\)|\\{[^{}]+})+)?\\s*=>))))))"
1468
        },
1469
        {
1470
          "captures": {
1471
            "1": {
1472
              "name": "storage.modifier.js"
1473
            },
1474
            "2": {
1475
              "name": "keyword.operator.rest.js"
1476
            },
1477
            "3": {
1478
              "name": "variable.parameter.js variable.language.this.js"
1479
            },
1480
            "4": {
1481
              "name": "variable.parameter.js"
1482
            },
1483
            "5": {
1484
              "name": "keyword.operator.optional.js"
1485
            }
1486
          },
1487
          "match": "(?:(?<![$_[:alnum:]])(?:(?<=\\.\\.\\.)|(?<!\\.))(override|public|private|protected|readonly)\\s+)?(?:(\\.\\.\\.)\\s*)?(?<![:=])(?<![$_[:alnum:]])(?:(?<=\\.\\.\\.)|(?<!\\.))(?:(this)|([$_[:alpha:]][$_[:alnum:]]*))(?![$_[:alnum:]])(?:(?=\\.\\.\\.)|(?!\\.))\\s*(\\??)(?=\\s*[,:]|$)"
1488
        },
1489
        {
1490
          "include": "#type-annotation"
1491
        },
1492
        {
1493
          "include": "#variable-initializer"
1494
        },
1495
        {
1496
          "match": ",",
1497
          "name": "punctuation.separator.parameter.js"
1498
        },
1499
        {
1500
          "include": "#identifiers"
1501
        },
1502
        {
1503
          "include": "#expressionPunctuations"
1504
        }
1505
      ]
1506
    },
1507
    "expression-operators": {
1508
      "patterns": [
1509
        {
1510
          "match": "(?<![$_[:alnum:]])(?:(?<=\\.\\.\\.)|(?<!\\.))(await)(?![$_[:alnum:]])(?:(?=\\.\\.\\.)|(?!\\.))",
1511
          "name": "keyword.control.flow.js"
1512
        },
1513
        {
1514
          "begin": "(?<![$_[:alnum:]])(?:(?<=\\.\\.\\.)|(?<!\\.))(yield)(?![$_[:alnum:]])(?:(?=\\.\\.\\.)|(?!\\.))(?=\\s*/\\*([^*]|(\\*[^/]))*\\*/\\s*\\*)",
1515
          "beginCaptures": {
1516
            "1": {
1517
              "name": "keyword.control.flow.js"
1518
            }
1519
          },
1520
          "end": "\\*",
1521
          "endCaptures": {
1522
            "0": {
1523
              "name": "keyword.generator.asterisk.js"
1524
            }
1525
          },
1526
          "patterns": [
1527
            {
1528
              "include": "#comment"
1529
            }
1530
          ]
1531
        },
1532
        {
1533
          "captures": {
1534
            "1": {
1535
              "name": "keyword.control.flow.js"
1536
            },
1537
            "2": {
1538
              "name": "keyword.generator.asterisk.js"
1539
            }
1540
          },
1541
          "match": "(?<![$_[:alnum:]])(?:(?<=\\.\\.\\.)|(?<!\\.))(yield)(?![$_[:alnum:]])(?:(?=\\.\\.\\.)|(?!\\.))(?:\\s*(\\*))?"
1542
        },
1543
        {
1544
          "match": "(?<![$_[:alnum:]])(?:(?<=\\.\\.\\.)|(?<!\\.))delete(?![$_[:alnum:]])(?:(?=\\.\\.\\.)|(?!\\.))",
1545
          "name": "keyword.operator.expression.delete.js"
1546
        },
1547
        {
1548
          "match": "(?<![$_[:alnum:]])(?:(?<=\\.\\.\\.)|(?<!\\.))in(?![$_[:alnum:]])(?:(?=\\.\\.\\.)|(?!\\.))(?!\\()",
1549
          "name": "keyword.operator.expression.in.js"
1550
        },
1551
        {
1552
          "match": "(?<![$_[:alnum:]])(?:(?<=\\.\\.\\.)|(?<!\\.))of(?![$_[:alnum:]])(?:(?=\\.\\.\\.)|(?!\\.))(?!\\()",
1553
          "name": "keyword.operator.expression.of.js"
1554
        },
1555
        {
1556
          "match": "(?<![$_[:alnum:]])(?:(?<=\\.\\.\\.)|(?<!\\.))instanceof(?![$_[:alnum:]])(?:(?=\\.\\.\\.)|(?!\\.))",
1557
          "name": "keyword.operator.expression.instanceof.js"
1558
        },
1559
        {
1560
          "match": "(?<![$_[:alnum:]])(?:(?<=\\.\\.\\.)|(?<!\\.))new(?![$_[:alnum:]])(?:(?=\\.\\.\\.)|(?!\\.))",
1561
          "name": "keyword.operator.new.js"
1562
        },
1563
        {
1564
          "include": "#typeof-operator"
1565
        },
1566
        {
1567
          "match": "(?<![$_[:alnum:]])(?:(?<=\\.\\.\\.)|(?<!\\.))void(?![$_[:alnum:]])(?:(?=\\.\\.\\.)|(?!\\.))",
1568
          "name": "keyword.operator.expression.void.js"
1569
        },
1570
        {
1571
          "captures": {
1572
            "1": {
1573
              "name": "keyword.control.as.js"
1574
            },
1575
            "2": {
1576
              "name": "storage.modifier.js"
1577
            }
1578
          },
1579
          "match": "(?<![$_[:alnum:]])(?:(?<=\\.\\.\\.)|(?<!\\.))(as)\\s+(const)(?=\\s*($|[]),:;}]))"
1580
        },
1581
        {
1582
          "begin": "(?<![$_[:alnum:]])(?:(?<=\\.\\.\\.)|(?<!\\.))(?:(as)|(satisfies))\\s+",
1583
          "beginCaptures": {
1584
            "1": {
1585
              "name": "keyword.control.as.js"
1586
            },
1587
            "2": {
1588
              "name": "keyword.control.satisfies.js"
1589
            }
1590
          },
1591
          "end": "(?=^|[-\\])+,:;>?}]|\\|\\||&&|!==|$|((?<![$_[:alnum:]])(?:(?<=\\.\\.\\.)|(?<!\\.))(as|satisfies)\\s+)|(\\s+<))",
1592
          "patterns": [
1593
            {
1594
              "include": "#type"
1595
            }
1596
          ]
1597
        },
1598
        {
1599
          "match": "\\.\\.\\.",
1600
          "name": "keyword.operator.spread.js"
1601
        },
1602
        {
1603
          "match": "(?:\\*|(?<!\\()/|[-%+])=",
1604
          "name": "keyword.operator.assignment.compound.js"
1605
        },
1606
        {
1607
          "match": "(?:[\\&^]|<<|>>>??|\\|)=",
1608
          "name": "keyword.operator.assignment.compound.bitwise.js"
1609
        },
1610
        {
1611
          "match": "<<|>>>?",
1612
          "name": "keyword.operator.bitwise.shift.js"
1613
        },
1614
        {
1615
          "match": "[!=]==?",
1616
          "name": "keyword.operator.comparison.js"
1617
        },
1618
        {
1619
          "match": "<=|>=|<>|[<>]",
1620
          "name": "keyword.operator.relational.js"
1621
        },
1622
        {
1623
          "captures": {
1624
            "1": {
1625
              "name": "keyword.operator.logical.js"
1626
            },
1627
            "2": {
1628
              "name": "keyword.operator.assignment.compound.js"
1629
            },
1630
            "3": {
1631
              "name": "keyword.operator.arithmetic.js"
1632
            }
1633
          },
1634
          "match": "(?<=[$_[:alnum:]])(!)\\s*(?:(/=)|(/)(?![*/]))"
1635
        },
1636
        {
1637
          "match": "!|&&|\\|\\||\\?\\?",
1638
          "name": "keyword.operator.logical.js"
1639
        },
1640
        {
1641
          "match": "[\\&^|~]",
1642
          "name": "keyword.operator.bitwise.js"
1643
        },
1644
        {
1645
          "match": "=",
1646
          "name": "keyword.operator.assignment.js"
1647
        },
1648
        {
1649
          "match": "--",
1650
          "name": "keyword.operator.decrement.js"
1651
        },
1652
        {
1653
          "match": "\\+\\+",
1654
          "name": "keyword.operator.increment.js"
1655
        },
1656
        {
1657
          "match": "[-%*+/]",
1658
          "name": "keyword.operator.arithmetic.js"
1659
        },
1660
        {
1661
          "begin": "(?<=[]$)_[:alnum:]])\\s*(?=(/\\*([^*]|(\\*[^/]))*\\*/\\s*)+(?:(/=)|(/)(?![*/])))",
1662
          "end": "(/=)|(/)(?!\\*([^*]|(\\*[^/]))*\\*/)",
1663
          "endCaptures": {
1664
            "1": {
1665
              "name": "keyword.operator.assignment.compound.js"
1666
            },
1667
            "2": {
1668
              "name": "keyword.operator.arithmetic.js"
1669
            }
1670
          },
1671
          "patterns": [
1672
            {
1673
              "include": "#comment"
1674
            }
1675
          ]
1676
        },
1677
        {
1678
          "captures": {
1679
            "1": {
1680
              "name": "keyword.operator.assignment.compound.js"
1681
            },
1682
            "2": {
1683
              "name": "keyword.operator.arithmetic.js"
1684
            }
1685
          },
1686
          "match": "(?<=[]$)_[:alnum:]])\\s*(?:(/=)|(/)(?![*/]))"
1687
        }
1688
      ]
1689
    },
1690
    "expressionPunctuations": {
1691
      "patterns": [
1692
        {
1693
          "include": "#punctuation-comma"
1694
        },
1695
        {
1696
          "include": "#punctuation-accessor"
1697
        }
1698
      ]
1699
    },
1700
    "expressionWithoutIdentifiers": {
1701
      "patterns": [
1702
        {
1703
          "include": "#jsx"
1704
        },
1705
        {
1706
          "include": "#string"
1707
        },
1708
        {
1709
          "include": "#regex"
1710
        },
1711
        {
1712
          "include": "#comment"
1713
        },
1714
        {
1715
          "include": "#function-expression"
1716
        },
1717
        {
1718
          "include": "#class-expression"
1719
        },
1720
        {
1721
          "include": "#arrow-function"
1722
        },
1723
        {
1724
          "include": "#paren-expression-possibly-arrow"
1725
        },
1726
        {
1727
          "include": "#cast"
1728
        },
1729
        {
1730
          "include": "#ternary-expression"
1731
        },
1732
        {
1733
          "include": "#new-expr"
1734
        },
1735
        {
1736
          "include": "#instanceof-expr"
1737
        },
1738
        {
1739
          "include": "#object-literal"
1740
        },
1741
        {
1742
          "include": "#expression-operators"
1743
        },
1744
        {
1745
          "include": "#function-call"
1746
        },
1747
        {
1748
          "include": "#literal"
1749
        },
1750
        {
1751
          "include": "#support-objects"
1752
        },
1753
        {
1754
          "include": "#paren-expression"
1755
        }
1756
      ]
1757
    },
1758
    "field-declaration": {
1759
      "begin": "(?<!\\()(?:(?<![$_[:alnum:]])(?:(?<=\\.\\.\\.)|(?<!\\.))(readonly)\\s+)?(?=\\s*(\\b((?<!\\$)0[Xx]\\h[_\\h]*(n)?\\b(?!\\$))|\\b((?<!\\$)0[Bb][01][01_]*(n)?\\b(?!\\$))|\\b((?<!\\$)0[Oo]?[0-7][0-7_]*(n)?\\b(?!\\$))|((?<!\\$)(?:\\b[0-9][0-9_]*(\\.)[0-9][0-9_]*[Ee][-+]?[0-9][0-9_]*(n)?\\b|\\b[0-9][0-9_]*(\\.)[Ee][-+]?[0-9][0-9_]*(n)?\\b|\\B(\\.)[0-9][0-9_]*[Ee][-+]?[0-9][0-9_]*(n)?\\b|\\b[0-9][0-9_]*[Ee][-+]?[0-9][0-9_]*(n)?\\b|\\b[0-9][0-9_]*(\\.)[0-9][0-9_]*(n)?\\b|\\b[0-9][0-9_]*(\\.)(n)?\\B|\\B(\\.)[0-9][0-9_]*(n)?\\b|\\b[0-9][0-9_]*(n)?\\b(?!\\.))(?!\\$))|(#?[$_[:alpha:]][$_[:alnum:]]*)|('([^'\\\\]|\\\\.)*')|(\"([^\"\\\\]|\\\\.)*\")|(`([^\\\\`]|\\\\.)*`)|(\\[([^]\\[]|\\[[^]\\[]*])+]))\\s*(?:(?:(\\?)|(!))\\s*)?([,:;=}]|$))",
1760
      "beginCaptures": {
1761
        "1": {
1762
          "name": "storage.modifier.js"
1763
        }
1764
      },
1765
      "end": "(?=[,;}]|$|^((?!\\s*(\\b((?<!\\$)0[Xx]\\h[_\\h]*(n)?\\b(?!\\$))|\\b((?<!\\$)0[Bb][01][01_]*(n)?\\b(?!\\$))|\\b((?<!\\$)0[Oo]?[0-7][0-7_]*(n)?\\b(?!\\$))|((?<!\\$)(?:\\b[0-9][0-9_]*(\\.)[0-9][0-9_]*[Ee][-+]?[0-9][0-9_]*(n)?\\b|\\b[0-9][0-9_]*(\\.)[Ee][-+]?[0-9][0-9_]*(n)?\\b|\\B(\\.)[0-9][0-9_]*[Ee][-+]?[0-9][0-9_]*(n)?\\b|\\b[0-9][0-9_]*[Ee][-+]?[0-9][0-9_]*(n)?\\b|\\b[0-9][0-9_]*(\\.)[0-9][0-9_]*(n)?\\b|\\b[0-9][0-9_]*(\\.)(n)?\\B|\\B(\\.)[0-9][0-9_]*(n)?\\b|\\b[0-9][0-9_]*(n)?\\b(?!\\.))(?!\\$))|(#?[$_[:alpha:]][$_[:alnum:]]*)|('([^'\\\\]|\\\\.)*')|(\"([^\"\\\\]|\\\\.)*\")|(`([^\\\\`]|\\\\.)*`)|(\\[([^]\\[]|\\[[^]\\[]*])+]))\\s*(?:(?:(\\?)|(!))\\s*)?([,:;=]|$))))|(?<=})",
1766
      "name": "meta.field.declaration.js",
1767
      "patterns": [
1768
        {
1769
          "include": "#variable-initializer"
1770
        },
1771
        {
1772
          "include": "#type-annotation"
1773
        },
1774
        {
1775
          "include": "#string"
1776
        },
1777
        {
1778
          "include": "#array-literal"
1779
        },
1780
        {
1781
          "include": "#numeric-literal"
1782
        },
1783
        {
1784
          "include": "#comment"
1785
        },
1786
        {
1787
          "captures": {
1788
            "1": {
1789
              "name": "meta.definition.property.js entity.name.function.js"
1790
            },
1791
            "2": {
1792
              "name": "keyword.operator.optional.js"
1793
            },
1794
            "3": {
1795
              "name": "keyword.operator.definiteassignment.js"
1796
            }
1797
          },
1798
          "match": "(#?[$_[:alpha:]][$_[:alnum:]]*)(?:(\\?)|(!))?(?=\\s*\\s*(=\\s*(((async\\s+)?((function\\s*[(*<])|(function\\s+)|([$_[:alpha:]][$_[:alnum:]]*\\s*=>)))|((async\\s*)?(((<\\s*)$|(\\(\\s*((([\\[{]\\s*)?)$|((\\{([^{}]|(\\{([^{}]|\\{[^{}]*})*}))*})\\s*((:\\s*\\{?)$|((\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\([^()]+\\)|\\{[^{}]+})+\\s*)?=\\s*)))|((\\[([^]\\[]|(\\[([^]\\[]|\\[[^]\\[]*])*]))*])\\s*((:\\s*\\[?)$|((\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\([^()]+\\)|\\{[^{}]+})+\\s*)?=\\s*))))))|((<\\s*(((const\\s+)?[$_[:alpha:]])|(\\{([^{}]|(\\{([^{}]|\\{[^{}]*})*}))*})|(\\(([^()]|(\\(([^()]|\\([^()]*\\))*\\)))*\\))|(\\[([^]\\[]|(\\[([^]\\[]|\\[[^]\\[]*])*]))*]))([^<=>]|=[^<]|<\\s*(((const\\s+)?[$_[:alpha:]])|(\\{([^{}]|(\\{([^{}]|\\{[^{}]*})*}))*})|(\\(([^()]|(\\(([^()]|\\([^()]*\\))*\\)))*\\))|(\\[([^]\\[]|(\\[([^]\\[]|\\[[^]\\[]*])*]))*]))([^<=>]|=[^<]|<\\s*(((const\\s+)?[$_[:alpha:]])|(\\{([^{}]|(\\{([^{}]|\\{[^{}]*})*}))*})|(\\(([^()]|(\\(([^()]|\\([^()]*\\))*\\)))*\\))|(\\[([^]\\[]|(\\[([^]\\[]|\\[[^]\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\s*)?\\(\\s*(/\\*([^*]|(\\*[^/]))*\\*/\\s*)*((\\)\\s*:)|((\\.\\.\\.\\s*)?[$_[:alpha:]][$_[:alnum:]]*\\s*:)))|(<\\s*[$_[:alpha:]][$_[:alnum:]]*\\s+extends\\s*[^=>])|((<\\s*(((const\\s+)?[$_[:alpha:]])|(\\{([^{}]|(\\{([^{}]|\\{[^{}]*})*}))*})|(\\(([^()]|(\\(([^()]|\\([^()]*\\))*\\)))*\\))|(\\[([^]\\[]|(\\[([^]\\[]|\\[[^]\\[]*])*]))*]))([^<=>]|=[^<]|<\\s*(((const\\s+)?[$_[:alpha:]])|(\\{([^{}]|(\\{([^{}]|\\{[^{}]*})*}))*})|(\\(([^()]|(\\(([^()]|\\([^()]*\\))*\\)))*\\))|(\\[([^]\\[]|(\\[([^]\\[]|\\[[^]\\[]*])*]))*]))([^<=>]|=[^<]|<\\s*(((const\\s+)?[$_[:alpha:]])|(\\{([^{}]|(\\{([^{}]|\\{[^{}]*})*}))*})|(\\(([^()]|(\\(([^()]|\\([^()]*\\))*\\)))*\\))|(\\[([^]\\[]|(\\[([^]\\[]|\\[[^]\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\s*)?\\(\\s*(/\\*([^*]|(\\*[^/]))*\\*/\\s*)*(([$_[:alpha:]]|(\\{([^{}]|(\\{([^{}]|\\{[^{}]*})*}))*})|(\\[([^]\\[]|(\\[([^]\\[]|\\[[^]\\[]*])*]))*])|(\\.\\.\\.\\s*[$_[:alpha:]]))([^\"'()`]|(\\(([^()]|(\\(([^()]|\\([^()]*\\))*\\)))*\\))|('([^'\\\\]|\\\\.)*')|(\"([^\"\\\\]|\\\\.)*\")|(`([^\\\\`]|\\\\.)*`))*)?\\)(\\s*:\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\([^()]+\\)|\\{[^{}]+})+)?\\s*=>)))))|(:\\s*((<)|(\\(\\s*((\\))|(\\.\\.\\.)|([$_[:alnum:]]+\\s*(([,:=?])|(\\)\\s*=>)))))))|(:\\s*(?<![$_[:alnum:]])(?:(?<=\\.\\.\\.)|(?<!\\.))Function(?![$_[:alnum:]])(?:(?=\\.\\.\\.)|(?!\\.)))|(:\\s*((<\\s*)$|(\\(\\s*((([\\[{]\\s*)?)$|((\\{([^{}]|(\\{([^{}]|\\{[^{}]*})*}))*})\\s*((:\\s*\\{?)$|((\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\([^()]+\\)|\\{[^{}]+})+\\s*)?=\\s*)))|((\\[([^]\\[]|(\\[([^]\\[]|\\[[^]\\[]*])*]))*])\\s*((:\\s*\\[?)$|((\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\([^()]+\\)|\\{[^{}]+})+\\s*)?=\\s*)))))))|(:\\s*(=>|(\\(([^()]|(\\(([^()]|\\([^()]*\\))*\\)))*\\))|(<[^<>]*>)|[^(),<=>])+=\\s*(((async\\s+)?((function\\s*[(*<])|(function\\s+)|([$_[:alpha:]][$_[:alnum:]]*\\s*=>)))|((async\\s*)?(((<\\s*)$|(\\(\\s*((([\\[{]\\s*)?)$|((\\{([^{}]|(\\{([^{}]|\\{[^{}]*})*}))*})\\s*((:\\s*\\{?)$|((\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\([^()]+\\)|\\{[^{}]+})+\\s*)?=\\s*)))|((\\[([^]\\[]|(\\[([^]\\[]|\\[[^]\\[]*])*]))*])\\s*((:\\s*\\[?)$|((\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\([^()]+\\)|\\{[^{}]+})+\\s*)?=\\s*))))))|((<\\s*(((const\\s+)?[$_[:alpha:]])|(\\{([^{}]|(\\{([^{}]|\\{[^{}]*})*}))*})|(\\(([^()]|(\\(([^()]|\\([^()]*\\))*\\)))*\\))|(\\[([^]\\[]|(\\[([^]\\[]|\\[[^]\\[]*])*]))*]))([^<=>]|=[^<]|<\\s*(((const\\s+)?[$_[:alpha:]])|(\\{([^{}]|(\\{([^{}]|\\{[^{}]*})*}))*})|(\\(([^()]|(\\(([^()]|\\([^()]*\\))*\\)))*\\))|(\\[([^]\\[]|(\\[([^]\\[]|\\[[^]\\[]*])*]))*]))([^<=>]|=[^<]|<\\s*(((const\\s+)?[$_[:alpha:]])|(\\{([^{}]|(\\{([^{}]|\\{[^{}]*})*}))*})|(\\(([^()]|(\\(([^()]|\\([^()]*\\))*\\)))*\\))|(\\[([^]\\[]|(\\[([^]\\[]|\\[[^]\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\s*)?\\(\\s*(/\\*([^*]|(\\*[^/]))*\\*/\\s*)*((\\)\\s*:)|((\\.\\.\\.\\s*)?[$_[:alpha:]][$_[:alnum:]]*\\s*:)))|(<\\s*[$_[:alpha:]][$_[:alnum:]]*\\s+extends\\s*[^=>])|((<\\s*(((const\\s+)?[$_[:alpha:]])|(\\{([^{}]|(\\{([^{}]|\\{[^{}]*})*}))*})|(\\(([^()]|(\\(([^()]|\\([^()]*\\))*\\)))*\\))|(\\[([^]\\[]|(\\[([^]\\[]|\\[[^]\\[]*])*]))*]))([^<=>]|=[^<]|<\\s*(((const\\s+)?[$_[:alpha:]])|(\\{([^{}]|(\\{([^{}]|\\{[^{}]*})*}))*})|(\\(([^()]|(\\(([^()]|\\([^()]*\\))*\\)))*\\))|(\\[([^]\\[]|(\\[([^]\\[]|\\[[^]\\[]*])*]))*]))([^<=>]|=[^<]|<\\s*(((const\\s+)?[$_[:alpha:]])|(\\{([^{}]|(\\{([^{}]|\\{[^{}]*})*}))*})|(\\(([^()]|(\\(([^()]|\\([^()]*\\))*\\)))*\\))|(\\[([^]\\[]|(\\[([^]\\[]|\\[[^]\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\s*)?\\(\\s*(/\\*([^*]|(\\*[^/]))*\\*/\\s*)*(([$_[:alpha:]]|(\\{([^{}]|(\\{([^{}]|\\{[^{}]*})*}))*})|(\\[([^]\\[]|(\\[([^]\\[]|\\[[^]\\[]*])*]))*])|(\\.\\.\\.\\s*[$_[:alpha:]]))([^\"'()`]|(\\(([^()]|(\\(([^()]|\\([^()]*\\))*\\)))*\\))|('([^'\\\\]|\\\\.)*')|(\"([^\"\\\\]|\\\\.)*\")|(`([^\\\\`]|\\\\.)*`))*)?\\)(\\s*:\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\([^()]+\\)|\\{[^{}]+})+)?\\s*=>))))))"
1799
        },
1800
        {
1801
          "match": "#?[$_[:alpha:]][$_[:alnum:]]*",
1802
          "name": "meta.definition.property.js variable.object.property.js"
1803
        },
1804
        {
1805
          "match": "\\?",
1806
          "name": "keyword.operator.optional.js"
1807
        },
1808
        {
1809
          "match": "!",
1810
          "name": "keyword.operator.definiteassignment.js"
1811
        }
1812
      ]
1813
    },
1814
    "for-loop": {
1815
      "begin": "(?<![$_[:alnum:]])(?:(?<=\\.\\.\\.)|(?<!\\.))for(?=((\\s+|(\\s*/\\*([^*]|(\\*[^/]))*\\*/\\s*))await)?\\s*(/\\*([^*]|(\\*[^/]))*\\*/\\s*)?(\\())",
1816
      "beginCaptures": {
1817
        "0": {
1818
          "name": "keyword.control.loop.js"
1819
        }
1820
      },
1821
      "end": "(?<=\\))",
1822
      "patterns": [
1823
        {
1824
          "include": "#comment"
1825
        },
1826
        {
1827
          "match": "await",
1828
          "name": "keyword.control.loop.js"
1829
        },
1830
        {
1831
          "begin": "\\(",
1832
          "beginCaptures": {
1833
            "0": {
1834
              "name": "meta.brace.round.js"
1835
            }
1836
          },
1837
          "end": "\\)",
1838
          "endCaptures": {
1839
            "0": {
1840
              "name": "meta.brace.round.js"
1841
            }
1842
          },
1843
          "patterns": [
1844
            {
1845
              "include": "#var-expr"
1846
            },
1847
            {
1848
              "include": "#expression"
1849
            },
1850
            {
1851
              "include": "#punctuation-semicolon"
1852
            }
1853
          ]
1854
        }
1855
      ]
1856
    },
1857
    "function-body": {
1858
      "patterns": [
1859
        {
1860
          "include": "#comment"
1861
        },
1862
        {
1863
          "include": "#type-parameters"
1864
        },
1865
        {
1866
          "include": "#function-parameters"
1867
        },
1868
        {
1869
          "include": "#return-type"
1870
        },
1871
        {
1872
          "include": "#type-function-return-type"
1873
        },
1874
        {
1875
          "include": "#decl-block"
1876
        },
1877
        {
1878
          "match": "\\*",
1879
          "name": "keyword.generator.asterisk.js"
1880
        }
1881
      ]
1882
    },
1883
    "function-call": {
1884
      "patterns": [
1885
        {
1886
          "begin": "(?=(((([$_[:alpha:]][$_[:alnum:]]*)(\\s*\\??\\.\\s*(#?[$_[:alpha:]][$_[:alnum:]]*))*)|(\\??\\.\\s*#?[$_[:alpha:]][$_[:alnum:]]*))|(?<=\\)))\\s*(?:(\\?\\.\\s*)|(!))?((<\\s*(((keyof|infer|typeof|readonly)\\s+)|(([$_[:alpha:]][$_[:alnum:]]*|(\\{([^{}]|(\\{([^{}]|\\{[^{}]*})*}))*})|(\\(([^()]|(\\(([^()]|\\([^()]*\\))*\\)))*\\))|(\\[([^]\\[]|(\\[([^]\\[]|\\[[^]\\[]*])*]))*])|('([^'\\\\]|\\\\.)*')|(\"([^\"\\\\]|\\\\.)*\")|(`([^\\\\`]|\\\\.)*`))(?=\\s*([,.<>\\[]|=>|&(?!&)|\\|(?!\\|)))))([^(<>]|(\\(([^()]|(\\(([^()]|\\([^()]*\\))*\\)))*\\))|(?<==)>|<\\s*(((keyof|infer|typeof|readonly)\\s+)|(([$_[:alpha:]][$_[:alnum:]]*|(\\{([^{}]|(\\{([^{}]|\\{[^{}]*})*}))*})|(\\(([^()]|(\\(([^()]|\\([^()]*\\))*\\)))*\\))|(\\[([^]\\[]|(\\[([^]\\[]|\\[[^]\\[]*])*]))*])|('([^'\\\\]|\\\\.)*')|(\"([^\"\\\\]|\\\\.)*\")|(`([^\\\\`]|\\\\.)*`))(?=\\s*([,.<>\\[]|=>|&(?!&)|\\|(?!\\|)))))(([^(<>]|(\\(([^()]|(\\(([^()]|\\([^()]*\\))*\\)))*\\))|(?<==)>|<\\s*(((keyof|infer|typeof|readonly)\\s+)|(([$_[:alpha:]][$_[:alnum:]]*|(\\{([^{}]|(\\{([^{}]|\\{[^{}]*})*}))*})|(\\(([^()]|(\\(([^()]|\\([^()]*\\))*\\)))*\\))|(\\[([^]\\[]|(\\[([^]\\[]|\\[[^]\\[]*])*]))*])|('([^'\\\\]|\\\\.)*')|(\"([^\"\\\\]|\\\\.)*\")|(`([^\\\\`]|\\\\.)*`))(?=\\s*([,.<>\\[]|=>|&(?!&)|\\|(?!\\|)))))([^(<>]|(\\(([^()]|(\\(([^()]|\\([^()]*\\))*\\)))*\\))|(?<==)>)*(?<!=)>))*(?<!=)>)*(?<!=)>\\s*)?\\())",
1887
          "end": "(?<=\\))(?!(((([$_[:alpha:]][$_[:alnum:]]*)(\\s*\\??\\.\\s*(#?[$_[:alpha:]][$_[:alnum:]]*))*)|(\\??\\.\\s*#?[$_[:alpha:]][$_[:alnum:]]*))|(?<=\\)))\\s*(?:(\\?\\.\\s*)|(!))?((<\\s*(((keyof|infer|typeof|readonly)\\s+)|(([$_[:alpha:]][$_[:alnum:]]*|(\\{([^{}]|(\\{([^{}]|\\{[^{}]*})*}))*})|(\\(([^()]|(\\(([^()]|\\([^()]*\\))*\\)))*\\))|(\\[([^]\\[]|(\\[([^]\\[]|\\[[^]\\[]*])*]))*])|('([^'\\\\]|\\\\.)*')|(\"([^\"\\\\]|\\\\.)*\")|(`([^\\\\`]|\\\\.)*`))(?=\\s*([,.<>\\[]|=>|&(?!&)|\\|(?!\\|)))))([^(<>]|(\\(([^()]|(\\(([^()]|\\([^()]*\\))*\\)))*\\))|(?<==)>|<\\s*(((keyof|infer|typeof|readonly)\\s+)|(([$_[:alpha:]][$_[:alnum:]]*|(\\{([^{}]|(\\{([^{}]|\\{[^{}]*})*}))*})|(\\(([^()]|(\\(([^()]|\\([^()]*\\))*\\)))*\\))|(\\[([^]\\[]|(\\[([^]\\[]|\\[[^]\\[]*])*]))*])|('([^'\\\\]|\\\\.)*')|(\"([^\"\\\\]|\\\\.)*\")|(`([^\\\\`]|\\\\.)*`))(?=\\s*([,.<>\\[]|=>|&(?!&)|\\|(?!\\|)))))(([^(<>]|(\\(([^()]|(\\(([^()]|\\([^()]*\\))*\\)))*\\))|(?<==)>|<\\s*(((keyof|infer|typeof|readonly)\\s+)|(([$_[:alpha:]][$_[:alnum:]]*|(\\{([^{}]|(\\{([^{}]|\\{[^{}]*})*}))*})|(\\(([^()]|(\\(([^()]|\\([^()]*\\))*\\)))*\\))|(\\[([^]\\[]|(\\[([^]\\[]|\\[[^]\\[]*])*]))*])|('([^'\\\\]|\\\\.)*')|(\"([^\"\\\\]|\\\\.)*\")|(`([^\\\\`]|\\\\.)*`))(?=\\s*([,.<>\\[]|=>|&(?!&)|\\|(?!\\|)))))([^(<>]|(\\(([^()]|(\\(([^()]|\\([^()]*\\))*\\)))*\\))|(?<==)>)*(?<!=)>))*(?<!=)>)*(?<!=)>\\s*)?\\())",
1888
          "patterns": [
1889
            {
1890
              "begin": "(?=(([$_[:alpha:]][$_[:alnum:]]*)(\\s*\\??\\.\\s*(#?[$_[:alpha:]][$_[:alnum:]]*))*)|(\\??\\.\\s*#?[$_[:alpha:]][$_[:alnum:]]*))",
1891
              "end": "(?=\\s*(?:(\\?\\.\\s*)|(!))?((<\\s*(((keyof|infer|typeof|readonly)\\s+)|(([$_[:alpha:]][$_[:alnum:]]*|(\\{([^{}]|(\\{([^{}]|\\{[^{}]*})*}))*})|(\\(([^()]|(\\(([^()]|\\([^()]*\\))*\\)))*\\))|(\\[([^]\\[]|(\\[([^]\\[]|\\[[^]\\[]*])*]))*])|('([^'\\\\]|\\\\.)*')|(\"([^\"\\\\]|\\\\.)*\")|(`([^\\\\`]|\\\\.)*`))(?=\\s*([,.<>\\[]|=>|&(?!&)|\\|(?!\\|)))))([^(<>]|(\\(([^()]|(\\(([^()]|\\([^()]*\\))*\\)))*\\))|(?<==)>|<\\s*(((keyof|infer|typeof|readonly)\\s+)|(([$_[:alpha:]][$_[:alnum:]]*|(\\{([^{}]|(\\{([^{}]|\\{[^{}]*})*}))*})|(\\(([^()]|(\\(([^()]|\\([^()]*\\))*\\)))*\\))|(\\[([^]\\[]|(\\[([^]\\[]|\\[[^]\\[]*])*]))*])|('([^'\\\\]|\\\\.)*')|(\"([^\"\\\\]|\\\\.)*\")|(`([^\\\\`]|\\\\.)*`))(?=\\s*([,.<>\\[]|=>|&(?!&)|\\|(?!\\|)))))(([^(<>]|(\\(([^()]|(\\(([^()]|\\([^()]*\\))*\\)))*\\))|(?<==)>|<\\s*(((keyof|infer|typeof|readonly)\\s+)|(([$_[:alpha:]][$_[:alnum:]]*|(\\{([^{}]|(\\{([^{}]|\\{[^{}]*})*}))*})|(\\(([^()]|(\\(([^()]|\\([^()]*\\))*\\)))*\\))|(\\[([^]\\[]|(\\[([^]\\[]|\\[[^]\\[]*])*]))*])|('([^'\\\\]|\\\\.)*')|(\"([^\"\\\\]|\\\\.)*\")|(`([^\\\\`]|\\\\.)*`))(?=\\s*([,.<>\\[]|=>|&(?!&)|\\|(?!\\|)))))([^(<>]|(\\(([^()]|(\\(([^()]|\\([^()]*\\))*\\)))*\\))|(?<==)>)*(?<!=)>))*(?<!=)>)*(?<!=)>\\s*)?\\())",
1892
              "name": "meta.function-call.js",
1893
              "patterns": [
1894
                {
1895
                  "include": "#function-call-target"
1896
                }
1897
              ]
1898
            },
1899
            {
1900
              "include": "#comment"
1901
            },
1902
            {
1903
              "include": "#function-call-optionals"
1904
            },
1905
            {
1906
              "include": "#type-arguments"
1907
            },
1908
            {
1909
              "include": "#paren-expression"
1910
            }
1911
          ]
1912
        },
1913
        {
1914
          "begin": "(?=(((([$_[:alpha:]][$_[:alnum:]]*)(\\s*\\??\\.\\s*(#?[$_[:alpha:]][$_[:alnum:]]*))*)|(\\??\\.\\s*#?[$_[:alpha:]][$_[:alnum:]]*))|(?<=\\)))(<\\s*[(\\[{]\\s*)$)",
1915
          "end": "(?<=>)(?!(((([$_[:alpha:]][$_[:alnum:]]*)(\\s*\\??\\.\\s*(#?[$_[:alpha:]][$_[:alnum:]]*))*)|(\\??\\.\\s*#?[$_[:alpha:]][$_[:alnum:]]*))|(?<=\\)))(<\\s*[(\\[{]\\s*)$)",
1916
          "patterns": [
1917
            {
1918
              "begin": "(?=(([$_[:alpha:]][$_[:alnum:]]*)(\\s*\\??\\.\\s*(#?[$_[:alpha:]][$_[:alnum:]]*))*)|(\\??\\.\\s*#?[$_[:alpha:]][$_[:alnum:]]*))",
1919
              "end": "(?=(<\\s*[(\\[{]\\s*)$)",
1920
              "name": "meta.function-call.js",
1921
              "patterns": [
1922
                {
1923
                  "include": "#function-call-target"
1924
                }
1925
              ]
1926
            },
1927
            {
1928
              "include": "#comment"
1929
            },
1930
            {
1931
              "include": "#function-call-optionals"
1932
            },
1933
            {
1934
              "include": "#type-arguments"
1935
            }
1936
          ]
1937
        }
1938
      ]
1939
    },
1940
    "function-call-optionals": {
1941
      "patterns": [
1942
        {
1943
          "match": "\\?\\.",
1944
          "name": "meta.function-call.js punctuation.accessor.optional.js"
1945
        },
1946
        {
1947
          "match": "!",
1948
          "name": "meta.function-call.js keyword.operator.definiteassignment.js"
1949
        }
1950
      ]
1951
    },
1952
    "function-call-target": {
1953
      "patterns": [
1954
        {
1955
          "include": "#support-function-call-identifiers"
1956
        },
1957
        {
1958
          "match": "(#?[$_[:alpha:]][$_[:alnum:]]*)",
1959
          "name": "entity.name.function.js"
1960
        }
1961
      ]
1962
    },
1963
    "function-declaration": {
1964
      "begin": "(?<![$_[:alnum:]])(?:(?<=\\.\\.\\.)|(?<!\\.))(?:\\b(export)\\s+)?(?:\\b(declare)\\s+)?(?:(async)\\s+)?(function)\\b(?:\\s*(\\*))?(?:(?:\\s+|(?<=\\*))([$_[:alpha:]][$_[:alnum:]]*))?\\s*",
1965
      "beginCaptures": {
1966
        "1": {
1967
          "name": "keyword.control.export.js"
1968
        },
1969
        "2": {
1970
          "name": "storage.modifier.js"
1971
        },
1972
        "3": {
1973
          "name": "storage.modifier.async.js"
1974
        },
1975
        "4": {
1976
          "name": "storage.type.function.js"
1977
        },
1978
        "5": {
1979
          "name": "keyword.generator.asterisk.js"
1980
        },
1981
        "6": {
1982
          "name": "meta.definition.function.js entity.name.function.js"
1983
        }
1984
      },
1985
      "end": "(?=;|^\\s*$|^\\s*(?:abstract|async|\\bawait\\s+\\busing(?=\\s+(?!in\\b|of\\b(?!\\s*(?:of\\b|=)))[$_[:alpha:]])\\b\\b|break|case|catch|class|const|continue|declare|do|else|enum|export|finally|function|for|goto|if|import|interface|let|module|namespace|switch|return|throw|try|type|\\busing(?=\\s+(?!in\\b|of\\b(?!\\s*(?:of\\b|=)))[$_[:alpha:]])\\b|var|while)\\b)|(?<=})",
1986
      "name": "meta.function.js",
1987
      "patterns": [
1988
        {
1989
          "include": "#function-name"
1990
        },
1991
        {
1992
          "include": "#function-body"
1993
        }
1994
      ]
1995
    },
1996
    "function-expression": {
1997
      "begin": "(?<![$_[:alnum:]])(?:(?<=\\.\\.\\.)|(?<!\\.))(?:(async)\\s+)?(function)\\b(?:\\s*(\\*))?(?:(?:\\s+|(?<=\\*))([$_[:alpha:]][$_[:alnum:]]*))?\\s*",
1998
      "beginCaptures": {
1999
        "1": {
2000
          "name": "storage.modifier.async.js"
2001
        },
2002
        "2": {
2003
          "name": "storage.type.function.js"
2004
        },
2005
        "3": {
2006
          "name": "keyword.generator.asterisk.js"
2007
        },
2008
        "4": {
2009
          "name": "meta.definition.function.js entity.name.function.js"
2010
        }
2011
      },
2012
      "end": "(?=;)|(?<=})",
2013
      "name": "meta.function.expression.js",
2014
      "patterns": [
2015
        {
2016
          "include": "#function-name"
2017
        },
2018
        {
2019
          "include": "#single-line-comment-consuming-line-ending"
2020
        },
2021
        {
2022
          "include": "#function-body"
2023
        }
2024
      ]
2025
    },
2026
    "function-name": {
2027
      "match": "[$_[:alpha:]][$_[:alnum:]]*",
2028
      "name": "meta.definition.function.js entity.name.function.js"
2029
    },
2030
    "function-parameters": {
2031
      "begin": "\\(",
2032
      "beginCaptures": {
2033
        "0": {
2034
          "name": "punctuation.definition.parameters.begin.js"
2035
        }
2036
      },
2037
      "end": "\\)",
2038
      "endCaptures": {
2039
        "0": {
2040
          "name": "punctuation.definition.parameters.end.js"
2041
        }
2042
      },
2043
      "name": "meta.parameters.js",
2044
      "patterns": [
2045
        {
2046
          "include": "#function-parameters-body"
2047
        }
2048
      ]
2049
    },
2050
    "function-parameters-body": {
2051
      "patterns": [
2052
        {
2053
          "include": "#comment"
2054
        },
2055
        {
2056
          "include": "#string"
2057
        },
2058
        {
2059
          "include": "#decorator"
2060
        },
2061
        {
2062
          "include": "#destructuring-parameter"
2063
        },
2064
        {
2065
          "include": "#parameter-name"
2066
        },
2067
        {
2068
          "include": "#parameter-type-annotation"
2069
        },
2070
        {
2071
          "include": "#variable-initializer"
2072
        },
2073
        {
2074
          "match": ",",
2075
          "name": "punctuation.separator.parameter.js"
2076
        }
2077
      ]
2078
    },
2079
    "identifiers": {
2080
      "patterns": [
2081
        {
2082
          "include": "#object-identifiers"
2083
        },
2084
        {
2085
          "captures": {
2086
            "1": {
2087
              "name": "punctuation.accessor.js"
2088
            },
2089
            "2": {
2090
              "name": "punctuation.accessor.optional.js"
2091
            },
2092
            "3": {
2093
              "name": "entity.name.function.js"
2094
            }
2095
          },
2096
          "match": "(?:(?:(\\.)|(\\?\\.(?!\\s*\\d)))\\s*)?([$_[:alpha:]][$_[:alnum:]]*)(?=\\s*=\\s*(((async\\s+)?((function\\s*[(*<])|(function\\s+)|([$_[:alpha:]][$_[:alnum:]]*\\s*=>)))|((async\\s*)?(((<\\s*)$|(\\(\\s*((([\\[{]\\s*)?)$|((\\{([^{}]|(\\{([^{}]|\\{[^{}]*})*}))*})\\s*((:\\s*\\{?)$|((\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\([^()]+\\)|\\{[^{}]+})+\\s*)?=\\s*)))|((\\[([^]\\[]|(\\[([^]\\[]|\\[[^]\\[]*])*]))*])\\s*((:\\s*\\[?)$|((\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\([^()]+\\)|\\{[^{}]+})+\\s*)?=\\s*))))))|((<\\s*(((const\\s+)?[$_[:alpha:]])|(\\{([^{}]|(\\{([^{}]|\\{[^{}]*})*}))*})|(\\(([^()]|(\\(([^()]|\\([^()]*\\))*\\)))*\\))|(\\[([^]\\[]|(\\[([^]\\[]|\\[[^]\\[]*])*]))*]))([^<=>]|=[^<]|<\\s*(((const\\s+)?[$_[:alpha:]])|(\\{([^{}]|(\\{([^{}]|\\{[^{}]*})*}))*})|(\\(([^()]|(\\(([^()]|\\([^()]*\\))*\\)))*\\))|(\\[([^]\\[]|(\\[([^]\\[]|\\[[^]\\[]*])*]))*]))([^<=>]|=[^<]|<\\s*(((const\\s+)?[$_[:alpha:]])|(\\{([^{}]|(\\{([^{}]|\\{[^{}]*})*}))*})|(\\(([^()]|(\\(([^()]|\\([^()]*\\))*\\)))*\\))|(\\[([^]\\[]|(\\[([^]\\[]|\\[[^]\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\s*)?\\(\\s*(/\\*([^*]|(\\*[^/]))*\\*/\\s*)*((\\)\\s*:)|((\\.\\.\\.\\s*)?[$_[:alpha:]][$_[:alnum:]]*\\s*:)))|(<\\s*[$_[:alpha:]][$_[:alnum:]]*\\s+extends\\s*[^=>])|((<\\s*(((const\\s+)?[$_[:alpha:]])|(\\{([^{}]|(\\{([^{}]|\\{[^{}]*})*}))*})|(\\(([^()]|(\\(([^()]|\\([^()]*\\))*\\)))*\\))|(\\[([^]\\[]|(\\[([^]\\[]|\\[[^]\\[]*])*]))*]))([^<=>]|=[^<]|<\\s*(((const\\s+)?[$_[:alpha:]])|(\\{([^{}]|(\\{([^{}]|\\{[^{}]*})*}))*})|(\\(([^()]|(\\(([^()]|\\([^()]*\\))*\\)))*\\))|(\\[([^]\\[]|(\\[([^]\\[]|\\[[^]\\[]*])*]))*]))([^<=>]|=[^<]|<\\s*(((const\\s+)?[$_[:alpha:]])|(\\{([^{}]|(\\{([^{}]|\\{[^{}]*})*}))*})|(\\(([^()]|(\\(([^()]|\\([^()]*\\))*\\)))*\\))|(\\[([^]\\[]|(\\[([^]\\[]|\\[[^]\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\s*)?\\(\\s*(/\\*([^*]|(\\*[^/]))*\\*/\\s*)*(([$_[:alpha:]]|(\\{([^{}]|(\\{([^{}]|\\{[^{}]*})*}))*})|(\\[([^]\\[]|(\\[([^]\\[]|\\[[^]\\[]*])*]))*])|(\\.\\.\\.\\s*[$_[:alpha:]]))([^\"'()`]|(\\(([^()]|(\\(([^()]|\\([^()]*\\))*\\)))*\\))|('([^'\\\\]|\\\\.)*')|(\"([^\"\\\\]|\\\\.)*\")|(`([^\\\\`]|\\\\.)*`))*)?\\)(\\s*:\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\([^()]+\\)|\\{[^{}]+})+)?\\s*=>)))))"
2097
        },
2098
        {
2099
          "captures": {
2100
            "1": {
2101
              "name": "punctuation.accessor.js"
2102
            },
2103
            "2": {
2104
              "name": "punctuation.accessor.optional.js"
2105
            },
2106
            "3": {
2107
              "name": "variable.other.constant.property.js"
2108
            }
2109
          },
2110
          "match": "(?:(\\.)|(\\?\\.(?!\\s*\\d)))\\s*(#?\\p{upper}[$_\\d[:upper:]]*)(?![$_[:alnum:]])"
2111
        },
2112
        {
2113
          "captures": {
2114
            "1": {
2115
              "name": "punctuation.accessor.js"
2116
            },
2117
            "2": {
2118
              "name": "punctuation.accessor.optional.js"
2119
            },
2120
            "3": {
2121
              "name": "variable.other.property.js"
2122
            }
2123
          },
2124
          "match": "(?:(\\.)|(\\?\\.(?!\\s*\\d)))\\s*(#?[$_[:alpha:]][$_[:alnum:]]*)"
2125
        },
2126
        {
2127
          "match": "(\\p{upper}[$_\\d[:upper:]]*)(?![$_[:alnum:]])",
2128
          "name": "variable.other.constant.js"
2129
        },
2130
        {
2131
          "match": "[$_[:alpha:]][$_[:alnum:]]*",
2132
          "name": "variable.other.readwrite.js"
2133
        }
2134
      ]
2135
    },
2136
    "if-statement": {
2137
      "patterns": [
2138
        {
2139
          "begin": "(?<![$_[:alnum:]])(?:(?<=\\.\\.\\.)|(?<!\\.))(?=\\bif\\s*(\\(([^()]|(\\(([^()]|\\([^()]*\\))*\\)))*\\))\\s*(?!\\{))",
2140
          "end": "(?=;|$|})",
2141
          "patterns": [
2142
            {
2143
              "include": "#comment"
2144
            },
2145
            {
2146
              "begin": "(?<![$_[:alnum:]])(?:(?<=\\.\\.\\.)|(?<!\\.))(if)\\s*(\\()",
2147
              "beginCaptures": {
2148
                "1": {
2149
                  "name": "keyword.control.conditional.js"
2150
                },
2151
                "2": {
2152
                  "name": "meta.brace.round.js"
2153
                }
2154
              },
2155
              "end": "\\)",
2156
              "endCaptures": {
2157
                "0": {
2158
                  "name": "meta.brace.round.js"
2159
                }
2160
              },
2161
              "patterns": [
2162
                {
2163
                  "include": "#expression"
2164
                }
2165
              ]
2166
            },
2167
            {
2168
              "begin": "(?<=\\))\\s*/(?![*/])(?=(?:[^/\\[\\\\]|\\\\.|\\[([^]\\\\]|\\\\.)*])+/([dgimsuvy]+|(?![*/])|(?=/\\*))(?!\\s*[$0-9A-Z_a-z]))",
2169
              "beginCaptures": {
2170
                "0": {
2171
                  "name": "punctuation.definition.string.begin.js"
2172
                }
2173
              },
2174
              "end": "(/)([dgimsuvy]*)",
2175
              "endCaptures": {
2176
                "1": {
2177
                  "name": "punctuation.definition.string.end.js"
2178
                },
2179
                "2": {
2180
                  "name": "keyword.other.js"
2181
                }
2182
              },
2183
              "name": "string.regexp.js",
2184
              "patterns": [
2185
                {
2186
                  "include": "#regexp"
2187
                }
2188
              ]
2189
            },
2190
            {
2191
              "include": "#statements"
2192
            }
2193
          ]
2194
        }
2195
      ]
2196
    },
2197
    "import-declaration": {
2198
      "begin": "(?<![$_[:alnum:]])(?:(?<=\\.\\.\\.)|(?<!\\.))(?:\\b(export)\\s+)?(?:\\b(declare)\\s+)?\\b(import)(?:\\s+(type)(?!\\s+from))?(?!\\s*[(:])(?![$_[:alnum:]])(?:(?=\\.\\.\\.)|(?!\\.))",
2199
      "beginCaptures": {
2200
        "1": {
2201
          "name": "keyword.control.export.js"
2202
        },
2203
        "2": {
2204
          "name": "storage.modifier.js"
2205
        },
2206
        "3": {
2207
          "name": "keyword.control.import.js"
2208
        },
2209
        "4": {
2210
          "name": "keyword.control.type.js"
2211
        }
2212
      },
2213
      "end": "(?<!(?:^|[^$._[:alnum:]])import)(?=;|$|^)",
2214
      "name": "meta.import.js",
2215
      "patterns": [
2216
        {
2217
          "include": "#single-line-comment-consuming-line-ending"
2218
        },
2219
        {
2220
          "include": "#comment"
2221
        },
2222
        {
2223
          "include": "#string"
2224
        },
2225
        {
2226
          "begin": "(?<=(?:^|[^$._[:alnum:]])import)(?!\\s*[\"'])",
2227
          "end": "\\bfrom\\b",
2228
          "endCaptures": {
2229
            "0": {
2230
              "name": "keyword.control.from.js"
2231
            }
2232
          },
2233
          "patterns": [
2234
            {
2235
              "include": "#import-export-declaration"
2236
            }
2237
          ]
2238
        },
2239
        {
2240
          "include": "#import-export-declaration"
2241
        }
2242
      ]
2243
    },
2244
    "import-equals-declaration": {
2245
      "patterns": [
2246
        {
2247
          "begin": "(?<![$_[:alnum:]])(?:(?<=\\.\\.\\.)|(?<!\\.))(?:\\b(export)\\s+)?(?:\\b(declare)\\s+)?\\b(import)(?:\\s+(type))?\\s+([$_[:alpha:]][$_[:alnum:]]*)\\s*(=)\\s*(require)\\s*(\\()",
2248
          "beginCaptures": {
2249
            "1": {
2250
              "name": "keyword.control.export.js"
2251
            },
2252
            "2": {
2253
              "name": "storage.modifier.js"
2254
            },
2255
            "3": {
2256
              "name": "keyword.control.import.js"
2257
            },
2258
            "4": {
2259
              "name": "keyword.control.type.js"
2260
            },
2261
            "5": {
2262
              "name": "variable.other.readwrite.alias.js"
2263
            },
2264
            "6": {
2265
              "name": "keyword.operator.assignment.js"
2266
            },
2267
            "7": {
2268
              "name": "keyword.control.require.js"
2269
            },
2270
            "8": {
2271
              "name": "meta.brace.round.js"
2272
            }
2273
          },
2274
          "end": "\\)",
2275
          "endCaptures": {
2276
            "0": {
2277
              "name": "meta.brace.round.js"
2278
            }
2279
          },
2280
          "name": "meta.import-equals.external.js",
2281
          "patterns": [
2282
            {
2283
              "include": "#comment"
2284
            },
2285
            {
2286
              "include": "#string"
2287
            }
2288
          ]
2289
        },
2290
        {
2291
          "begin": "(?<![$_[:alnum:]])(?:(?<=\\.\\.\\.)|(?<!\\.))(?:\\b(export)\\s+)?(?:\\b(declare)\\s+)?\\b(import)(?:\\s+(type))?\\s+([$_[:alpha:]][$_[:alnum:]]*)\\s*(=)\\s*(?!require\\b)",
2292
          "beginCaptures": {
2293
            "1": {
2294
              "name": "keyword.control.export.js"
2295
            },
2296
            "2": {
2297
              "name": "storage.modifier.js"
2298
            },
2299
            "3": {
2300
              "name": "keyword.control.import.js"
2301
            },
2302
            "4": {
2303
              "name": "keyword.control.type.js"
2304
            },
2305
            "5": {
2306
              "name": "variable.other.readwrite.alias.js"
2307
            },
2308
            "6": {
2309
              "name": "keyword.operator.assignment.js"
2310
            }
2311
          },
2312
          "end": "(?=;|$|^)",
2313
          "name": "meta.import-equals.internal.js",
2314
          "patterns": [
2315
            {
2316
              "include": "#single-line-comment-consuming-line-ending"
2317
            },
2318
            {
2319
              "include": "#comment"
2320
            },
2321
            {
2322
              "captures": {
2323
                "1": {
2324
                  "name": "entity.name.type.module.js"
2325
                },
2326
                "2": {
2327
                  "name": "punctuation.accessor.js"
2328
                },
2329
                "3": {
2330
                  "name": "punctuation.accessor.optional.js"
2331
                }
2332
              },
2333
              "match": "([$_[:alpha:]][$_[:alnum:]]*)\\s*(?:(\\.)|(\\?\\.(?!\\s*\\d)))"
2334
            },
2335
            {
2336
              "match": "([$_[:alpha:]][$_[:alnum:]]*)",
2337
              "name": "variable.other.readwrite.js"
2338
            }
2339
          ]
2340
        }
2341
      ]
2342
    },
2343
    "import-export-assert-clause": {
2344
      "begin": "(?<![$_[:alnum:]])(?:(?<=\\.\\.\\.)|(?<!\\.))(?:(with)|(assert))\\s*(\\{)",
2345
      "beginCaptures": {
2346
        "1": {
2347
          "name": "keyword.control.with.js"
2348
        },
2349
        "2": {
2350
          "name": "keyword.control.assert.js"
2351
        },
2352
        "3": {
2353
          "name": "punctuation.definition.block.js"
2354
        }
2355
      },
2356
      "end": "}",
2357
      "endCaptures": {
2358
        "0": {
2359
          "name": "punctuation.definition.block.js"
2360
        }
2361
      },
2362
      "patterns": [
2363
        {
2364
          "include": "#comment"
2365
        },
2366
        {
2367
          "include": "#string"
2368
        },
2369
        {
2370
          "match": "[$_[:alpha:]][$_[:alnum:]]*\\s*(?=(/\\*([^*]|(\\*[^/]))*\\*/\\s*)*:)",
2371
          "name": "meta.object-literal.key.js"
2372
        },
2373
        {
2374
          "match": ":",
2375
          "name": "punctuation.separator.key-value.js"
2376
        }
2377
      ]
2378
    },
2379
    "import-export-block": {
2380
      "begin": "\\{",
2381
      "beginCaptures": {
2382
        "0": {
2383
          "name": "punctuation.definition.block.js"
2384
        }
2385
      },
2386
      "end": "}",
2387
      "endCaptures": {
2388
        "0": {
2389
          "name": "punctuation.definition.block.js"
2390
        }
2391
      },
2392
      "name": "meta.block.js",
2393
      "patterns": [
2394
        {
2395
          "include": "#import-export-clause"
2396
        }
2397
      ]
2398
    },
2399
    "import-export-clause": {
2400
      "patterns": [
2401
        {
2402
          "include": "#comment"
2403
        },
2404
        {
2405
          "captures": {
2406
            "1": {
2407
              "name": "keyword.control.type.js"
2408
            },
2409
            "12": {
2410
              "name": "keyword.control.as.js"
2411
            },
2412
            "13": {
2413
              "name": "keyword.control.default.js"
2414
            },
2415
            "14": {
2416
              "name": "variable.other.readwrite.alias.js"
2417
            },
2418
            "15": {
2419
              "name": "string.quoted.alias.js"
2420
            },
2421
            "2": {
2422
              "name": "keyword.control.default.js"
2423
            },
2424
            "3": {
2425
              "name": "constant.language.import-export-all.js"
2426
            },
2427
            "4": {
2428
              "name": "variable.other.readwrite.js"
2429
            },
2430
            "5": {
2431
              "name": "string.quoted.alias.js"
2432
            }
2433
          },
2434
          "match": "(?<![$_[:alnum:]])(?:(?<=\\.\\.\\.)|(?<!\\.))(?:\\b(type)\\s+)?(?:\\b(default)|(\\*)|\\b([$_[:alpha:]][$_[:alnum:]]*)|(('([^'\\\\]|\\\\.)*')|(\"([^\"\\\\]|\\\\.)*\")|(`([^\\\\`]|\\\\.)*`)))\\s+(as)\\s+(?:(default(?![$_[:alnum:]])(?:(?=\\.\\.\\.)|(?!\\.)))|([$_[:alpha:]][$_[:alnum:]]*)|(('([^'\\\\]|\\\\.)*')|(\"([^\"\\\\]|\\\\.)*\")|(`([^\\\\`]|\\\\.)*`)))"
2435
        },
2436
        {
2437
          "include": "#punctuation-comma"
2438
        },
2439
        {
2440
          "match": "\\*",
2441
          "name": "constant.language.import-export-all.js"
2442
        },
2443
        {
2444
          "match": "\\b(default)\\b",
2445
          "name": "keyword.control.default.js"
2446
        },
2447
        {
2448
          "captures": {
2449
            "1": {
2450
              "name": "keyword.control.type.js"
2451
            },
2452
            "2": {
2453
              "name": "variable.other.readwrite.alias.js"
2454
            },
2455
            "3": {
2456
              "name": "string.quoted.alias.js"
2457
            }
2458
          },
2459
          "match": "(?:\\b(type)\\s+)?(?:([$_[:alpha:]][$_[:alnum:]]*)|(('([^'\\\\]|\\\\.)*')|(\"([^\"\\\\]|\\\\.)*\")|(`([^\\\\`]|\\\\.)*`)))"
2460
        }
2461
      ]
2462
    },
2463
    "import-export-declaration": {
2464
      "patterns": [
2465
        {
2466
          "include": "#comment"
2467
        },
2468
        {
2469
          "include": "#string"
2470
        },
2471
        {
2472
          "include": "#import-export-block"
2473
        },
2474
        {
2475
          "match": "\\bfrom\\b",
2476
          "name": "keyword.control.from.js"
2477
        },
2478
        {
2479
          "include": "#import-export-assert-clause"
2480
        },
2481
        {
2482
          "include": "#import-export-clause"
2483
        }
2484
      ]
2485
    },
2486
    "indexer-declaration": {
2487
      "begin": "(?:(?<![$_[:alnum:]])(?:(?<=\\.\\.\\.)|(?<!\\.))(readonly)\\s*)?\\s*(\\[)\\s*([$_[:alpha:]][$_[:alnum:]]*)\\s*(?=:)",
2488
      "beginCaptures": {
2489
        "1": {
2490
          "name": "storage.modifier.js"
2491
        },
2492
        "2": {
2493
          "name": "meta.brace.square.js"
2494
        },
2495
        "3": {
2496
          "name": "variable.parameter.js"
2497
        }
2498
      },
2499
      "end": "(])\\s*(\\?\\s*)?|$",
2500
      "endCaptures": {
2501
        "1": {
2502
          "name": "meta.brace.square.js"
2503
        },
2504
        "2": {
2505
          "name": "keyword.operator.optional.js"
2506
        }
2507
      },
2508
      "name": "meta.indexer.declaration.js",
2509
      "patterns": [
2510
        {
2511
          "include": "#type-annotation"
2512
        }
2513
      ]
2514
    },
2515
    "indexer-mapped-type-declaration": {
2516
      "begin": "(?:(?<![$_[:alnum:]])(?:(?<=\\.\\.\\.)|(?<!\\.))([-+])?(readonly)\\s*)?\\s*(\\[)\\s*([$_[:alpha:]][$_[:alnum:]]*)\\s+(in)\\s+",
2517
      "beginCaptures": {
2518
        "1": {
2519
          "name": "keyword.operator.type.modifier.js"
2520
        },
2521
        "2": {
2522
          "name": "storage.modifier.js"
2523
        },
2524
        "3": {
2525
          "name": "meta.brace.square.js"
2526
        },
2527
        "4": {
2528
          "name": "entity.name.type.js"
2529
        },
2530
        "5": {
2531
          "name": "keyword.operator.expression.in.js"
2532
        }
2533
      },
2534
      "end": "(])([-+])?\\s*(\\?\\s*)?|$",
2535
      "endCaptures": {
2536
        "1": {
2537
          "name": "meta.brace.square.js"
2538
        },
2539
        "2": {
2540
          "name": "keyword.operator.type.modifier.js"
2541
        },
2542
        "3": {
2543
          "name": "keyword.operator.optional.js"
2544
        }
2545
      },
2546
      "name": "meta.indexer.mappedtype.declaration.js",
2547
      "patterns": [
2548
        {
2549
          "captures": {
2550
            "1": {
2551
              "name": "keyword.control.as.js"
2552
            }
2553
          },
2554
          "match": "(?<![$_[:alnum:]])(?:(?<=\\.\\.\\.)|(?<!\\.))(as)\\s+"
2555
        },
2556
        {
2557
          "include": "#type"
2558
        }
2559
      ]
2560
    },
2561
    "inline-tags": {
2562
      "patterns": [
2563
        {
2564
          "captures": {
2565
            "1": {
2566
              "name": "punctuation.definition.bracket.square.begin.jsdoc"
2567
            },
2568
            "2": {
2569
              "name": "punctuation.definition.bracket.square.end.jsdoc"
2570
            }
2571
          },
2572
          "match": "(\\[)[^]]+(])(?=\\{@(?:link|linkcode|linkplain|tutorial))",
2573
          "name": "constant.other.description.jsdoc"
2574
        },
2575
        {
2576
          "begin": "(\\{)((@)(?:link(?:code|plain)?|tutorial))\\s*",
2577
          "beginCaptures": {
2578
            "1": {
2579
              "name": "punctuation.definition.bracket.curly.begin.jsdoc"
2580
            },
2581
            "2": {
2582
              "name": "storage.type.class.jsdoc"
2583
            },
2584
            "3": {
2585
              "name": "punctuation.definition.inline.tag.jsdoc"
2586
            }
2587
          },
2588
          "end": "}|(?=\\*/)",
2589
          "endCaptures": {
2590
            "0": {
2591
              "name": "punctuation.definition.bracket.curly.end.jsdoc"
2592
            }
2593
          },
2594
          "name": "entity.name.type.instance.jsdoc",
2595
          "patterns": [
2596
            {
2597
              "captures": {
2598
                "1": {
2599
                  "name": "variable.other.link.underline.jsdoc"
2600
                },
2601
                "2": {
2602
                  "name": "punctuation.separator.pipe.jsdoc"
2603
                }
2604
              },
2605
              "match": "\\G((?=https?://)(?:[^*|}\\s]|\\*/)+)(\\|)?"
2606
            },
2607
            {
2608
              "captures": {
2609
                "1": {
2610
                  "name": "variable.other.description.jsdoc"
2611
                },
2612
                "2": {
2613
                  "name": "punctuation.separator.pipe.jsdoc"
2614
                }
2615
              },
2616
              "match": "\\G((?:[^*@{|}\\s]|\\*[^/])+)(\\|)?"
2617
            }
2618
          ]
2619
        }
2620
      ]
2621
    },
2622
    "instanceof-expr": {
2623
      "begin": "(?<![$_[:alnum:]])(?:(?<=\\.\\.\\.)|(?<!\\.))(instanceof)(?![$_[:alnum:]])(?:(?=\\.\\.\\.)|(?!\\.))",
2624
      "beginCaptures": {
2625
        "1": {
2626
          "name": "keyword.operator.expression.instanceof.js"
2627
        }
2628
      },
2629
      "end": "(?<=\\))|(?=[-\\])+,:;>?}]|\\|\\||&&|!==|$|([!=]==?)|(([\\&^|~]\\s*)?[$_[:alpha:]][$_[:alnum:]]*\\s+instanceof(?![$_[:alnum:]])(?:(?=\\.\\.\\.)|(?!\\.)))|((?<![$_[:alnum:]])(?:(?<=\\.\\.\\.)|(?<!\\.))function((\\s+[$_[:alpha:]][$_[:alnum:]]*)|(\\s*\\())))",
2630
      "patterns": [
2631
        {
2632
          "include": "#type"
2633
        }
2634
      ]
2635
    },
2636
    "interface-declaration": {
2637
      "begin": "(?<![$_[:alnum:]])(?:(?<=\\.\\.\\.)|(?<!\\.))(?:\\b(export)\\s+)?(?:\\b(declare)\\s+)?\\b(?:(abstract)\\s+)?\\b(interface)\\b(?=\\s+|/[*/])",
2638
      "beginCaptures": {
2639
        "1": {
2640
          "name": "keyword.control.export.js"
2641
        },
2642
        "2": {
2643
          "name": "storage.modifier.js"
2644
        },
2645
        "3": {
2646
          "name": "storage.modifier.js"
2647
        },
2648
        "4": {
2649
          "name": "storage.type.interface.js"
2650
        }
2651
      },
2652
      "end": "(?<=})",
2653
      "name": "meta.interface.js",
2654
      "patterns": [
2655
        {
2656
          "include": "#comment"
2657
        },
2658
        {
2659
          "include": "#class-or-interface-heritage"
2660
        },
2661
        {
2662
          "captures": {
2663
            "0": {
2664
              "name": "entity.name.type.interface.js"
2665
            }
2666
          },
2667
          "match": "[$_[:alpha:]][$_[:alnum:]]*"
2668
        },
2669
        {
2670
          "include": "#type-parameters"
2671
        },
2672
        {
2673
          "include": "#class-or-interface-body"
2674
        }
2675
      ]
2676
    },
2677
    "jsdoctype": {
2678
      "patterns": [
2679
        {
2680
          "begin": "\\G(\\{)",
2681
          "beginCaptures": {
2682
            "0": {
2683
              "name": "entity.name.type.instance.jsdoc"
2684
            },
2685
            "1": {
2686
              "name": "punctuation.definition.bracket.curly.begin.jsdoc"
2687
            }
2688
          },
2689
          "contentName": "entity.name.type.instance.jsdoc",
2690
          "end": "((}))\\s*|(?=\\*/)",
2691
          "endCaptures": {
2692
            "1": {
2693
              "name": "entity.name.type.instance.jsdoc"
2694
            },
2695
            "2": {
2696
              "name": "punctuation.definition.bracket.curly.end.jsdoc"
2697
            }
2698
          },
2699
          "patterns": [
2700
            {
2701
              "include": "#brackets"
2702
            }
2703
          ]
2704
        }
2705
      ]
2706
    },
2707
    "jsx": {
2708
      "patterns": [
2709
        {
2710
          "include": "#jsx-tag-without-attributes-in-expression"
2711
        },
2712
        {
2713
          "include": "#jsx-tag-in-expression"
2714
        }
2715
      ]
2716
    },
2717
    "jsx-children": {
2718
      "patterns": [
2719
        {
2720
          "include": "#jsx-tag-without-attributes"
2721
        },
2722
        {
2723
          "include": "#jsx-tag"
2724
        },
2725
        {
2726
          "include": "#jsx-evaluated-code"
2727
        },
2728
        {
2729
          "include": "#jsx-entities"
2730
        }
2731
      ]
2732
    },
2733
    "jsx-entities": {
2734
      "patterns": [
2735
        {
2736
          "captures": {
2737
            "1": {
2738
              "name": "punctuation.definition.entity.js"
2739
            },
2740
            "3": {
2741
              "name": "punctuation.definition.entity.js"
2742
            }
2743
          },
2744
          "match": "(&)([0-9A-Za-z]+|#[0-9]+|#x\\h+)(;)",
2745
          "name": "constant.character.entity.js"
2746
        }
2747
      ]
2748
    },
2749
    "jsx-evaluated-code": {
2750
      "begin": "\\{",
2751
      "beginCaptures": {
2752
        "0": {
2753
          "name": "punctuation.section.embedded.begin.js"
2754
        }
2755
      },
2756
      "contentName": "meta.embedded.expression.js",
2757
      "end": "}",
2758
      "endCaptures": {
2759
        "0": {
2760
          "name": "punctuation.section.embedded.end.js"
2761
        }
2762
      },
2763
      "patterns": [
2764
        {
2765
          "include": "#expression"
2766
        }
2767
      ]
2768
    },
2769
    "jsx-string-double-quoted": {
2770
      "begin": "\"",
2771
      "beginCaptures": {
2772
        "0": {
2773
          "name": "punctuation.definition.string.begin.js"
2774
        }
2775
      },
2776
      "end": "\"",
2777
      "endCaptures": {
2778
        "0": {
2779
          "name": "punctuation.definition.string.end.js"
2780
        }
2781
      },
2782
      "name": "string.quoted.double.js",
2783
      "patterns": [
2784
        {
2785
          "include": "#jsx-entities"
2786
        }
2787
      ]
2788
    },
2789
    "jsx-string-single-quoted": {
2790
      "begin": "'",
2791
      "beginCaptures": {
2792
        "0": {
2793
          "name": "punctuation.definition.string.begin.js"
2794
        }
2795
      },
2796
      "end": "'",
2797
      "endCaptures": {
2798
        "0": {
2799
          "name": "punctuation.definition.string.end.js"
2800
        }
2801
      },
2802
      "name": "string.quoted.single.js",
2803
      "patterns": [
2804
        {
2805
          "include": "#jsx-entities"
2806
        }
2807
      ]
2808
    },
2809
    "jsx-tag": {
2810
      "begin": "(?=(<)\\s*(?:([$_[:alpha:]][-$._[:alnum:]]*)(?<![-.])(:))?((?:[a-z][0-9a-z]*|([$_[:alpha:]][-$._[:alnum:]]*))(?<![-.]))(?=((<\\s*)|(\\s+))(?!\\?)|/?>))",
2811
      "end": "(/>)|(</)\\s*(?:([$_[:alpha:]][-$._[:alnum:]]*)(?<![-.])(:))?((?:[a-z][0-9a-z]*|([$_[:alpha:]][-$._[:alnum:]]*))(?<![-.]))?\\s*(>)",
2812
      "endCaptures": {
2813
        "1": {
2814
          "name": "punctuation.definition.tag.end.js"
2815
        },
2816
        "2": {
2817
          "name": "punctuation.definition.tag.begin.js"
2818
        },
2819
        "3": {
2820
          "name": "entity.name.tag.namespace.js"
2821
        },
2822
        "4": {
2823
          "name": "punctuation.separator.namespace.js"
2824
        },
2825
        "5": {
2826
          "name": "entity.name.tag.js"
2827
        },
2828
        "6": {
2829
          "name": "support.class.component.js"
2830
        },
2831
        "7": {
2832
          "name": "punctuation.definition.tag.end.js"
2833
        }
2834
      },
2835
      "name": "meta.tag.js",
2836
      "patterns": [
2837
        {
2838
          "begin": "(<)\\s*(?:([$_[:alpha:]][-$._[:alnum:]]*)(?<![-.])(:))?((?:[a-z][0-9a-z]*|([$_[:alpha:]][-$._[:alnum:]]*))(?<![-.]))(?=((<\\s*)|(\\s+))(?!\\?)|/?>)",
2839
          "beginCaptures": {
2840
            "1": {
2841
              "name": "punctuation.definition.tag.begin.js"
2842
            },
2843
            "2": {
2844
              "name": "entity.name.tag.namespace.js"
2845
            },
2846
            "3": {
2847
              "name": "punctuation.separator.namespace.js"
2848
            },
2849
            "4": {
2850
              "name": "entity.name.tag.js"
2851
            },
2852
            "5": {
2853
              "name": "support.class.component.js"
2854
            }
2855
          },
2856
          "end": "(?=/?>)",
2857
          "patterns": [
2858
            {
2859
              "include": "#comment"
2860
            },
2861
            {
2862
              "include": "#type-arguments"
2863
            },
2864
            {
2865
              "include": "#jsx-tag-attributes"
2866
            }
2867
          ]
2868
        },
2869
        {
2870
          "begin": "(>)",
2871
          "beginCaptures": {
2872
            "1": {
2873
              "name": "punctuation.definition.tag.end.js"
2874
            }
2875
          },
2876
          "contentName": "meta.jsx.children.js",
2877
          "end": "(?=</)",
2878
          "patterns": [
2879
            {
2880
              "include": "#jsx-children"
2881
            }
2882
          ]
2883
        }
2884
      ]
2885
    },
2886
    "jsx-tag-attribute-assignment": {
2887
      "match": "=(?=\\s*(?:[\"'{]|/\\*|//|\\n))",
2888
      "name": "keyword.operator.assignment.js"
2889
    },
2890
    "jsx-tag-attribute-name": {
2891
      "captures": {
2892
        "1": {
2893
          "name": "entity.other.attribute-name.namespace.js"
2894
        },
2895
        "2": {
2896
          "name": "punctuation.separator.namespace.js"
2897
        },
2898
        "3": {
2899
          "name": "entity.other.attribute-name.js"
2900
        }
2901
      },
2902
      "match": "\\s*(?:([$_[:alpha:]][-$._[:alnum:]]*)(:))?([$_[:alpha:]][-$_[:alnum:]]*)(?=[=\\s]|/?>|/\\*|//)"
2903
    },
2904
    "jsx-tag-attributes": {
2905
      "begin": "\\s+",
2906
      "end": "(?=/?>)",
2907
      "name": "meta.tag.attributes.js",
2908
      "patterns": [
2909
        {
2910
          "include": "#comment"
2911
        },
2912
        {
2913
          "include": "#jsx-tag-attribute-name"
2914
        },
2915
        {
2916
          "include": "#jsx-tag-attribute-assignment"
2917
        },
2918
        {
2919
          "include": "#jsx-string-double-quoted"
2920
        },
2921
        {
2922
          "include": "#jsx-string-single-quoted"
2923
        },
2924
        {
2925
          "include": "#jsx-evaluated-code"
2926
        },
2927
        {
2928
          "include": "#jsx-tag-attributes-illegal"
2929
        }
2930
      ]
2931
    },
2932
    "jsx-tag-attributes-illegal": {
2933
      "match": "\\S+",
2934
      "name": "invalid.illegal.attribute.js"
2935
    },
2936
    "jsx-tag-in-expression": {
2937
      "begin": "(?<!\\+\\+|--)(?<=[(*,:=>?\\[{]|&&|\\|\\||\\?|\\*/|^await|[^$._[:alnum:]]await|^return|[^$._[:alnum:]]return|^default|[^$._[:alnum:]]default|^yield|[^$._[:alnum:]]yield|^)\\s*(?!<\\s*[$_[:alpha:]][$_[:alnum:]]*((\\s+extends\\s+[^=>])|,))(?=(<)\\s*(?:([$_[:alpha:]][-$._[:alnum:]]*)(?<![-.])(:))?((?:[a-z][0-9a-z]*|([$_[:alpha:]][-$._[:alnum:]]*))(?<![-.]))(?=((<\\s*)|(\\s+))(?!\\?)|/?>))",
2938
      "end": "(?!(<)\\s*(?:([$_[:alpha:]][-$._[:alnum:]]*)(?<![-.])(:))?((?:[a-z][0-9a-z]*|([$_[:alpha:]][-$._[:alnum:]]*))(?<![-.]))(?=((<\\s*)|(\\s+))(?!\\?)|/?>))",
2939
      "patterns": [
2940
        {
2941
          "include": "#jsx-tag"
2942
        }
2943
      ]
2944
    },
2945
    "jsx-tag-without-attributes": {
2946
      "begin": "(<)\\s*(?:([$_[:alpha:]][-$._[:alnum:]]*)(?<![-.])(:))?((?:[a-z][0-9a-z]*|([$_[:alpha:]][-$._[:alnum:]]*))(?<![-.]))?\\s*(>)",
2947
      "beginCaptures": {
2948
        "1": {
2949
          "name": "punctuation.definition.tag.begin.js"
2950
        },
2951
        "2": {
2952
          "name": "entity.name.tag.namespace.js"
2953
        },
2954
        "3": {
2955
          "name": "punctuation.separator.namespace.js"
2956
        },
2957
        "4": {
2958
          "name": "entity.name.tag.js"
2959
        },
2960
        "5": {
2961
          "name": "support.class.component.js"
2962
        },
2963
        "6": {
2964
          "name": "punctuation.definition.tag.end.js"
2965
        }
2966
      },
2967
      "contentName": "meta.jsx.children.js",
2968
      "end": "(</)\\s*(?:([$_[:alpha:]][-$._[:alnum:]]*)(?<![-.])(:))?((?:[a-z][0-9a-z]*|([$_[:alpha:]][-$._[:alnum:]]*))(?<![-.]))?\\s*(>)",
2969
      "endCaptures": {
2970
        "1": {
2971
          "name": "punctuation.definition.tag.begin.js"
2972
        },
2973
        "2": {
2974
          "name": "entity.name.tag.namespace.js"
2975
        },
2976
        "3": {
2977
          "name": "punctuation.separator.namespace.js"
2978
        },
2979
        "4": {
2980
          "name": "entity.name.tag.js"
2981
        },
2982
        "5": {
2983
          "name": "support.class.component.js"
2984
        },
2985
        "6": {
2986
          "name": "punctuation.definition.tag.end.js"
2987
        }
2988
      },
2989
      "name": "meta.tag.without-attributes.js",
2990
      "patterns": [
2991
        {
2992
          "include": "#jsx-children"
2993
        }
2994
      ]
2995
    },
2996
    "jsx-tag-without-attributes-in-expression": {
2997
      "begin": "(?<!\\+\\+|--)(?<=[(*,:=>?\\[{]|&&|\\|\\||\\?|\\*/|^await|[^$._[:alnum:]]await|^return|[^$._[:alnum:]]return|^default|[^$._[:alnum:]]default|^yield|[^$._[:alnum:]]yield|^)\\s*(?=(<)\\s*(?:([$_[:alpha:]][-$._[:alnum:]]*)(?<![-.])(:))?((?:[a-z][0-9a-z]*|([$_[:alpha:]][-$._[:alnum:]]*))(?<![-.]))?\\s*(>))",
2998
      "end": "(?!(<)\\s*(?:([$_[:alpha:]][-$._[:alnum:]]*)(?<![-.])(:))?((?:[a-z][0-9a-z]*|([$_[:alpha:]][-$._[:alnum:]]*))(?<![-.]))?\\s*(>))",
2999
      "patterns": [
3000
        {
3001
          "include": "#jsx-tag-without-attributes"
3002
        }
3003
      ]
3004
    },
3005
    "label": {
3006
      "patterns": [
3007
        {
3008
          "begin": "([$_[:alpha:]][$_[:alnum:]]*)\\s*(:)(?=\\s*\\{)",
3009
          "beginCaptures": {
3010
            "1": {
3011
              "name": "entity.name.label.js"
3012
            },
3013
            "2": {
3014
              "name": "punctuation.separator.label.js"
3015
            }
3016
          },
3017
          "end": "(?<=})",
3018
          "patterns": [
3019
            {
3020
              "include": "#decl-block"
3021
            }
3022
          ]
3023
        },
3024
        {
3025
          "captures": {
3026
            "1": {
3027
              "name": "entity.name.label.js"
3028
            },
3029
            "2": {
3030
              "name": "punctuation.separator.label.js"
3031
            }
3032
          },
3033
          "match": "([$_[:alpha:]][$_[:alnum:]]*)\\s*(:)"
3034
        }
3035
      ]
3036
    },
3037
    "literal": {
3038
      "patterns": [
3039
        {
3040
          "include": "#numeric-literal"
3041
        },
3042
        {
3043
          "include": "#boolean-literal"
3044
        },
3045
        {
3046
          "include": "#null-literal"
3047
        },
3048
        {
3049
          "include": "#undefined-literal"
3050
        },
3051
        {
3052
          "include": "#numericConstant-literal"
3053
        },
3054
        {
3055
          "include": "#array-literal"
3056
        },
3057
        {
3058
          "include": "#this-literal"
3059
        },
3060
        {
3061
          "include": "#super-literal"
3062
        }
3063
      ]
3064
    },
3065
    "method-declaration": {
3066
      "patterns": [
3067
        {
3068
          "begin": "(?<![$_[:alnum:]])(?:(?<=\\.\\.\\.)|(?<!\\.))(?:\\b(override)\\s+)?(?:\\b(p(?:ublic|rivate|rotected))\\s+)?(?:\\b(abstract)\\s+)?(?:\\b(async)\\s+)?\\s*\\b(constructor)\\b(?!:)(?![$_[:alnum:]])(?:(?=\\.\\.\\.)|(?!\\.))",
3069
          "beginCaptures": {
3070
            "1": {
3071
              "name": "storage.modifier.js"
3072
            },
3073
            "2": {
3074
              "name": "storage.modifier.js"
3075
            },
3076
            "3": {
3077
              "name": "storage.modifier.js"
3078
            },
3079
            "4": {
3080
              "name": "storage.modifier.async.js"
3081
            },
3082
            "5": {
3083
              "name": "storage.type.js"
3084
            }
3085
          },
3086
          "end": "(?=[,;}]|$)|(?<=})",
3087
          "name": "meta.method.declaration.js",
3088
          "patterns": [
3089
            {
3090
              "include": "#method-declaration-name"
3091
            },
3092
            {
3093
              "include": "#function-body"
3094
            }
3095
          ]
3096
        },
3097
        {
3098
          "begin": "(?<![$_[:alnum:]])(?:(?<=\\.\\.\\.)|(?<!\\.))(?:\\b(override)\\s+)?(?:\\b(p(?:ublic|rivate|rotected))\\s+)?(?:\\b(abstract)\\s+)?(?:\\b(async)\\s+)?(?:\\s*\\b(new)\\b(?!:)(?![$_[:alnum:]])(?:(?=\\.\\.\\.)|(?!\\.))|(?:(\\*)\\s*)?)(?=\\s*((<\\s*(((const\\s+)?[$_[:alpha:]])|(\\{([^{}]|(\\{([^{}]|\\{[^{}]*})*}))*})|(\\(([^()]|(\\(([^()]|\\([^()]*\\))*\\)))*\\))|(\\[([^]\\[]|(\\[([^]\\[]|\\[[^]\\[]*])*]))*]))([^<=>]|=[^<]|<\\s*(((const\\s+)?[$_[:alpha:]])|(\\{([^{}]|(\\{([^{}]|\\{[^{}]*})*}))*})|(\\(([^()]|(\\(([^()]|\\([^()]*\\))*\\)))*\\))|(\\[([^]\\[]|(\\[([^]\\[]|\\[[^]\\[]*])*]))*]))([^<=>]|=[^<]|<\\s*(((const\\s+)?[$_[:alpha:]])|(\\{([^{}]|(\\{([^{}]|\\{[^{}]*})*}))*})|(\\(([^()]|(\\(([^()]|\\([^()]*\\))*\\)))*\\))|(\\[([^]\\[]|(\\[([^]\\[]|\\[[^]\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\s*))?\\()",
3099
          "beginCaptures": {
3100
            "1": {
3101
              "name": "storage.modifier.js"
3102
            },
3103
            "2": {
3104
              "name": "storage.modifier.js"
3105
            },
3106
            "3": {
3107
              "name": "storage.modifier.js"
3108
            },
3109
            "4": {
3110
              "name": "storage.modifier.async.js"
3111
            },
3112
            "5": {
3113
              "name": "keyword.operator.new.js"
3114
            },
3115
            "6": {
3116
              "name": "keyword.generator.asterisk.js"
3117
            }
3118
          },
3119
          "end": "(?=[,;}]|$)|(?<=})",
3120
          "name": "meta.method.declaration.js",
3121
          "patterns": [
3122
            {
3123
              "include": "#method-declaration-name"
3124
            },
3125
            {
3126
              "include": "#function-body"
3127
            }
3128
          ]
3129
        },
3130
        {
3131
          "begin": "(?<![$_[:alnum:]])(?:(?<=\\.\\.\\.)|(?<!\\.))(?:\\b(override)\\s+)?(?:\\b(p(?:ublic|rivate|rotected))\\s+)?(?:\\b(abstract)\\s+)?(?:\\b(async)\\s+)?(?:\\b([gs]et)\\s+)?(?:(\\*)\\s*)?(?=\\s*((\\b((?<!\\$)0[Xx]\\h[_\\h]*(n)?\\b(?!\\$))|\\b((?<!\\$)0[Bb][01][01_]*(n)?\\b(?!\\$))|\\b((?<!\\$)0[Oo]?[0-7][0-7_]*(n)?\\b(?!\\$))|((?<!\\$)(?:\\b[0-9][0-9_]*(\\.)[0-9][0-9_]*[Ee][-+]?[0-9][0-9_]*(n)?\\b|\\b[0-9][0-9_]*(\\.)[Ee][-+]?[0-9][0-9_]*(n)?\\b|\\B(\\.)[0-9][0-9_]*[Ee][-+]?[0-9][0-9_]*(n)?\\b|\\b[0-9][0-9_]*[Ee][-+]?[0-9][0-9_]*(n)?\\b|\\b[0-9][0-9_]*(\\.)[0-9][0-9_]*(n)?\\b|\\b[0-9][0-9_]*(\\.)(n)?\\B|\\B(\\.)[0-9][0-9_]*(n)?\\b|\\b[0-9][0-9_]*(n)?\\b(?!\\.))(?!\\$))|([$_[:alpha:]][$_[:alnum:]]*)|('([^'\\\\]|\\\\.)*')|(\"([^\"\\\\]|\\\\.)*\")|(`([^\\\\`]|\\\\.)*`)|(\\[([^]\\[]|\\[[^]\\[]*])+]))\\s*(\\??))\\s*((<\\s*(((const\\s+)?[$_[:alpha:]])|(\\{([^{}]|(\\{([^{}]|\\{[^{}]*})*}))*})|(\\(([^()]|(\\(([^()]|\\([^()]*\\))*\\)))*\\))|(\\[([^]\\[]|(\\[([^]\\[]|\\[[^]\\[]*])*]))*]))([^<=>]|=[^<]|<\\s*(((const\\s+)?[$_[:alpha:]])|(\\{([^{}]|(\\{([^{}]|\\{[^{}]*})*}))*})|(\\(([^()]|(\\(([^()]|\\([^()]*\\))*\\)))*\\))|(\\[([^]\\[]|(\\[([^]\\[]|\\[[^]\\[]*])*]))*]))([^<=>]|=[^<]|<\\s*(((const\\s+)?[$_[:alpha:]])|(\\{([^{}]|(\\{([^{}]|\\{[^{}]*})*}))*})|(\\(([^()]|(\\(([^()]|\\([^()]*\\))*\\)))*\\))|(\\[([^]\\[]|(\\[([^]\\[]|\\[[^]\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\s*))?\\()",
3132
          "beginCaptures": {
3133
            "1": {
3134
              "name": "storage.modifier.js"
3135
            },
3136
            "2": {
3137
              "name": "storage.modifier.js"
3138
            },
3139
            "3": {
3140
              "name": "storage.modifier.js"
3141
            },
3142
            "4": {
3143
              "name": "storage.modifier.async.js"
3144
            },
3145
            "5": {
3146
              "name": "storage.type.property.js"
3147
            },
3148
            "6": {
3149
              "name": "keyword.generator.asterisk.js"
3150
            }
3151
          },
3152
          "end": "(?=[,;}]|$)|(?<=})",
3153
          "name": "meta.method.declaration.js",
3154
          "patterns": [
3155
            {
3156
              "include": "#method-declaration-name"
3157
            },
3158
            {
3159
              "include": "#function-body"
3160
            }
3161
          ]
3162
        }
3163
      ]
3164
    },
3165
    "method-declaration-name": {
3166
      "begin": "(?=(\\b((?<!\\$)0[Xx]\\h[_\\h]*(n)?\\b(?!\\$))|\\b((?<!\\$)0[Bb][01][01_]*(n)?\\b(?!\\$))|\\b((?<!\\$)0[Oo]?[0-7][0-7_]*(n)?\\b(?!\\$))|((?<!\\$)(?:\\b[0-9][0-9_]*(\\.)[0-9][0-9_]*[Ee][-+]?[0-9][0-9_]*(n)?\\b|\\b[0-9][0-9_]*(\\.)[Ee][-+]?[0-9][0-9_]*(n)?\\b|\\B(\\.)[0-9][0-9_]*[Ee][-+]?[0-9][0-9_]*(n)?\\b|\\b[0-9][0-9_]*[Ee][-+]?[0-9][0-9_]*(n)?\\b|\\b[0-9][0-9_]*(\\.)[0-9][0-9_]*(n)?\\b|\\b[0-9][0-9_]*(\\.)(n)?\\B|\\B(\\.)[0-9][0-9_]*(n)?\\b|\\b[0-9][0-9_]*(n)?\\b(?!\\.))(?!\\$))|([$_[:alpha:]][$_[:alnum:]]*)|('([^'\\\\]|\\\\.)*')|(\"([^\"\\\\]|\\\\.)*\")|(`([^\\\\`]|\\\\.)*`)|(\\[([^]\\[]|\\[[^]\\[]*])+]))\\s*(\\??)\\s*[(<])",
3167
      "end": "(?=[(<])",
3168
      "patterns": [
3169
        {
3170
          "include": "#string"
3171
        },
3172
        {
3173
          "include": "#array-literal"
3174
        },
3175
        {
3176
          "include": "#numeric-literal"
3177
        },
3178
        {
3179
          "match": "[$_[:alpha:]][$_[:alnum:]]*",
3180
          "name": "meta.definition.method.js entity.name.function.js"
3181
        },
3182
        {
3183
          "match": "\\?",
3184
          "name": "keyword.operator.optional.js"
3185
        }
3186
      ]
3187
    },
3188
    "namespace-declaration": {
3189
      "begin": "(?<![$_[:alnum:]])(?:(?<=\\.\\.\\.)|(?<!\\.))(?:\\b(export)\\s+)?(?:\\b(declare)\\s+)?\\b(namespace|module)\\s+(?=[\"$'_`[:alpha:]])",
3190
      "beginCaptures": {
3191
        "1": {
3192
          "name": "keyword.control.export.js"
3193
        },
3194
        "2": {
3195
          "name": "storage.modifier.js"
3196
        },
3197
        "3": {
3198
          "name": "storage.type.namespace.js"
3199
        }
3200
      },
3201
      "end": "(?<=})|(?=;|^\\s*$|^\\s*(?:abstract|async|\\bawait\\s+\\busing(?=\\s+(?!in\\b|of\\b(?!\\s*(?:of\\b|=)))[$_[:alpha:]])\\b\\b|break|case|catch|class|const|continue|declare|do|else|enum|export|finally|function|for|goto|if|import|interface|let|module|namespace|switch|return|throw|try|type|\\busing(?=\\s+(?!in\\b|of\\b(?!\\s*(?:of\\b|=)))[$_[:alpha:]])\\b|var|while)\\b)",
3202
      "name": "meta.namespace.declaration.js",
3203
      "patterns": [
3204
        {
3205
          "include": "#comment"
3206
        },
3207
        {
3208
          "include": "#string"
3209
        },
3210
        {
3211
          "match": "([$_[:alpha:]][$_[:alnum:]]*)",
3212
          "name": "entity.name.type.module.js"
3213
        },
3214
        {
3215
          "include": "#punctuation-accessor"
3216
        },
3217
        {
3218
          "include": "#decl-block"
3219
        }
3220
      ]
3221
    },
3222
    "new-expr": {
3223
      "begin": "(?<![$_[:alnum:]])(?:(?<=\\.\\.\\.)|(?<!\\.))(new)(?![$_[:alnum:]])(?:(?=\\.\\.\\.)|(?!\\.))",
3224
      "beginCaptures": {
3225
        "1": {
3226
          "name": "keyword.operator.new.js"
3227
        }
3228
      },
3229
      "end": "(?<=\\))|(?=[-\\])+,:;>?}]|\\|\\||&&|!==|$|((?<![$_[:alnum:]])(?:(?<=\\.\\.\\.)|(?<!\\.))new(?![$_[:alnum:]])(?:(?=\\.\\.\\.)|(?!\\.)))|((?<![$_[:alnum:]])(?:(?<=\\.\\.\\.)|(?<!\\.))function((\\s+[$_[:alpha:]][$_[:alnum:]]*)|(\\s*\\())))",
3230
      "name": "new.expr.js",
3231
      "patterns": [
3232
        {
3233
          "include": "#expression"
3234
        }
3235
      ]
3236
    },
3237
    "null-literal": {
3238
      "match": "(?<![$_[:alnum:]])(?:(?<=\\.\\.\\.)|(?<!\\.))null(?![$_[:alnum:]])(?:(?=\\.\\.\\.)|(?!\\.))",
3239
      "name": "constant.language.null.js"
3240
    },
3241
    "numeric-literal": {
3242
      "patterns": [
3243
        {
3244
          "captures": {
3245
            "1": {
3246
              "name": "storage.type.numeric.bigint.js"
3247
            }
3248
          },
3249
          "match": "\\b(?<!\\$)0[Xx]\\h[_\\h]*(n)?\\b(?!\\$)",
3250
          "name": "constant.numeric.hex.js"
3251
        },
3252
        {
3253
          "captures": {
3254
            "1": {
3255
              "name": "storage.type.numeric.bigint.js"
3256
            }
3257
          },
3258
          "match": "\\b(?<!\\$)0[Bb][01][01_]*(n)?\\b(?!\\$)",
3259
          "name": "constant.numeric.binary.js"
3260
        },
3261
        {
3262
          "captures": {
3263
            "1": {
3264
              "name": "storage.type.numeric.bigint.js"
3265
            }
3266
          },
3267
          "match": "\\b(?<!\\$)0[Oo]?[0-7][0-7_]*(n)?\\b(?!\\$)",
3268
          "name": "constant.numeric.octal.js"
3269
        },
3270
        {
3271
          "captures": {
3272
            "0": {
3273
              "name": "constant.numeric.decimal.js"
3274
            },
3275
            "1": {
3276
              "name": "meta.delimiter.decimal.period.js"
3277
            },
3278
            "10": {
3279
              "name": "meta.delimiter.decimal.period.js"
3280
            },
3281
            "11": {
3282
              "name": "storage.type.numeric.bigint.js"
3283
            },
3284
            "12": {
3285
              "name": "meta.delimiter.decimal.period.js"
3286
            },
3287
            "13": {
3288
              "name": "storage.type.numeric.bigint.js"
3289
            },
3290
            "14": {
3291
              "name": "storage.type.numeric.bigint.js"
3292
            },
3293
            "2": {
3294
              "name": "storage.type.numeric.bigint.js"
3295
            },
3296
            "3": {
3297
              "name": "meta.delimiter.decimal.period.js"
3298
            },
3299
            "4": {
3300
              "name": "storage.type.numeric.bigint.js"
3301
            },
3302
            "5": {
3303
              "name": "meta.delimiter.decimal.period.js"
3304
            },
3305
            "6": {
3306
              "name": "storage.type.numeric.bigint.js"
3307
            },
3308
            "7": {
3309
              "name": "storage.type.numeric.bigint.js"
3310
            },
3311
            "8": {
3312
              "name": "meta.delimiter.decimal.period.js"
3313
            },
3314
            "9": {
3315
              "name": "storage.type.numeric.bigint.js"
3316
            }
3317
          },
3318
          "match": "(?<!\\$)(?:\\b[0-9][0-9_]*(\\.)[0-9][0-9_]*[Ee][-+]?[0-9][0-9_]*(n)?\\b|\\b[0-9][0-9_]*(\\.)[Ee][-+]?[0-9][0-9_]*(n)?\\b|\\B(\\.)[0-9][0-9_]*[Ee][-+]?[0-9][0-9_]*(n)?\\b|\\b[0-9][0-9_]*[Ee][-+]?[0-9][0-9_]*(n)?\\b|\\b[0-9][0-9_]*(\\.)[0-9][0-9_]*(n)?\\b|\\b[0-9][0-9_]*(\\.)(n)?\\B|\\B(\\.)[0-9][0-9_]*(n)?\\b|\\b[0-9][0-9_]*(n)?\\b(?!\\.))(?!\\$)"
3319
        }
3320
      ]
3321
    },
3322
    "numericConstant-literal": {
3323
      "patterns": [
3324
        {
3325
          "match": "(?<![$_[:alnum:]])(?:(?<=\\.\\.\\.)|(?<!\\.))NaN(?![$_[:alnum:]])(?:(?=\\.\\.\\.)|(?!\\.))",
3326
          "name": "constant.language.nan.js"
3327
        },
3328
        {
3329
          "match": "(?<![$_[:alnum:]])(?:(?<=\\.\\.\\.)|(?<!\\.))Infinity(?![$_[:alnum:]])(?:(?=\\.\\.\\.)|(?!\\.))",
3330
          "name": "constant.language.infinity.js"
3331
        }
3332
      ]
3333
    },
3334
    "object-binding-element": {
3335
      "patterns": [
3336
        {
3337
          "include": "#comment"
3338
        },
3339
        {
3340
          "begin": "(?=(\\b((?<!\\$)0[Xx]\\h[_\\h]*(n)?\\b(?!\\$))|\\b((?<!\\$)0[Bb][01][01_]*(n)?\\b(?!\\$))|\\b((?<!\\$)0[Oo]?[0-7][0-7_]*(n)?\\b(?!\\$))|((?<!\\$)(?:\\b[0-9][0-9_]*(\\.)[0-9][0-9_]*[Ee][-+]?[0-9][0-9_]*(n)?\\b|\\b[0-9][0-9_]*(\\.)[Ee][-+]?[0-9][0-9_]*(n)?\\b|\\B(\\.)[0-9][0-9_]*[Ee][-+]?[0-9][0-9_]*(n)?\\b|\\b[0-9][0-9_]*[Ee][-+]?[0-9][0-9_]*(n)?\\b|\\b[0-9][0-9_]*(\\.)[0-9][0-9_]*(n)?\\b|\\b[0-9][0-9_]*(\\.)(n)?\\B|\\B(\\.)[0-9][0-9_]*(n)?\\b|\\b[0-9][0-9_]*(n)?\\b(?!\\.))(?!\\$))|([$_[:alpha:]][$_[:alnum:]]*)|('([^'\\\\]|\\\\.)*')|(\"([^\"\\\\]|\\\\.)*\")|(`([^\\\\`]|\\\\.)*`)|(\\[([^]\\[]|\\[[^]\\[]*])+]))\\s*(:))",
3341
          "end": "(?=[,}])",
3342
          "patterns": [
3343
            {
3344
              "include": "#object-binding-element-propertyName"
3345
            },
3346
            {
3347
              "include": "#binding-element"
3348
            }
3349
          ]
3350
        },
3351
        {
3352
          "include": "#object-binding-pattern"
3353
        },
3354
        {
3355
          "include": "#destructuring-variable-rest"
3356
        },
3357
        {
3358
          "include": "#variable-initializer"
3359
        },
3360
        {
3361
          "include": "#punctuation-comma"
3362
        }
3363
      ]
3364
    },
3365
    "object-binding-element-const": {
3366
      "patterns": [
3367
        {
3368
          "include": "#comment"
3369
        },
3370
        {
3371
          "begin": "(?=(\\b((?<!\\$)0[Xx]\\h[_\\h]*(n)?\\b(?!\\$))|\\b((?<!\\$)0[Bb][01][01_]*(n)?\\b(?!\\$))|\\b((?<!\\$)0[Oo]?[0-7][0-7_]*(n)?\\b(?!\\$))|((?<!\\$)(?:\\b[0-9][0-9_]*(\\.)[0-9][0-9_]*[Ee][-+]?[0-9][0-9_]*(n)?\\b|\\b[0-9][0-9_]*(\\.)[Ee][-+]?[0-9][0-9_]*(n)?\\b|\\B(\\.)[0-9][0-9_]*[Ee][-+]?[0-9][0-9_]*(n)?\\b|\\b[0-9][0-9_]*[Ee][-+]?[0-9][0-9_]*(n)?\\b|\\b[0-9][0-9_]*(\\.)[0-9][0-9_]*(n)?\\b|\\b[0-9][0-9_]*(\\.)(n)?\\B|\\B(\\.)[0-9][0-9_]*(n)?\\b|\\b[0-9][0-9_]*(n)?\\b(?!\\.))(?!\\$))|([$_[:alpha:]][$_[:alnum:]]*)|('([^'\\\\]|\\\\.)*')|(\"([^\"\\\\]|\\\\.)*\")|(`([^\\\\`]|\\\\.)*`)|(\\[([^]\\[]|\\[[^]\\[]*])+]))\\s*(:))",
3372
          "end": "(?=[,}])",
3373
          "patterns": [
3374
            {
3375
              "include": "#object-binding-element-propertyName"
3376
            },
3377
            {
3378
              "include": "#binding-element-const"
3379
            }
3380
          ]
3381
        },
3382
        {
3383
          "include": "#object-binding-pattern-const"
3384
        },
3385
        {
3386
          "include": "#destructuring-variable-rest-const"
3387
        },
3388
        {
3389
          "include": "#variable-initializer"
3390
        },
3391
        {
3392
          "include": "#punctuation-comma"
3393
        }
3394
      ]
3395
    },
3396
    "object-binding-element-propertyName": {
3397
      "begin": "(?=(\\b((?<!\\$)0[Xx]\\h[_\\h]*(n)?\\b(?!\\$))|\\b((?<!\\$)0[Bb][01][01_]*(n)?\\b(?!\\$))|\\b((?<!\\$)0[Oo]?[0-7][0-7_]*(n)?\\b(?!\\$))|((?<!\\$)(?:\\b[0-9][0-9_]*(\\.)[0-9][0-9_]*[Ee][-+]?[0-9][0-9_]*(n)?\\b|\\b[0-9][0-9_]*(\\.)[Ee][-+]?[0-9][0-9_]*(n)?\\b|\\B(\\.)[0-9][0-9_]*[Ee][-+]?[0-9][0-9_]*(n)?\\b|\\b[0-9][0-9_]*[Ee][-+]?[0-9][0-9_]*(n)?\\b|\\b[0-9][0-9_]*(\\.)[0-9][0-9_]*(n)?\\b|\\b[0-9][0-9_]*(\\.)(n)?\\B|\\B(\\.)[0-9][0-9_]*(n)?\\b|\\b[0-9][0-9_]*(n)?\\b(?!\\.))(?!\\$))|([$_[:alpha:]][$_[:alnum:]]*)|('([^'\\\\]|\\\\.)*')|(\"([^\"\\\\]|\\\\.)*\")|(`([^\\\\`]|\\\\.)*`)|(\\[([^]\\[]|\\[[^]\\[]*])+]))\\s*(:))",
3398
      "end": "(:)",
3399
      "endCaptures": {
3400
        "0": {
3401
          "name": "punctuation.destructuring.js"
3402
        }
3403
      },
3404
      "patterns": [
3405
        {
3406
          "include": "#string"
3407
        },
3408
        {
3409
          "include": "#array-literal"
3410
        },
3411
        {
3412
          "include": "#numeric-literal"
3413
        },
3414
        {
3415
          "match": "([$_[:alpha:]][$_[:alnum:]]*)",
3416
          "name": "variable.object.property.js"
3417
        }
3418
      ]
3419
    },
3420
    "object-binding-pattern": {
3421
      "begin": "(?:(\\.\\.\\.)\\s*)?(\\{)",
3422
      "beginCaptures": {
3423
        "1": {
3424
          "name": "keyword.operator.rest.js"
3425
        },
3426
        "2": {
3427
          "name": "punctuation.definition.binding-pattern.object.js"
3428
        }
3429
      },
3430
      "end": "}",
3431
      "endCaptures": {
3432
        "0": {
3433
          "name": "punctuation.definition.binding-pattern.object.js"
3434
        }
3435
      },
3436
      "patterns": [
3437
        {
3438
          "include": "#object-binding-element"
3439
        }
3440
      ]
3441
    },
3442
    "object-binding-pattern-const": {
3443
      "begin": "(?:(\\.\\.\\.)\\s*)?(\\{)",
3444
      "beginCaptures": {
3445
        "1": {
3446
          "name": "keyword.operator.rest.js"
3447
        },
3448
        "2": {
3449
          "name": "punctuation.definition.binding-pattern.object.js"
3450
        }
3451
      },
3452
      "end": "}",
3453
      "endCaptures": {
3454
        "0": {
3455
          "name": "punctuation.definition.binding-pattern.object.js"
3456
        }
3457
      },
3458
      "patterns": [
3459
        {
3460
          "include": "#object-binding-element-const"
3461
        }
3462
      ]
3463
    },
3464
    "object-identifiers": {
3465
      "patterns": [
3466
        {
3467
          "match": "([$_[:alpha:]][$_[:alnum:]]*)(?=\\s*\\??\\.\\s*prototype\\b(?!\\$))",
3468
          "name": "support.class.js"
3469
        },
3470
        {
3471
          "captures": {
3472
            "1": {
3473
              "name": "punctuation.accessor.js"
3474
            },
3475
            "2": {
3476
              "name": "punctuation.accessor.optional.js"
3477
            },
3478
            "3": {
3479
              "name": "variable.other.constant.object.property.js"
3480
            },
3481
            "4": {
3482
              "name": "variable.other.object.property.js"
3483
            }
3484
          },
3485
          "match": "(?:(\\.)|(\\?\\.(?!\\s*\\d)))\\s*(?:(#?\\p{upper}[$_\\d[:upper:]]*)|(#?[$_[:alpha:]][$_[:alnum:]]*))(?=\\s*\\??\\.\\s*#?[$_[:alpha:]][$_[:alnum:]]*)"
3486
        },
3487
        {
3488
          "captures": {
3489
            "1": {
3490
              "name": "variable.other.constant.object.js"
3491
            },
3492
            "2": {
3493
              "name": "variable.other.object.js"
3494
            }
3495
          },
3496
          "match": "(?:(\\p{upper}[$_\\d[:upper:]]*)|([$_[:alpha:]][$_[:alnum:]]*))(?=\\s*\\??\\.\\s*#?[$_[:alpha:]][$_[:alnum:]]*)"
3497
        }
3498
      ]
3499
    },
3500
    "object-literal": {
3501
      "begin": "\\{",
3502
      "beginCaptures": {
3503
        "0": {
3504
          "name": "punctuation.definition.block.js"
3505
        }
3506
      },
3507
      "end": "}",
3508
      "endCaptures": {
3509
        "0": {
3510
          "name": "punctuation.definition.block.js"
3511
        }
3512
      },
3513
      "name": "meta.objectliteral.js",
3514
      "patterns": [
3515
        {
3516
          "include": "#object-member"
3517
        }
3518
      ]
3519
    },
3520
    "object-literal-method-declaration": {
3521
      "begin": "(?<![$_[:alnum:]])(?:(?<=\\.\\.\\.)|(?<!\\.))(?:\\b(async)\\s+)?(?:\\b([gs]et)\\s+)?(?:(\\*)\\s*)?(?=\\s*((\\b((?<!\\$)0[Xx]\\h[_\\h]*(n)?\\b(?!\\$))|\\b((?<!\\$)0[Bb][01][01_]*(n)?\\b(?!\\$))|\\b((?<!\\$)0[Oo]?[0-7][0-7_]*(n)?\\b(?!\\$))|((?<!\\$)(?:\\b[0-9][0-9_]*(\\.)[0-9][0-9_]*[Ee][-+]?[0-9][0-9_]*(n)?\\b|\\b[0-9][0-9_]*(\\.)[Ee][-+]?[0-9][0-9_]*(n)?\\b|\\B(\\.)[0-9][0-9_]*[Ee][-+]?[0-9][0-9_]*(n)?\\b|\\b[0-9][0-9_]*[Ee][-+]?[0-9][0-9_]*(n)?\\b|\\b[0-9][0-9_]*(\\.)[0-9][0-9_]*(n)?\\b|\\b[0-9][0-9_]*(\\.)(n)?\\B|\\B(\\.)[0-9][0-9_]*(n)?\\b|\\b[0-9][0-9_]*(n)?\\b(?!\\.))(?!\\$))|([$_[:alpha:]][$_[:alnum:]]*)|('([^'\\\\]|\\\\.)*')|(\"([^\"\\\\]|\\\\.)*\")|(`([^\\\\`]|\\\\.)*`)|(\\[([^]\\[]|\\[[^]\\[]*])+]))\\s*(\\??))\\s*((<\\s*(((const\\s+)?[$_[:alpha:]])|(\\{([^{}]|(\\{([^{}]|\\{[^{}]*})*}))*})|(\\(([^()]|(\\(([^()]|\\([^()]*\\))*\\)))*\\))|(\\[([^]\\[]|(\\[([^]\\[]|\\[[^]\\[]*])*]))*]))([^<=>]|=[^<]|<\\s*(((const\\s+)?[$_[:alpha:]])|(\\{([^{}]|(\\{([^{}]|\\{[^{}]*})*}))*})|(\\(([^()]|(\\(([^()]|\\([^()]*\\))*\\)))*\\))|(\\[([^]\\[]|(\\[([^]\\[]|\\[[^]\\[]*])*]))*]))([^<=>]|=[^<]|<\\s*(((const\\s+)?[$_[:alpha:]])|(\\{([^{}]|(\\{([^{}]|\\{[^{}]*})*}))*})|(\\(([^()]|(\\(([^()]|\\([^()]*\\))*\\)))*\\))|(\\[([^]\\[]|(\\[([^]\\[]|\\[[^]\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\s*))?\\()",
3522
      "beginCaptures": {
3523
        "1": {
3524
          "name": "storage.modifier.async.js"
3525
        },
3526
        "2": {
3527
          "name": "storage.type.property.js"
3528
        },
3529
        "3": {
3530
          "name": "keyword.generator.asterisk.js"
3531
        }
3532
      },
3533
      "end": "(?=[,;}])|(?<=})",
3534
      "name": "meta.method.declaration.js",
3535
      "patterns": [
3536
        {
3537
          "include": "#method-declaration-name"
3538
        },
3539
        {
3540
          "include": "#function-body"
3541
        },
3542
        {
3543
          "begin": "(?<![$_[:alnum:]])(?:(?<=\\.\\.\\.)|(?<!\\.))(?:\\b(async)\\s+)?(?:\\b([gs]et)\\s+)?(?:(\\*)\\s*)?(?=\\s*((\\b((?<!\\$)0[Xx]\\h[_\\h]*(n)?\\b(?!\\$))|\\b((?<!\\$)0[Bb][01][01_]*(n)?\\b(?!\\$))|\\b((?<!\\$)0[Oo]?[0-7][0-7_]*(n)?\\b(?!\\$))|((?<!\\$)(?:\\b[0-9][0-9_]*(\\.)[0-9][0-9_]*[Ee][-+]?[0-9][0-9_]*(n)?\\b|\\b[0-9][0-9_]*(\\.)[Ee][-+]?[0-9][0-9_]*(n)?\\b|\\B(\\.)[0-9][0-9_]*[Ee][-+]?[0-9][0-9_]*(n)?\\b|\\b[0-9][0-9_]*[Ee][-+]?[0-9][0-9_]*(n)?\\b|\\b[0-9][0-9_]*(\\.)[0-9][0-9_]*(n)?\\b|\\b[0-9][0-9_]*(\\.)(n)?\\B|\\B(\\.)[0-9][0-9_]*(n)?\\b|\\b[0-9][0-9_]*(n)?\\b(?!\\.))(?!\\$))|([$_[:alpha:]][$_[:alnum:]]*)|('([^'\\\\]|\\\\.)*')|(\"([^\"\\\\]|\\\\.)*\")|(`([^\\\\`]|\\\\.)*`)|(\\[([^]\\[]|\\[[^]\\[]*])+]))\\s*(\\??))\\s*((<\\s*(((const\\s+)?[$_[:alpha:]])|(\\{([^{}]|(\\{([^{}]|\\{[^{}]*})*}))*})|(\\(([^()]|(\\(([^()]|\\([^()]*\\))*\\)))*\\))|(\\[([^]\\[]|(\\[([^]\\[]|\\[[^]\\[]*])*]))*]))([^<=>]|=[^<]|<\\s*(((const\\s+)?[$_[:alpha:]])|(\\{([^{}]|(\\{([^{}]|\\{[^{}]*})*}))*})|(\\(([^()]|(\\(([^()]|\\([^()]*\\))*\\)))*\\))|(\\[([^]\\[]|(\\[([^]\\[]|\\[[^]\\[]*])*]))*]))([^<=>]|=[^<]|<\\s*(((const\\s+)?[$_[:alpha:]])|(\\{([^{}]|(\\{([^{}]|\\{[^{}]*})*}))*})|(\\(([^()]|(\\(([^()]|\\([^()]*\\))*\\)))*\\))|(\\[([^]\\[]|(\\[([^]\\[]|\\[[^]\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\s*))?\\()",
3544
          "beginCaptures": {
3545
            "1": {
3546
              "name": "storage.modifier.async.js"
3547
            },
3548
            "2": {
3549
              "name": "storage.type.property.js"
3550
            },
3551
            "3": {
3552
              "name": "keyword.generator.asterisk.js"
3553
            }
3554
          },
3555
          "end": "(?=[(<])",
3556
          "patterns": [
3557
            {
3558
              "include": "#method-declaration-name"
3559
            }
3560
          ]
3561
        }
3562
      ]
3563
    },
3564
    "object-member": {
3565
      "patterns": [
3566
        {
3567
          "include": "#comment"
3568
        },
3569
        {
3570
          "include": "#object-literal-method-declaration"
3571
        },
3572
        {
3573
          "begin": "(?=\\[)",
3574
          "end": "(?=:)|((?<=])(?=\\s*[(<]))",
3575
          "name": "meta.object.member.js meta.object-literal.key.js",
3576
          "patterns": [
3577
            {
3578
              "include": "#comment"
3579
            },
3580
            {
3581
              "include": "#array-literal"
3582
            }
3583
          ]
3584
        },
3585
        {
3586
          "begin": "(?=[\"'`])",
3587
          "end": "(?=:)|((?<=[\"'`])(?=((\\s*[(,<}])|(\\s+(as|satisifies)\\s+))))",
3588
          "name": "meta.object.member.js meta.object-literal.key.js",
3589
          "patterns": [
3590
            {
3591
              "include": "#comment"
3592
            },
3593
            {
3594
              "include": "#string"
3595
            }
3596
          ]
3597
        },
3598
        {
3599
          "begin": "(?=\\b((?<!\\$)0[Xx]\\h[_\\h]*(n)?\\b(?!\\$))|\\b((?<!\\$)0[Bb][01][01_]*(n)?\\b(?!\\$))|\\b((?<!\\$)0[Oo]?[0-7][0-7_]*(n)?\\b(?!\\$))|((?<!\\$)(?:\\b[0-9][0-9_]*(\\.)[0-9][0-9_]*[Ee][-+]?[0-9][0-9_]*(n)?\\b|\\b[0-9][0-9_]*(\\.)[Ee][-+]?[0-9][0-9_]*(n)?\\b|\\B(\\.)[0-9][0-9_]*[Ee][-+]?[0-9][0-9_]*(n)?\\b|\\b[0-9][0-9_]*[Ee][-+]?[0-9][0-9_]*(n)?\\b|\\b[0-9][0-9_]*(\\.)[0-9][0-9_]*(n)?\\b|\\b[0-9][0-9_]*(\\.)(n)?\\B|\\B(\\.)[0-9][0-9_]*(n)?\\b|\\b[0-9][0-9_]*(n)?\\b(?!\\.))(?!\\$)))",
3600
          "end": "(?=:)|(?=\\s*([(,<}])|(\\s+as|satisifies\\s+))",
3601
          "name": "meta.object.member.js meta.object-literal.key.js",
3602
          "patterns": [
3603
            {
3604
              "include": "#comment"
3605
            },
3606
            {
3607
              "include": "#numeric-literal"
3608
            }
3609
          ]
3610
        },
3611
        {
3612
          "begin": "(?<=[]\"'`])(?=\\s*[(<])",
3613
          "end": "(?=[,;}])|(?<=})",
3614
          "name": "meta.method.declaration.js",
3615
          "patterns": [
3616
            {
3617
              "include": "#function-body"
3618
            }
3619
          ]
3620
        },
3621
        {
3622
          "captures": {
3623
            "0": {
3624
              "name": "meta.object-literal.key.js"
3625
            },
3626
            "1": {
3627
              "name": "constant.numeric.decimal.js"
3628
            }
3629
          },
3630
          "match": "(?![$_[:alpha:]])(\\d+)\\s*(?=(/\\*([^*]|(\\*[^/]))*\\*/\\s*)*:)",
3631
          "name": "meta.object.member.js"
3632
        },
3633
        {
3634
          "captures": {
3635
            "0": {
3636
              "name": "meta.object-literal.key.js"
3637
            },
3638
            "1": {
3639
              "name": "entity.name.function.js"
3640
            }
3641
          },
3642
          "match": "([$_[:alpha:]][$_[:alnum:]]*)\\s*(?=(/\\*([^*]|(\\*[^/]))*\\*/\\s*)*:(\\s*/\\*([^*]|(\\*[^/]))*\\*/)*\\s*(((async\\s+)?((function\\s*[(*<])|(function\\s+)|([$_[:alpha:]][$_[:alnum:]]*\\s*=>)))|((async\\s*)?(((<\\s*)$|(\\(\\s*((([\\[{]\\s*)?)$|((\\{([^{}]|(\\{([^{}]|\\{[^{}]*})*}))*})\\s*((:\\s*\\{?)$|((\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\([^()]+\\)|\\{[^{}]+})+\\s*)?=\\s*)))|((\\[([^]\\[]|(\\[([^]\\[]|\\[[^]\\[]*])*]))*])\\s*((:\\s*\\[?)$|((\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\([^()]+\\)|\\{[^{}]+})+\\s*)?=\\s*))))))|((<\\s*(((const\\s+)?[$_[:alpha:]])|(\\{([^{}]|(\\{([^{}]|\\{[^{}]*})*}))*})|(\\(([^()]|(\\(([^()]|\\([^()]*\\))*\\)))*\\))|(\\[([^]\\[]|(\\[([^]\\[]|\\[[^]\\[]*])*]))*]))([^<=>]|=[^<]|<\\s*(((const\\s+)?[$_[:alpha:]])|(\\{([^{}]|(\\{([^{}]|\\{[^{}]*})*}))*})|(\\(([^()]|(\\(([^()]|\\([^()]*\\))*\\)))*\\))|(\\[([^]\\[]|(\\[([^]\\[]|\\[[^]\\[]*])*]))*]))([^<=>]|=[^<]|<\\s*(((const\\s+)?[$_[:alpha:]])|(\\{([^{}]|(\\{([^{}]|\\{[^{}]*})*}))*})|(\\(([^()]|(\\(([^()]|\\([^()]*\\))*\\)))*\\))|(\\[([^]\\[]|(\\[([^]\\[]|\\[[^]\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\s*)?\\(\\s*(/\\*([^*]|(\\*[^/]))*\\*/\\s*)*((\\)\\s*:)|((\\.\\.\\.\\s*)?[$_[:alpha:]][$_[:alnum:]]*\\s*:)))|(<\\s*[$_[:alpha:]][$_[:alnum:]]*\\s+extends\\s*[^=>])|((<\\s*(((const\\s+)?[$_[:alpha:]])|(\\{([^{}]|(\\{([^{}]|\\{[^{}]*})*}))*})|(\\(([^()]|(\\(([^()]|\\([^()]*\\))*\\)))*\\))|(\\[([^]\\[]|(\\[([^]\\[]|\\[[^]\\[]*])*]))*]))([^<=>]|=[^<]|<\\s*(((const\\s+)?[$_[:alpha:]])|(\\{([^{}]|(\\{([^{}]|\\{[^{}]*})*}))*})|(\\(([^()]|(\\(([^()]|\\([^()]*\\))*\\)))*\\))|(\\[([^]\\[]|(\\[([^]\\[]|\\[[^]\\[]*])*]))*]))([^<=>]|=[^<]|<\\s*(((const\\s+)?[$_[:alpha:]])|(\\{([^{}]|(\\{([^{}]|\\{[^{}]*})*}))*})|(\\(([^()]|(\\(([^()]|\\([^()]*\\))*\\)))*\\))|(\\[([^]\\[]|(\\[([^]\\[]|\\[[^]\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\s*)?\\(\\s*(/\\*([^*]|(\\*[^/]))*\\*/\\s*)*(([$_[:alpha:]]|(\\{([^{}]|(\\{([^{}]|\\{[^{}]*})*}))*})|(\\[([^]\\[]|(\\[([^]\\[]|\\[[^]\\[]*])*]))*])|(\\.\\.\\.\\s*[$_[:alpha:]]))([^\"'()`]|(\\(([^()]|(\\(([^()]|\\([^()]*\\))*\\)))*\\))|('([^'\\\\]|\\\\.)*')|(\"([^\"\\\\]|\\\\.)*\")|(`([^\\\\`]|\\\\.)*`))*)?\\)(\\s*:\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\([^()]+\\)|\\{[^{}]+})+)?\\s*=>)))))",
3643
          "name": "meta.object.member.js"
3644
        },
3645
        {
3646
          "captures": {
3647
            "0": {
3648
              "name": "meta.object-literal.key.js"
3649
            }
3650
          },
3651
          "match": "[$_[:alpha:]][$_[:alnum:]]*\\s*(?=(/\\*([^*]|(\\*[^/]))*\\*/\\s*)*:)",
3652
          "name": "meta.object.member.js"
3653
        },
3654
        {
3655
          "begin": "\\.\\.\\.",
3656
          "beginCaptures": {
3657
            "0": {
3658
              "name": "keyword.operator.spread.js"
3659
            }
3660
          },
3661
          "end": "(?=[,}])",
3662
          "name": "meta.object.member.js",
3663
          "patterns": [
3664
            {
3665
              "include": "#expression"
3666
            }
3667
          ]
3668
        },
3669
        {
3670
          "captures": {
3671
            "1": {
3672
              "name": "variable.other.readwrite.js"
3673
            }
3674
          },
3675
          "match": "([$_[:alpha:]][$_[:alnum:]]*)\\s*(?=[,}]|$|//|/\\*)",
3676
          "name": "meta.object.member.js"
3677
        },
3678
        {
3679
          "captures": {
3680
            "1": {
3681
              "name": "keyword.control.as.js"
3682
            },
3683
            "2": {
3684
              "name": "storage.modifier.js"
3685
            }
3686
          },
3687
          "match": "(?<![$_[:alnum:]])(?:(?<=\\.\\.\\.)|(?<!\\.))(as)\\s+(const)(?=\\s*([,}]|$))",
3688
          "name": "meta.object.member.js"
3689
        },
3690
        {
3691
          "begin": "(?<![$_[:alnum:]])(?:(?<=\\.\\.\\.)|(?<!\\.))(?:(as)|(satisfies))\\s+",
3692
          "beginCaptures": {
3693
            "1": {
3694
              "name": "keyword.control.as.js"
3695
            },
3696
            "2": {
3697
              "name": "keyword.control.satisfies.js"
3698
            }
3699
          },
3700
          "end": "(?=[-\\])+,:;>?}]|\\|\\||&&|!==|$|^|((?<![$_[:alnum:]])(?:(?<=\\.\\.\\.)|(?<!\\.))(as|satisifies)\\s+))",
3701
          "name": "meta.object.member.js",
3702
          "patterns": [
3703
            {
3704
              "include": "#type"
3705
            }
3706
          ]
3707
        },
3708
        {
3709
          "begin": "(?=[$_[:alpha:]][$_[:alnum:]]*\\s*=)",
3710
          "end": "(?=[,}]|$|//|/\\*)",
3711
          "name": "meta.object.member.js",
3712
          "patterns": [
3713
            {
3714
              "include": "#expression"
3715
            }
3716
          ]
3717
        },
3718
        {
3719
          "begin": ":",
3720
          "beginCaptures": {
3721
            "0": {
3722
              "name": "meta.object-literal.key.js punctuation.separator.key-value.js"
3723
            }
3724
          },
3725
          "end": "(?=[,}])",
3726
          "name": "meta.object.member.js",
3727
          "patterns": [
3728
            {
3729
              "begin": "(?<=:)\\s*(async)?(?=\\s*(<\\s*(((const\\s+)?[$_[:alpha:]])|(\\{([^{}]|(\\{([^{}]|\\{[^{}]*})*}))*})|(\\(([^()]|(\\(([^()]|\\([^()]*\\))*\\)))*\\))|(\\[([^]\\[]|(\\[([^]\\[]|\\[[^]\\[]*])*]))*]))([^<=>]|=[^<]|<\\s*(((const\\s+)?[$_[:alpha:]])|(\\{([^{}]|(\\{([^{}]|\\{[^{}]*})*}))*})|(\\(([^()]|(\\(([^()]|\\([^()]*\\))*\\)))*\\))|(\\[([^]\\[]|(\\[([^]\\[]|\\[[^]\\[]*])*]))*]))([^<=>]|=[^<]|<\\s*(((const\\s+)?[$_[:alpha:]])|(\\{([^{}]|(\\{([^{}]|\\{[^{}]*})*}))*})|(\\(([^()]|(\\(([^()]|\\([^()]*\\))*\\)))*\\))|(\\[([^]\\[]|(\\[([^]\\[]|\\[[^]\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\s*)\\(\\s*((([\\[{]\\s*)?)$|((\\{([^{}]|(\\{([^{}]|\\{[^{}]*})*}))*})\\s*((:\\s*\\{?)$|((\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\([^()]+\\)|\\{[^{}]+})+\\s*)?=\\s*)))|((\\[([^]\\[]|(\\[([^]\\[]|\\[[^]\\[]*])*]))*])\\s*((:\\s*\\[?)$|((\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\([^()]+\\)|\\{[^{}]+})+\\s*)?=\\s*)))))",
3730
              "beginCaptures": {
3731
                "1": {
3732
                  "name": "storage.modifier.async.js"
3733
                }
3734
              },
3735
              "end": "(?<=\\))",
3736
              "patterns": [
3737
                {
3738
                  "include": "#type-parameters"
3739
                },
3740
                {
3741
                  "begin": "\\(",
3742
                  "beginCaptures": {
3743
                    "0": {
3744
                      "name": "meta.brace.round.js"
3745
                    }
3746
                  },
3747
                  "end": "\\)",
3748
                  "endCaptures": {
3749
                    "0": {
3750
                      "name": "meta.brace.round.js"
3751
                    }
3752
                  },
3753
                  "patterns": [
3754
                    {
3755
                      "include": "#expression-inside-possibly-arrow-parens"
3756
                    }
3757
                  ]
3758
                }
3759
              ]
3760
            },
3761
            {
3762
              "begin": "(?<=:)\\s*(async)?\\s*(\\()(?=\\s*((([\\[{]\\s*)?)$|((\\{([^{}]|(\\{([^{}]|\\{[^{}]*})*}))*})\\s*((:\\s*\\{?)$|((\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\([^()]+\\)|\\{[^{}]+})+\\s*)?=\\s*)))|((\\[([^]\\[]|(\\[([^]\\[]|\\[[^]\\[]*])*]))*])\\s*((:\\s*\\[?)$|((\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\([^()]+\\)|\\{[^{}]+})+\\s*)?=\\s*)))))",
3763
              "beginCaptures": {
3764
                "1": {
3765
                  "name": "storage.modifier.async.js"
3766
                },
3767
                "2": {
3768
                  "name": "meta.brace.round.js"
3769
                }
3770
              },
3771
              "end": "\\)",
3772
              "endCaptures": {
3773
                "0": {
3774
                  "name": "meta.brace.round.js"
3775
                }
3776
              },
3777
              "patterns": [
3778
                {
3779
                  "include": "#expression-inside-possibly-arrow-parens"
3780
                }
3781
              ]
3782
            },
3783
            {
3784
              "begin": "(?<=:)\\s*(async)?\\s*(?=<\\s*$)",
3785
              "beginCaptures": {
3786
                "1": {
3787
                  "name": "storage.modifier.async.js"
3788
                }
3789
              },
3790
              "end": "(?<=>)",
3791
              "patterns": [
3792
                {
3793
                  "include": "#type-parameters"
3794
                }
3795
              ]
3796
            },
3797
            {
3798
              "begin": "(?<=>)\\s*(\\()(?=\\s*((([\\[{]\\s*)?)$|((\\{([^{}]|(\\{([^{}]|\\{[^{}]*})*}))*})\\s*((:\\s*\\{?)$|((\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\([^()]+\\)|\\{[^{}]+})+\\s*)?=\\s*)))|((\\[([^]\\[]|(\\[([^]\\[]|\\[[^]\\[]*])*]))*])\\s*((:\\s*\\[?)$|((\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\([^()]+\\)|\\{[^{}]+})+\\s*)?=\\s*)))))",
3799
              "beginCaptures": {
3800
                "1": {
3801
                  "name": "meta.brace.round.js"
3802
                }
3803
              },
3804
              "end": "\\)",
3805
              "endCaptures": {
3806
                "0": {
3807
                  "name": "meta.brace.round.js"
3808
                }
3809
              },
3810
              "patterns": [
3811
                {
3812
                  "include": "#expression-inside-possibly-arrow-parens"
3813
                }
3814
              ]
3815
            },
3816
            {
3817
              "include": "#possibly-arrow-return-type"
3818
            },
3819
            {
3820
              "include": "#expression"
3821
            }
3822
          ]
3823
        },
3824
        {
3825
          "include": "#punctuation-comma"
3826
        },
3827
        {
3828
          "include": "#decl-block"
3829
        }
3830
      ]
3831
    },
3832
    "parameter-array-binding-pattern": {
3833
      "begin": "(?:(\\.\\.\\.)\\s*)?(\\[)",
3834
      "beginCaptures": {
3835
        "1": {
3836
          "name": "keyword.operator.rest.js"
3837
        },
3838
        "2": {
3839
          "name": "punctuation.definition.binding-pattern.array.js"
3840
        }
3841
      },
3842
      "end": "]",
3843
      "endCaptures": {
3844
        "0": {
3845
          "name": "punctuation.definition.binding-pattern.array.js"
3846
        }
3847
      },
3848
      "patterns": [
3849
        {
3850
          "include": "#parameter-binding-element"
3851
        },
3852
        {
3853
          "include": "#punctuation-comma"
3854
        }
3855
      ]
3856
    },
3857
    "parameter-binding-element": {
3858
      "patterns": [
3859
        {
3860
          "include": "#comment"
3861
        },
3862
        {
3863
          "include": "#string"
3864
        },
3865
        {
3866
          "include": "#numeric-literal"
3867
        },
3868
        {
3869
          "include": "#regex"
3870
        },
3871
        {
3872
          "include": "#parameter-object-binding-pattern"
3873
        },
3874
        {
3875
          "include": "#parameter-array-binding-pattern"
3876
        },
3877
        {
3878
          "include": "#destructuring-parameter-rest"
3879
        },
3880
        {
3881
          "include": "#variable-initializer"
3882
        }
3883
      ]
3884
    },
3885
    "parameter-name": {
3886
      "patterns": [
3887
        {
3888
          "captures": {
3889
            "1": {
3890
              "name": "storage.modifier.js"
3891
            }
3892
          },
3893
          "match": "(?<![$_[:alnum:]])(?:(?<=\\.\\.\\.)|(?<!\\.))(override|public|protected|private|readonly)\\s+(?=(override|public|protected|private|readonly)\\s+)"
3894
        },
3895
        {
3896
          "captures": {
3897
            "1": {
3898
              "name": "storage.modifier.js"
3899
            },
3900
            "2": {
3901
              "name": "keyword.operator.rest.js"
3902
            },
3903
            "3": {
3904
              "name": "entity.name.function.js variable.language.this.js"
3905
            },
3906
            "4": {
3907
              "name": "entity.name.function.js"
3908
            },
3909
            "5": {
3910
              "name": "keyword.operator.optional.js"
3911
            }
3912
          },
3913
          "match": "(?:(?<![$_[:alnum:]])(?:(?<=\\.\\.\\.)|(?<!\\.))(override|public|private|protected|readonly)\\s+)?(?:(\\.\\.\\.)\\s*)?(?<![:=])(?<![$_[:alnum:]])(?:(?<=\\.\\.\\.)|(?<!\\.))(?:(this)|([$_[:alpha:]][$_[:alnum:]]*))(?![$_[:alnum:]])(?:(?=\\.\\.\\.)|(?!\\.))\\s*(\\??)(?=\\s*(=\\s*(((async\\s+)?((function\\s*[(*<])|(function\\s+)|([$_[:alpha:]][$_[:alnum:]]*\\s*=>)))|((async\\s*)?(((<\\s*)$|(\\(\\s*((([\\[{]\\s*)?)$|((\\{([^{}]|(\\{([^{}]|\\{[^{}]*})*}))*})\\s*((:\\s*\\{?)$|((\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\([^()]+\\)|\\{[^{}]+})+\\s*)?=\\s*)))|((\\[([^]\\[]|(\\[([^]\\[]|\\[[^]\\[]*])*]))*])\\s*((:\\s*\\[?)$|((\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\([^()]+\\)|\\{[^{}]+})+\\s*)?=\\s*))))))|((<\\s*(((const\\s+)?[$_[:alpha:]])|(\\{([^{}]|(\\{([^{}]|\\{[^{}]*})*}))*})|(\\(([^()]|(\\(([^()]|\\([^()]*\\))*\\)))*\\))|(\\[([^]\\[]|(\\[([^]\\[]|\\[[^]\\[]*])*]))*]))([^<=>]|=[^<]|<\\s*(((const\\s+)?[$_[:alpha:]])|(\\{([^{}]|(\\{([^{}]|\\{[^{}]*})*}))*})|(\\(([^()]|(\\(([^()]|\\([^()]*\\))*\\)))*\\))|(\\[([^]\\[]|(\\[([^]\\[]|\\[[^]\\[]*])*]))*]))([^<=>]|=[^<]|<\\s*(((const\\s+)?[$_[:alpha:]])|(\\{([^{}]|(\\{([^{}]|\\{[^{}]*})*}))*})|(\\(([^()]|(\\(([^()]|\\([^()]*\\))*\\)))*\\))|(\\[([^]\\[]|(\\[([^]\\[]|\\[[^]\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\s*)?\\(\\s*(/\\*([^*]|(\\*[^/]))*\\*/\\s*)*((\\)\\s*:)|((\\.\\.\\.\\s*)?[$_[:alpha:]][$_[:alnum:]]*\\s*:)))|(<\\s*[$_[:alpha:]][$_[:alnum:]]*\\s+extends\\s*[^=>])|((<\\s*(((const\\s+)?[$_[:alpha:]])|(\\{([^{}]|(\\{([^{}]|\\{[^{}]*})*}))*})|(\\(([^()]|(\\(([^()]|\\([^()]*\\))*\\)))*\\))|(\\[([^]\\[]|(\\[([^]\\[]|\\[[^]\\[]*])*]))*]))([^<=>]|=[^<]|<\\s*(((const\\s+)?[$_[:alpha:]])|(\\{([^{}]|(\\{([^{}]|\\{[^{}]*})*}))*})|(\\(([^()]|(\\(([^()]|\\([^()]*\\))*\\)))*\\))|(\\[([^]\\[]|(\\[([^]\\[]|\\[[^]\\[]*])*]))*]))([^<=>]|=[^<]|<\\s*(((const\\s+)?[$_[:alpha:]])|(\\{([^{}]|(\\{([^{}]|\\{[^{}]*})*}))*})|(\\(([^()]|(\\(([^()]|\\([^()]*\\))*\\)))*\\))|(\\[([^]\\[]|(\\[([^]\\[]|\\[[^]\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\s*)?\\(\\s*(/\\*([^*]|(\\*[^/]))*\\*/\\s*)*(([$_[:alpha:]]|(\\{([^{}]|(\\{([^{}]|\\{[^{}]*})*}))*})|(\\[([^]\\[]|(\\[([^]\\[]|\\[[^]\\[]*])*]))*])|(\\.\\.\\.\\s*[$_[:alpha:]]))([^\"'()`]|(\\(([^()]|(\\(([^()]|\\([^()]*\\))*\\)))*\\))|('([^'\\\\]|\\\\.)*')|(\"([^\"\\\\]|\\\\.)*\")|(`([^\\\\`]|\\\\.)*`))*)?\\)(\\s*:\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\([^()]+\\)|\\{[^{}]+})+)?\\s*=>)))))|(:\\s*((<)|(\\(\\s*((\\))|(\\.\\.\\.)|([$_[:alnum:]]+\\s*(([,:=?])|(\\)\\s*=>)))))))|(:\\s*(?<![$_[:alnum:]])(?:(?<=\\.\\.\\.)|(?<!\\.))Function(?![$_[:alnum:]])(?:(?=\\.\\.\\.)|(?!\\.)))|(:\\s*((<\\s*)$|(\\(\\s*((([\\[{]\\s*)?)$|((\\{([^{}]|(\\{([^{}]|\\{[^{}]*})*}))*})\\s*((:\\s*\\{?)$|((\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\([^()]+\\)|\\{[^{}]+})+\\s*)?=\\s*)))|((\\[([^]\\[]|(\\[([^]\\[]|\\[[^]\\[]*])*]))*])\\s*((:\\s*\\[?)$|((\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\([^()]+\\)|\\{[^{}]+})+\\s*)?=\\s*)))))))|(:\\s*(=>|(\\(([^()]|(\\(([^()]|\\([^()]*\\))*\\)))*\\))|(<[^<>]*>)|[^(),<=>])+=\\s*(((async\\s+)?((function\\s*[(*<])|(function\\s+)|([$_[:alpha:]][$_[:alnum:]]*\\s*=>)))|((async\\s*)?(((<\\s*)$|(\\(\\s*((([\\[{]\\s*)?)$|((\\{([^{}]|(\\{([^{}]|\\{[^{}]*})*}))*})\\s*((:\\s*\\{?)$|((\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\([^()]+\\)|\\{[^{}]+})+\\s*)?=\\s*)))|((\\[([^]\\[]|(\\[([^]\\[]|\\[[^]\\[]*])*]))*])\\s*((:\\s*\\[?)$|((\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\([^()]+\\)|\\{[^{}]+})+\\s*)?=\\s*))))))|((<\\s*(((const\\s+)?[$_[:alpha:]])|(\\{([^{}]|(\\{([^{}]|\\{[^{}]*})*}))*})|(\\(([^()]|(\\(([^()]|\\([^()]*\\))*\\)))*\\))|(\\[([^]\\[]|(\\[([^]\\[]|\\[[^]\\[]*])*]))*]))([^<=>]|=[^<]|<\\s*(((const\\s+)?[$_[:alpha:]])|(\\{([^{}]|(\\{([^{}]|\\{[^{}]*})*}))*})|(\\(([^()]|(\\(([^()]|\\([^()]*\\))*\\)))*\\))|(\\[([^]\\[]|(\\[([^]\\[]|\\[[^]\\[]*])*]))*]))([^<=>]|=[^<]|<\\s*(((const\\s+)?[$_[:alpha:]])|(\\{([^{}]|(\\{([^{}]|\\{[^{}]*})*}))*})|(\\(([^()]|(\\(([^()]|\\([^()]*\\))*\\)))*\\))|(\\[([^]\\[]|(\\[([^]\\[]|\\[[^]\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\s*)?\\(\\s*(/\\*([^*]|(\\*[^/]))*\\*/\\s*)*((\\)\\s*:)|((\\.\\.\\.\\s*)?[$_[:alpha:]][$_[:alnum:]]*\\s*:)))|(<\\s*[$_[:alpha:]][$_[:alnum:]]*\\s+extends\\s*[^=>])|((<\\s*(((const\\s+)?[$_[:alpha:]])|(\\{([^{}]|(\\{([^{}]|\\{[^{}]*})*}))*})|(\\(([^()]|(\\(([^()]|\\([^()]*\\))*\\)))*\\))|(\\[([^]\\[]|(\\[([^]\\[]|\\[[^]\\[]*])*]))*]))([^<=>]|=[^<]|<\\s*(((const\\s+)?[$_[:alpha:]])|(\\{([^{}]|(\\{([^{}]|\\{[^{}]*})*}))*})|(\\(([^()]|(\\(([^()]|\\([^()]*\\))*\\)))*\\))|(\\[([^]\\[]|(\\[([^]\\[]|\\[[^]\\[]*])*]))*]))([^<=>]|=[^<]|<\\s*(((const\\s+)?[$_[:alpha:]])|(\\{([^{}]|(\\{([^{}]|\\{[^{}]*})*}))*})|(\\(([^()]|(\\(([^()]|\\([^()]*\\))*\\)))*\\))|(\\[([^]\\[]|(\\[([^]\\[]|\\[[^]\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\s*)?\\(\\s*(/\\*([^*]|(\\*[^/]))*\\*/\\s*)*(([$_[:alpha:]]|(\\{([^{}]|(\\{([^{}]|\\{[^{}]*})*}))*})|(\\[([^]\\[]|(\\[([^]\\[]|\\[[^]\\[]*])*]))*])|(\\.\\.\\.\\s*[$_[:alpha:]]))([^\"'()`]|(\\(([^()]|(\\(([^()]|\\([^()]*\\))*\\)))*\\))|('([^'\\\\]|\\\\.)*')|(\"([^\"\\\\]|\\\\.)*\")|(`([^\\\\`]|\\\\.)*`))*)?\\)(\\s*:\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\([^()]+\\)|\\{[^{}]+})+)?\\s*=>))))))"
3914
        },
3915
        {
3916
          "captures": {
3917
            "1": {
3918
              "name": "storage.modifier.js"
3919
            },
3920
            "2": {
3921
              "name": "keyword.operator.rest.js"
3922
            },
3923
            "3": {
3924
              "name": "variable.parameter.js variable.language.this.js"
3925
            },
3926
            "4": {
3927
              "name": "variable.parameter.js"
3928
            },
3929
            "5": {
3930
              "name": "keyword.operator.optional.js"
3931
            }
3932
          },
3933
          "match": "(?:(?<![$_[:alnum:]])(?:(?<=\\.\\.\\.)|(?<!\\.))(override|public|private|protected|readonly)\\s+)?(?:(\\.\\.\\.)\\s*)?(?<![:=])(?<![$_[:alnum:]])(?:(?<=\\.\\.\\.)|(?<!\\.))(?:(this)|([$_[:alpha:]][$_[:alnum:]]*))(?![$_[:alnum:]])(?:(?=\\.\\.\\.)|(?!\\.))\\s*(\\??)"
3934
        }
3935
      ]
3936
    },
3937
    "parameter-object-binding-element": {
3938
      "patterns": [
3939
        {
3940
          "include": "#comment"
3941
        },
3942
        {
3943
          "begin": "(?=(\\b((?<!\\$)0[Xx]\\h[_\\h]*(n)?\\b(?!\\$))|\\b((?<!\\$)0[Bb][01][01_]*(n)?\\b(?!\\$))|\\b((?<!\\$)0[Oo]?[0-7][0-7_]*(n)?\\b(?!\\$))|((?<!\\$)(?:\\b[0-9][0-9_]*(\\.)[0-9][0-9_]*[Ee][-+]?[0-9][0-9_]*(n)?\\b|\\b[0-9][0-9_]*(\\.)[Ee][-+]?[0-9][0-9_]*(n)?\\b|\\B(\\.)[0-9][0-9_]*[Ee][-+]?[0-9][0-9_]*(n)?\\b|\\b[0-9][0-9_]*[Ee][-+]?[0-9][0-9_]*(n)?\\b|\\b[0-9][0-9_]*(\\.)[0-9][0-9_]*(n)?\\b|\\b[0-9][0-9_]*(\\.)(n)?\\B|\\B(\\.)[0-9][0-9_]*(n)?\\b|\\b[0-9][0-9_]*(n)?\\b(?!\\.))(?!\\$))|([$_[:alpha:]][$_[:alnum:]]*)|('([^'\\\\]|\\\\.)*')|(\"([^\"\\\\]|\\\\.)*\")|(`([^\\\\`]|\\\\.)*`)|(\\[([^]\\[]|\\[[^]\\[]*])+]))\\s*(:))",
3944
          "end": "(?=[,}])",
3945
          "patterns": [
3946
            {
3947
              "include": "#object-binding-element-propertyName"
3948
            },
3949
            {
3950
              "include": "#parameter-binding-element"
3951
            },
3952
            {
3953
              "include": "#paren-expression"
3954
            }
3955
          ]
3956
        },
3957
        {
3958
          "include": "#parameter-object-binding-pattern"
3959
        },
3960
        {
3961
          "include": "#destructuring-parameter-rest"
3962
        },
3963
        {
3964
          "include": "#variable-initializer"
3965
        },
3966
        {
3967
          "include": "#punctuation-comma"
3968
        }
3969
      ]
3970
    },
3971
    "parameter-object-binding-pattern": {
3972
      "begin": "(?:(\\.\\.\\.)\\s*)?(\\{)",
3973
      "beginCaptures": {
3974
        "1": {
3975
          "name": "keyword.operator.rest.js"
3976
        },
3977
        "2": {
3978
          "name": "punctuation.definition.binding-pattern.object.js"
3979
        }
3980
      },
3981
      "end": "}",
3982
      "endCaptures": {
3983
        "0": {
3984
          "name": "punctuation.definition.binding-pattern.object.js"
3985
        }
3986
      },
3987
      "patterns": [
3988
        {
3989
          "include": "#parameter-object-binding-element"
3990
        }
3991
      ]
3992
    },
3993
    "parameter-type-annotation": {
3994
      "patterns": [
3995
        {
3996
          "begin": "(:)",
3997
          "beginCaptures": {
3998
            "1": {
3999
              "name": "keyword.operator.type.annotation.js"
4000
            }
4001
          },
4002
          "end": "(?=[),])|(?==[^>])",
4003
          "name": "meta.type.annotation.js",
4004
          "patterns": [
4005
            {
4006
              "include": "#type"
4007
            }
4008
          ]
4009
        }
4010
      ]
4011
    },
4012
    "paren-expression": {
4013
      "begin": "\\(",
4014
      "beginCaptures": {
4015
        "0": {
4016
          "name": "meta.brace.round.js"
4017
        }
4018
      },
4019
      "end": "\\)",
4020
      "endCaptures": {
4021
        "0": {
4022
          "name": "meta.brace.round.js"
4023
        }
4024
      },
4025
      "patterns": [
4026
        {
4027
          "include": "#expression"
4028
        }
4029
      ]
4030
    },
4031
    "paren-expression-possibly-arrow": {
4032
      "patterns": [
4033
        {
4034
          "begin": "(?<=[(,=])\\s*(async)?(?=\\s*((<\\s*(((const\\s+)?[$_[:alpha:]])|(\\{([^{}]|(\\{([^{}]|\\{[^{}]*})*}))*})|(\\(([^()]|(\\(([^()]|\\([^()]*\\))*\\)))*\\))|(\\[([^]\\[]|(\\[([^]\\[]|\\[[^]\\[]*])*]))*]))([^<=>]|=[^<]|<\\s*(((const\\s+)?[$_[:alpha:]])|(\\{([^{}]|(\\{([^{}]|\\{[^{}]*})*}))*})|(\\(([^()]|(\\(([^()]|\\([^()]*\\))*\\)))*\\))|(\\[([^]\\[]|(\\[([^]\\[]|\\[[^]\\[]*])*]))*]))([^<=>]|=[^<]|<\\s*(((const\\s+)?[$_[:alpha:]])|(\\{([^{}]|(\\{([^{}]|\\{[^{}]*})*}))*})|(\\(([^()]|(\\(([^()]|\\([^()]*\\))*\\)))*\\))|(\\[([^]\\[]|(\\[([^]\\[]|\\[[^]\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\s*))?\\(\\s*((([\\[{]\\s*)?)$|((\\{([^{}]|(\\{([^{}]|\\{[^{}]*})*}))*})\\s*((:\\s*\\{?)$|((\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\([^()]+\\)|\\{[^{}]+})+\\s*)?=\\s*)))|((\\[([^]\\[]|(\\[([^]\\[]|\\[[^]\\[]*])*]))*])\\s*((:\\s*\\[?)$|((\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\([^()]+\\)|\\{[^{}]+})+\\s*)?=\\s*)))))",
4035
          "beginCaptures": {
4036
            "1": {
4037
              "name": "storage.modifier.async.js"
4038
            }
4039
          },
4040
          "end": "(?<=\\))",
4041
          "patterns": [
4042
            {
4043
              "include": "#paren-expression-possibly-arrow-with-typeparameters"
4044
            }
4045
          ]
4046
        },
4047
        {
4048
          "begin": "(?<=[(,=]|=>|^return|[^$._[:alnum:]]return)\\s*(async)?(?=\\s*((((<\\s*(((const\\s+)?[$_[:alpha:]])|(\\{([^{}]|(\\{([^{}]|\\{[^{}]*})*}))*})|(\\(([^()]|(\\(([^()]|\\([^()]*\\))*\\)))*\\))|(\\[([^]\\[]|(\\[([^]\\[]|\\[[^]\\[]*])*]))*]))([^<=>]|=[^<]|<\\s*(((const\\s+)?[$_[:alpha:]])|(\\{([^{}]|(\\{([^{}]|\\{[^{}]*})*}))*})|(\\(([^()]|(\\(([^()]|\\([^()]*\\))*\\)))*\\))|(\\[([^]\\[]|(\\[([^]\\[]|\\[[^]\\[]*])*]))*]))([^<=>]|=[^<]|<\\s*(((const\\s+)?[$_[:alpha:]])|(\\{([^{}]|(\\{([^{}]|\\{[^{}]*})*}))*})|(\\(([^()]|(\\(([^()]|\\([^()]*\\))*\\)))*\\))|(\\[([^]\\[]|(\\[([^]\\[]|\\[[^]\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\s*))?\\()|(<)|((<\\s*(((const\\s+)?[$_[:alpha:]])|(\\{([^{}]|(\\{([^{}]|\\{[^{}]*})*}))*})|(\\(([^()]|(\\(([^()]|\\([^()]*\\))*\\)))*\\))|(\\[([^]\\[]|(\\[([^]\\[]|\\[[^]\\[]*])*]))*]))([^<=>]|=[^<]|<\\s*(((const\\s+)?[$_[:alpha:]])|(\\{([^{}]|(\\{([^{}]|\\{[^{}]*})*}))*})|(\\(([^()]|(\\(([^()]|\\([^()]*\\))*\\)))*\\))|(\\[([^]\\[]|(\\[([^]\\[]|\\[[^]\\[]*])*]))*]))([^<=>]|=[^<]|<\\s*(((const\\s+)?[$_[:alpha:]])|(\\{([^{}]|(\\{([^{}]|\\{[^{}]*})*}))*})|(\\(([^()]|(\\(([^()]|\\([^()]*\\))*\\)))*\\))|(\\[([^]\\[]|(\\[([^]\\[]|\\[[^]\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\s*)))\\s*$)",
4049
          "beginCaptures": {
4050
            "1": {
4051
              "name": "storage.modifier.async.js"
4052
            }
4053
          },
4054
          "end": "(?<=\\))",
4055
          "patterns": [
4056
            {
4057
              "include": "#paren-expression-possibly-arrow-with-typeparameters"
4058
            }
4059
          ]
4060
        },
4061
        {
4062
          "include": "#possibly-arrow-return-type"
4063
        }
4064
      ]
4065
    },
4066
    "paren-expression-possibly-arrow-with-typeparameters": {
4067
      "patterns": [
4068
        {
4069
          "include": "#type-parameters"
4070
        },
4071
        {
4072
          "begin": "\\(",
4073
          "beginCaptures": {
4074
            "0": {
4075
              "name": "meta.brace.round.js"
4076
            }
4077
          },
4078
          "end": "\\)",
4079
          "endCaptures": {
4080
            "0": {
4081
              "name": "meta.brace.round.js"
4082
            }
4083
          },
4084
          "patterns": [
4085
            {
4086
              "include": "#expression-inside-possibly-arrow-parens"
4087
            }
4088
          ]
4089
        }
4090
      ]
4091
    },
4092
    "possibly-arrow-return-type": {
4093
      "begin": "(?<=\\)|^)\\s*(:)(?=\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\([^()]+\\)|\\{[^{}]+})+\\s*=>)",
4094
      "beginCaptures": {
4095
        "1": {
4096
          "name": "meta.arrow.js meta.return.type.arrow.js keyword.operator.type.annotation.js"
4097
        }
4098
      },
4099
      "contentName": "meta.arrow.js meta.return.type.arrow.js",
4100
      "end": "(?==>|\\{|^(\\s*(export|function|class|interface|let|var|\\busing(?=\\s+(?!in\\b|of\\b(?!\\s*(?:of\\b|=)))[$_[:alpha:]])\\b|\\bawait\\s+\\busing(?=\\s+(?!in\\b|of\\b(?!\\s*(?:of\\b|=)))[$_[:alpha:]])\\b\\b|const|import|enum|namespace|module|type|abstract|declare)\\s+))",
4101
      "patterns": [
4102
        {
4103
          "include": "#arrow-return-type-body"
4104
        }
4105
      ]
4106
    },
4107
    "property-accessor": {
4108
      "match": "(?<![$_[:alnum:]])(?:(?<=\\.\\.\\.)|(?<!\\.))(accessor|get|set)(?![$_[:alnum:]])(?:(?=\\.\\.\\.)|(?!\\.))",
4109
      "name": "storage.type.property.js"
4110
    },
4111
    "punctuation-accessor": {
4112
      "captures": {
4113
        "1": {
4114
          "name": "punctuation.accessor.js"
4115
        },
4116
        "2": {
4117
          "name": "punctuation.accessor.optional.js"
4118
        }
4119
      },
4120
      "match": "(\\.)|(\\?\\.(?!\\s*\\d))"
4121
    },
4122
    "punctuation-comma": {
4123
      "match": ",",
4124
      "name": "punctuation.separator.comma.js"
4125
    },
4126
    "punctuation-semicolon": {
4127
      "match": ";",
4128
      "name": "punctuation.terminator.statement.js"
4129
    },
4130
    "qstring-double": {
4131
      "begin": "\"",
4132
      "beginCaptures": {
4133
        "0": {
4134
          "name": "punctuation.definition.string.begin.js"
4135
        }
4136
      },
4137
      "end": "(\")|([^\\n\\\\])$",
4138
      "endCaptures": {
4139
        "1": {
4140
          "name": "punctuation.definition.string.end.js"
4141
        },
4142
        "2": {
4143
          "name": "invalid.illegal.newline.js"
4144
        }
4145
      },
4146
      "name": "string.quoted.double.js",
4147
      "patterns": [
4148
        {
4149
          "include": "#string-character-escape"
4150
        }
4151
      ]
4152
    },
4153
    "qstring-single": {
4154
      "begin": "'",
4155
      "beginCaptures": {
4156
        "0": {
4157
          "name": "punctuation.definition.string.begin.js"
4158
        }
4159
      },
4160
      "end": "(')|([^\\n\\\\])$",
4161
      "endCaptures": {
4162
        "1": {
4163
          "name": "punctuation.definition.string.end.js"
4164
        },
4165
        "2": {
4166
          "name": "invalid.illegal.newline.js"
4167
        }
4168
      },
4169
      "name": "string.quoted.single.js",
4170
      "patterns": [
4171
        {
4172
          "include": "#string-character-escape"
4173
        }
4174
      ]
4175
    },
4176
    "regex": {
4177
      "patterns": [
4178
        {
4179
          "begin": "(?<!\\+\\+|--|})(?<=[!(+,:=?\\[]|^return|[^$._[:alnum:]]return|^case|[^$._[:alnum:]]case|=>|&&|\\|\\||\\*/)\\s*(/)(?![*/])(?=(?:[^()/\\[\\\\]|\\\\.|\\[([^]\\\\]|\\\\.)+]|\\(([^)\\\\]|\\\\.)+\\))+/([dgimsuvy]+|(?![*/])|(?=/\\*))(?!\\s*[$0-9A-Z_a-z]))",
4180
          "beginCaptures": {
4181
            "1": {
4182
              "name": "punctuation.definition.string.begin.js"
4183
            }
4184
          },
4185
          "end": "(/)([dgimsuvy]*)",
4186
          "endCaptures": {
4187
            "1": {
4188
              "name": "punctuation.definition.string.end.js"
4189
            },
4190
            "2": {
4191
              "name": "keyword.other.js"
4192
            }
4193
          },
4194
          "name": "string.regexp.js",
4195
          "patterns": [
4196
            {
4197
              "include": "#regexp"
4198
            }
4199
          ]
4200
        },
4201
        {
4202
          "begin": "((?<![]$)_[:alnum:]]|\\+\\+|--|}|\\*/)|((?<=^return|[^$._[:alnum:]]return|^case|[^$._[:alnum:]]case))\\s*)/(?![*/])(?=(?:[^/\\[\\\\]|\\\\.|\\[([^]\\\\]|\\\\.)*])+/([dgimsuvy]+|(?![*/])|(?=/\\*))(?!\\s*[$0-9A-Z_a-z]))",
4203
          "beginCaptures": {
4204
            "0": {
4205
              "name": "punctuation.definition.string.begin.js"
4206
            }
4207
          },
4208
          "end": "(/)([dgimsuvy]*)",
4209
          "endCaptures": {
4210
            "1": {
4211
              "name": "punctuation.definition.string.end.js"
4212
            },
4213
            "2": {
4214
              "name": "keyword.other.js"
4215
            }
4216
          },
4217
          "name": "string.regexp.js",
4218
          "patterns": [
4219
            {
4220
              "include": "#regexp"
4221
            }
4222
          ]
4223
        }
4224
      ]
4225
    },
4226
    "regex-character-class": {
4227
      "patterns": [
4228
        {
4229
          "match": "\\\\[DSWdfnrstvw]|\\.",
4230
          "name": "constant.other.character-class.regexp"
4231
        },
4232
        {
4233
          "match": "\\\\([0-7]{3}|x\\h{2}|u\\h{4})",
4234
          "name": "constant.character.numeric.regexp"
4235
        },
4236
        {
4237
          "match": "\\\\c[A-Z]",
4238
          "name": "constant.character.control.regexp"
4239
        },
4240
        {
4241
          "match": "\\\\.",
4242
          "name": "constant.character.escape.backslash.regexp"
4243
        }
4244
      ]
4245
    },
4246
    "regexp": {
4247
      "patterns": [
4248
        {
4249
          "match": "\\\\[Bb]|[$^]",
4250
          "name": "keyword.control.anchor.regexp"
4251
        },
4252
        {
4253
          "captures": {
4254
            "0": {
4255
              "name": "keyword.other.back-reference.regexp"
4256
            },
4257
            "1": {
4258
              "name": "variable.other.regexp"
4259
            }
4260
          },
4261
          "match": "\\\\(?:[1-9]\\d*|k<([$A-Z_a-z][$\\w]*)>)"
4262
        },
4263
        {
4264
          "match": "[*+?]|\\{(\\d+,\\d+|\\d+,|,\\d+|\\d+)}\\??",
4265
          "name": "keyword.operator.quantifier.regexp"
4266
        },
4267
        {
4268
          "match": "\\|",
4269
          "name": "keyword.operator.or.regexp"
4270
        },
4271
        {
4272
          "begin": "(\\()((\\?=)|(\\?!)|(\\?<=)|(\\?<!))",
4273
          "beginCaptures": {
4274
            "1": {
4275
              "name": "punctuation.definition.group.regexp"
4276
            },
4277
            "2": {
4278
              "name": "punctuation.definition.group.assertion.regexp"
4279
            },
4280
            "3": {
4281
              "name": "meta.assertion.look-ahead.regexp"
4282
            },
4283
            "4": {
4284
              "name": "meta.assertion.negative-look-ahead.regexp"
4285
            },
4286
            "5": {
4287
              "name": "meta.assertion.look-behind.regexp"
4288
            },
4289
            "6": {
4290
              "name": "meta.assertion.negative-look-behind.regexp"
4291
            }
4292
          },
4293
          "end": "(\\))",
4294
          "endCaptures": {
4295
            "1": {
4296
              "name": "punctuation.definition.group.regexp"
4297
            }
4298
          },
4299
          "name": "meta.group.assertion.regexp",
4300
          "patterns": [
4301
            {
4302
              "include": "#regexp"
4303
            }
4304
          ]
4305
        },
4306
        {
4307
          "begin": "\\((?:(\\?:)|\\?<([$A-Z_a-z][$\\w]*)>)?",
4308
          "beginCaptures": {
4309
            "0": {
4310
              "name": "punctuation.definition.group.regexp"
4311
            },
4312
            "1": {
4313
              "name": "punctuation.definition.group.no-capture.regexp"
4314
            },
4315
            "2": {
4316
              "name": "variable.other.regexp"
4317
            }
4318
          },
4319
          "end": "\\)",
4320
          "endCaptures": {
4321
            "0": {
4322
              "name": "punctuation.definition.group.regexp"
4323
            }
4324
          },
4325
          "name": "meta.group.regexp",
4326
          "patterns": [
4327
            {
4328
              "include": "#regexp"
4329
            }
4330
          ]
4331
        },
4332
        {
4333
          "begin": "(\\[)(\\^)?",
4334
          "beginCaptures": {
4335
            "1": {
4336
              "name": "punctuation.definition.character-class.regexp"
4337
            },
4338
            "2": {
4339
              "name": "keyword.operator.negation.regexp"
4340
            }
4341
          },
4342
          "end": "(])",
4343
          "endCaptures": {
4344
            "1": {
4345
              "name": "punctuation.definition.character-class.regexp"
4346
            }
4347
          },
4348
          "name": "constant.other.character-class.set.regexp",
4349
          "patterns": [
4350
            {
4351
              "captures": {
4352
                "1": {
4353
                  "name": "constant.character.numeric.regexp"
4354
                },
4355
                "2": {
4356
                  "name": "constant.character.control.regexp"
4357
                },
4358
                "3": {
4359
                  "name": "constant.character.escape.backslash.regexp"
4360
                },
4361
                "4": {
4362
                  "name": "constant.character.numeric.regexp"
4363
                },
4364
                "5": {
4365
                  "name": "constant.character.control.regexp"
4366
                },
4367
                "6": {
4368
                  "name": "constant.character.escape.backslash.regexp"
4369
                }
4370
              },
4371
              "match": "(?:.|(\\\\(?:[0-7]{3}|x\\h{2}|u\\h{4}))|(\\\\c[A-Z])|(\\\\.))-(?:[^]\\\\]|(\\\\(?:[0-7]{3}|x\\h{2}|u\\h{4}))|(\\\\c[A-Z])|(\\\\.))",
4372
              "name": "constant.other.character-class.range.regexp"
4373
            },
4374
            {
4375
              "include": "#regex-character-class"
4376
            }
4377
          ]
4378
        },
4379
        {
4380
          "include": "#regex-character-class"
4381
        }
4382
      ]
4383
    },
4384
    "return-type": {
4385
      "patterns": [
4386
        {
4387
          "begin": "(?<=\\))\\s*(:)(?=\\s*\\S)",
4388
          "beginCaptures": {
4389
            "1": {
4390
              "name": "keyword.operator.type.annotation.js"
4391
            }
4392
          },
4393
          "end": "(?<![\\&:|])(?=$|^|[,;{}]|//)",
4394
          "name": "meta.return.type.js",
4395
          "patterns": [
4396
            {
4397
              "include": "#return-type-core"
4398
            }
4399
          ]
4400
        },
4401
        {
4402
          "begin": "(?<=\\))\\s*(:)",
4403
          "beginCaptures": {
4404
            "1": {
4405
              "name": "keyword.operator.type.annotation.js"
4406
            }
4407
          },
4408
          "end": "(?<![\\&:|])((?=[,;{}]|//|^\\s*$)|((?<=\\S)(?=\\s*$)))",
4409
          "name": "meta.return.type.js",
4410
          "patterns": [
4411
            {
4412
              "include": "#return-type-core"
4413
            }
4414
          ]
4415
        }
4416
      ]
4417
    },
4418
    "return-type-core": {
4419
      "patterns": [
4420
        {
4421
          "include": "#comment"
4422
        },
4423
        {
4424
          "begin": "(?<=[\\&:|])(?=\\s*\\{)",
4425
          "end": "(?<=})",
4426
          "patterns": [
4427
            {
4428
              "include": "#type-object"
4429
            }
4430
          ]
4431
        },
4432
        {
4433
          "include": "#type-predicate-operator"
4434
        },
4435
        {
4436
          "include": "#type"
4437
        }
4438
      ]
4439
    },
4440
    "shebang": {
4441
      "captures": {
4442
        "1": {
4443
          "name": "punctuation.definition.comment.js"
4444
        }
4445
      },
4446
      "match": "\\A(#!).*(?=$)",
4447
      "name": "comment.line.shebang.js"
4448
    },
4449
    "single-line-comment-consuming-line-ending": {
4450
      "begin": "(^[\\t ]+)?((//)(?:\\s*((@)internal)(?=\\s|$))?)",
4451
      "beginCaptures": {
4452
        "1": {
4453
          "name": "punctuation.whitespace.comment.leading.js"
4454
        },
4455
        "2": {
4456
          "name": "comment.line.double-slash.js"
4457
        },
4458
        "3": {
4459
          "name": "punctuation.definition.comment.js"
4460
        },
4461
        "4": {
4462
          "name": "storage.type.internaldeclaration.js"
4463
        },
4464
        "5": {
4465
          "name": "punctuation.decorator.internaldeclaration.js"
4466
        }
4467
      },
4468
      "contentName": "comment.line.double-slash.js",
4469
      "end": "(?=^)"
4470
    },
4471
    "statements": {
4472
      "patterns": [
4473
        {
4474
          "include": "#declaration"
4475
        },
4476
        {
4477
          "include": "#control-statement"
4478
        },
4479
        {
4480
          "include": "#after-operator-block-as-object-literal"
4481
        },
4482
        {
4483
          "include": "#decl-block"
4484
        },
4485
        {
4486
          "include": "#label"
4487
        },
4488
        {
4489
          "include": "#expression"
4490
        },
4491
        {
4492
          "include": "#punctuation-semicolon"
4493
        },
4494
        {
4495
          "include": "#string"
4496
        },
4497
        {
4498
          "include": "#comment"
4499
        }
4500
      ]
4501
    },
4502
    "string": {
4503
      "patterns": [
4504
        {
4505
          "include": "#qstring-single"
4506
        },
4507
        {
4508
          "include": "#qstring-double"
4509
        },
4510
        {
4511
          "include": "#template"
4512
        }
4513
      ]
4514
    },
4515
    "string-character-escape": {
4516
      "match": "\\\\(x\\h{2}|u\\h{4}|u\\{\\h+}|[012][0-7]{0,2}|3[0-6][0-7]?|37[0-7]?|[4-7][0-7]?|.|$)",
4517
      "name": "constant.character.escape.js"
4518
    },
4519
    "super-literal": {
4520
      "match": "(?<![$_[:alnum:]])(?:(?<=\\.\\.\\.)|(?<!\\.))super\\b(?!\\$)",
4521
      "name": "variable.language.super.js"
4522
    },
4523
    "support-function-call-identifiers": {
4524
      "patterns": [
4525
        {
4526
          "include": "#literal"
4527
        },
4528
        {
4529
          "include": "#support-objects"
4530
        },
4531
        {
4532
          "include": "#object-identifiers"
4533
        },
4534
        {
4535
          "include": "#punctuation-accessor"
4536
        },
4537
        {
4538
          "match": "(?<![$_[:alnum:]])(?:(?<=\\.\\.\\.)|(?<!\\.))import(?=\\s*\\(\\s*[\"'`])",
4539
          "name": "keyword.operator.expression.import.js"
4540
        }
4541
      ]
4542
    },
4543
    "support-objects": {
4544
      "patterns": [
4545
        {
4546
          "match": "(?<![$_[:alnum:]])(?:(?<=\\.\\.\\.)|(?<!\\.))(arguments)\\b(?!\\$)",
4547
          "name": "variable.language.arguments.js"
4548
        },
4549
        {
4550
          "match": "(?<![$_[:alnum:]])(?:(?<=\\.\\.\\.)|(?<!\\.))(Promise)\\b(?!\\$)",
4551
          "name": "support.class.promise.js"
4552
        },
4553
        {
4554
          "captures": {
4555
            "1": {
4556
              "name": "keyword.control.import.js"
4557
            },
4558
            "2": {
4559
              "name": "punctuation.accessor.js"
4560
            },
4561
            "3": {
4562
              "name": "punctuation.accessor.optional.js"
4563
            },
4564
            "4": {
4565
              "name": "support.variable.property.importmeta.js"
4566
            }
4567
          },
4568
          "match": "(?<![$_[:alnum:]])(?:(?<=\\.\\.\\.)|(?<!\\.))(import)\\s*(?:(\\.)|(\\?\\.(?!\\s*\\d)))\\s*(meta)\\b(?!\\$)"
4569
        },
4570
        {
4571
          "captures": {
4572
            "1": {
4573
              "name": "keyword.operator.new.js"
4574
            },
4575
            "2": {
4576
              "name": "punctuation.accessor.js"
4577
            },
4578
            "3": {
4579
              "name": "punctuation.accessor.optional.js"
4580
            },
4581
            "4": {
4582
              "name": "support.variable.property.target.js"
4583
            }
4584
          },
4585
          "match": "(?<![$_[:alnum:]])(?:(?<=\\.\\.\\.)|(?<!\\.))(new)\\s*(?:(\\.)|(\\?\\.(?!\\s*\\d)))\\s*(target)\\b(?!\\$)"
4586
        },
4587
        {
4588
          "captures": {
4589
            "1": {
4590
              "name": "punctuation.accessor.js"
4591
            },
4592
            "2": {
4593
              "name": "punctuation.accessor.optional.js"
4594
            },
4595
            "3": {
4596
              "name": "support.variable.property.js"
4597
            },
4598
            "4": {
4599
              "name": "support.constant.js"
4600
            }
4601
          },
4602
          "match": "(?:(\\.)|(\\?\\.(?!\\s*\\d)))\\s*(?:(constructor|length|prototype|__proto__)\\b(?!\\$|\\s*(<\\s*(((const\\s+)?[$_[:alpha:]])|(\\{([^{}]|(\\{([^{}]|\\{[^{}]*})*}))*})|(\\(([^()]|(\\(([^()]|\\([^()]*\\))*\\)))*\\))|(\\[([^]\\[]|(\\[([^]\\[]|\\[[^]\\[]*])*]))*]))([^<=>]|=[^<]|<\\s*(((const\\s+)?[$_[:alpha:]])|(\\{([^{}]|(\\{([^{}]|\\{[^{}]*})*}))*})|(\\(([^()]|(\\(([^()]|\\([^()]*\\))*\\)))*\\))|(\\[([^]\\[]|(\\[([^]\\[]|\\[[^]\\[]*])*]))*]))([^<=>]|=[^<]|<\\s*(((const\\s+)?[$_[:alpha:]])|(\\{([^{}]|(\\{([^{}]|\\{[^{}]*})*}))*})|(\\(([^()]|(\\(([^()]|\\([^()]*\\))*\\)))*\\))|(\\[([^]\\[]|(\\[([^]\\[]|\\[[^]\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\s*)?\\()|(EPSILON|MAX_SAFE_INTEGER|MAX_VALUE|MIN_SAFE_INTEGER|MIN_VALUE|NEGATIVE_INFINITY|POSITIVE_INFINITY)\\b(?!\\$))"
4603
        },
4604
        {
4605
          "captures": {
4606
            "1": {
4607
              "name": "support.type.object.module.js"
4608
            },
4609
            "2": {
4610
              "name": "support.type.object.module.js"
4611
            },
4612
            "3": {
4613
              "name": "punctuation.accessor.js"
4614
            },
4615
            "4": {
4616
              "name": "punctuation.accessor.optional.js"
4617
            },
4618
            "5": {
4619
              "name": "support.type.object.module.js"
4620
            }
4621
          },
4622
          "match": "(?<![$_[:alnum:]])(?:(?<=\\.\\.\\.)|(?<!\\.))(?:(exports)|(module)(?:(?:(\\.)|(\\?\\.(?!\\s*\\d)))(exports|id|filename|loaded|parent|children))?)\\b(?!\\$)"
4623
        }
4624
      ]
4625
    },
4626
    "switch-statement": {
4627
      "begin": "(?<![$_[:alnum:]])(?:(?<=\\.\\.\\.)|(?<!\\.))(?=\\bswitch\\s*\\()",
4628
      "end": "}",
4629
      "endCaptures": {
4630
        "0": {
4631
          "name": "punctuation.definition.block.js"
4632
        }
4633
      },
4634
      "name": "switch-statement.expr.js",
4635
      "patterns": [
4636
        {
4637
          "include": "#comment"
4638
        },
4639
        {
4640
          "begin": "(?<![$_[:alnum:]])(?:(?<=\\.\\.\\.)|(?<!\\.))(switch)\\s*(\\()",
4641
          "beginCaptures": {
4642
            "1": {
4643
              "name": "keyword.control.switch.js"
4644
            },
4645
            "2": {
4646
              "name": "meta.brace.round.js"
4647
            }
4648
          },
4649
          "end": "\\)",
4650
          "endCaptures": {
4651
            "0": {
4652
              "name": "meta.brace.round.js"
4653
            }
4654
          },
4655
          "name": "switch-expression.expr.js",
4656
          "patterns": [
4657
            {
4658
              "include": "#expression"
4659
            }
4660
          ]
4661
        },
4662
        {
4663
          "begin": "\\{",
4664
          "beginCaptures": {
4665
            "0": {
4666
              "name": "punctuation.definition.block.js"
4667
            }
4668
          },
4669
          "end": "(?=})",
4670
          "name": "switch-block.expr.js",
4671
          "patterns": [
4672
            {
4673
              "begin": "(?<![$_[:alnum:]])(?:(?<=\\.\\.\\.)|(?<!\\.))(case|default(?=:))(?![$_[:alnum:]])(?:(?=\\.\\.\\.)|(?!\\.))",
4674
              "beginCaptures": {
4675
                "1": {
4676
                  "name": "keyword.control.switch.js"
4677
                }
4678
              },
4679
              "end": "(?=:)",
4680
              "name": "case-clause.expr.js",
4681
              "patterns": [
4682
                {
4683
                  "include": "#expression"
4684
                }
4685
              ]
4686
            },
4687
            {
4688
              "begin": "(:)\\s*(\\{)",
4689
              "beginCaptures": {
4690
                "1": {
4691
                  "name": "case-clause.expr.js punctuation.definition.section.case-statement.js"
4692
                },
4693
                "2": {
4694
                  "name": "meta.block.js punctuation.definition.block.js"
4695
                }
4696
              },
4697
              "contentName": "meta.block.js",
4698
              "end": "}",
4699
              "endCaptures": {
4700
                "0": {
4701
                  "name": "meta.block.js punctuation.definition.block.js"
4702
                }
4703
              },
4704
              "patterns": [
4705
                {
4706
                  "include": "#statements"
4707
                }
4708
              ]
4709
            },
4710
            {
4711
              "captures": {
4712
                "0": {
4713
                  "name": "case-clause.expr.js punctuation.definition.section.case-statement.js"
4714
                }
4715
              },
4716
              "match": "(:)"
4717
            },
4718
            {
4719
              "include": "#statements"
4720
            }
4721
          ]
4722
        }
4723
      ]
4724
    },
4725
    "template": {
4726
      "patterns": [
4727
        {
4728
          "include": "#template-call"
4729
        },
4730
        {
4731
          "begin": "([$_[:alpha:]][$_[:alnum:]]*)?(`)",
4732
          "beginCaptures": {
4733
            "1": {
4734
              "name": "entity.name.function.tagged-template.js"
4735
            },
4736
            "2": {
4737
              "name": "string.template.js punctuation.definition.string.template.begin.js"
4738
            }
4739
          },
4740
          "contentName": "string.template.js",
4741
          "end": "`",
4742
          "endCaptures": {
4743
            "0": {
4744
              "name": "string.template.js punctuation.definition.string.template.end.js"
4745
            }
4746
          },
4747
          "patterns": [
4748
            {
4749
              "include": "#template-substitution-element"
4750
            },
4751
            {
4752
              "include": "#string-character-escape"
4753
            }
4754
          ]
4755
        }
4756
      ]
4757
    },
4758
    "template-call": {
4759
      "patterns": [
4760
        {
4761
          "begin": "(?=(([$_[:alpha:]][$_[:alnum:]]*\\s*\\??\\.\\s*)*|(\\??\\.\\s*)?)([$_[:alpha:]][$_[:alnum:]]*)(<\\s*(((keyof|infer|typeof|readonly)\\s+)|(([$_[:alpha:]][$_[:alnum:]]*|(\\{([^{}]|(\\{([^{}]|\\{[^{}]*})*}))*})|(\\(([^()]|(\\(([^()]|\\([^()]*\\))*\\)))*\\))|(\\[([^]\\[]|(\\[([^]\\[]|\\[[^]\\[]*])*]))*])|('([^'\\\\]|\\\\.)*')|(\"([^\"\\\\]|\\\\.)*\")|(`([^\\\\`]|\\\\.)*`))(?=\\s*([,.<>\\[]|=>|&(?!&)|\\|(?!\\|)))))([^(<>]|(\\(([^()]|(\\(([^()]|\\([^()]*\\))*\\)))*\\))|(?<==)>|<\\s*(((keyof|infer|typeof|readonly)\\s+)|(([$_[:alpha:]][$_[:alnum:]]*|(\\{([^{}]|(\\{([^{}]|\\{[^{}]*})*}))*})|(\\(([^()]|(\\(([^()]|\\([^()]*\\))*\\)))*\\))|(\\[([^]\\[]|(\\[([^]\\[]|\\[[^]\\[]*])*]))*])|('([^'\\\\]|\\\\.)*')|(\"([^\"\\\\]|\\\\.)*\")|(`([^\\\\`]|\\\\.)*`))(?=\\s*([,.<>\\[]|=>|&(?!&)|\\|(?!\\|)))))(([^(<>]|(\\(([^()]|(\\(([^()]|\\([^()]*\\))*\\)))*\\))|(?<==)>|<\\s*(((keyof|infer|typeof|readonly)\\s+)|(([$_[:alpha:]][$_[:alnum:]]*|(\\{([^{}]|(\\{([^{}]|\\{[^{}]*})*}))*})|(\\(([^()]|(\\(([^()]|\\([^()]*\\))*\\)))*\\))|(\\[([^]\\[]|(\\[([^]\\[]|\\[[^]\\[]*])*]))*])|('([^'\\\\]|\\\\.)*')|(\"([^\"\\\\]|\\\\.)*\")|(`([^\\\\`]|\\\\.)*`))(?=\\s*([,.<>\\[]|=>|&(?!&)|\\|(?!\\|)))))([^(<>]|(\\(([^()]|(\\(([^()]|\\([^()]*\\))*\\)))*\\))|(?<==)>)*(?<!=)>))*(?<!=)>)*(?<!=)>\\s*)?`)",
4762
          "end": "(?=`)",
4763
          "patterns": [
4764
            {
4765
              "begin": "(?=(([$_[:alpha:]][$_[:alnum:]]*\\s*\\??\\.\\s*)*|(\\??\\.\\s*)?)([$_[:alpha:]][$_[:alnum:]]*))",
4766
              "end": "(?=(<\\s*(((keyof|infer|typeof|readonly)\\s+)|(([$_[:alpha:]][$_[:alnum:]]*|(\\{([^{}]|(\\{([^{}]|\\{[^{}]*})*}))*})|(\\(([^()]|(\\(([^()]|\\([^()]*\\))*\\)))*\\))|(\\[([^]\\[]|(\\[([^]\\[]|\\[[^]\\[]*])*]))*])|('([^'\\\\]|\\\\.)*')|(\"([^\"\\\\]|\\\\.)*\")|(`([^\\\\`]|\\\\.)*`))(?=\\s*([,.<>\\[]|=>|&(?!&)|\\|(?!\\|)))))([^(<>]|(\\(([^()]|(\\(([^()]|\\([^()]*\\))*\\)))*\\))|(?<==)>|<\\s*(((keyof|infer|typeof|readonly)\\s+)|(([$_[:alpha:]][$_[:alnum:]]*|(\\{([^{}]|(\\{([^{}]|\\{[^{}]*})*}))*})|(\\(([^()]|(\\(([^()]|\\([^()]*\\))*\\)))*\\))|(\\[([^]\\[]|(\\[([^]\\[]|\\[[^]\\[]*])*]))*])|('([^'\\\\]|\\\\.)*')|(\"([^\"\\\\]|\\\\.)*\")|(`([^\\\\`]|\\\\.)*`))(?=\\s*([,.<>\\[]|=>|&(?!&)|\\|(?!\\|)))))(([^(<>]|(\\(([^()]|(\\(([^()]|\\([^()]*\\))*\\)))*\\))|(?<==)>|<\\s*(((keyof|infer|typeof|readonly)\\s+)|(([$_[:alpha:]][$_[:alnum:]]*|(\\{([^{}]|(\\{([^{}]|\\{[^{}]*})*}))*})|(\\(([^()]|(\\(([^()]|\\([^()]*\\))*\\)))*\\))|(\\[([^]\\[]|(\\[([^]\\[]|\\[[^]\\[]*])*]))*])|('([^'\\\\]|\\\\.)*')|(\"([^\"\\\\]|\\\\.)*\")|(`([^\\\\`]|\\\\.)*`))(?=\\s*([,.<>\\[]|=>|&(?!&)|\\|(?!\\|)))))([^(<>]|(\\(([^()]|(\\(([^()]|\\([^()]*\\))*\\)))*\\))|(?<==)>)*(?<!=)>))*(?<!=)>)*(?<!=)>\\s*)?`)",
4767
              "patterns": [
4768
                {
4769
                  "include": "#support-function-call-identifiers"
4770
                },
4771
                {
4772
                  "match": "([$_[:alpha:]][$_[:alnum:]]*)",
4773
                  "name": "entity.name.function.tagged-template.js"
4774
                }
4775
              ]
4776
            },
4777
            {
4778
              "include": "#type-arguments"
4779
            }
4780
          ]
4781
        },
4782
        {
4783
          "begin": "([$_[:alpha:]][$_[:alnum:]]*)?\\s*(?=(<\\s*(((keyof|infer|typeof|readonly)\\s+)|(([$_[:alpha:]][$_[:alnum:]]*|(\\{([^{}]|(\\{([^{}]|\\{[^{}]*})*}))*})|(\\(([^()]|(\\(([^()]|\\([^()]*\\))*\\)))*\\))|(\\[([^]\\[]|(\\[([^]\\[]|\\[[^]\\[]*])*]))*])|('([^'\\\\]|\\\\.)*')|(\"([^\"\\\\]|\\\\.)*\")|(`([^\\\\`]|\\\\.)*`))(?=\\s*([,.<>\\[]|=>|&(?!&)|\\|(?!\\|)))))([^(<>]|(\\(([^()]|(\\(([^()]|\\([^()]*\\))*\\)))*\\))|(?<==)>|<\\s*(((keyof|infer|typeof|readonly)\\s+)|(([$_[:alpha:]][$_[:alnum:]]*|(\\{([^{}]|(\\{([^{}]|\\{[^{}]*})*}))*})|(\\(([^()]|(\\(([^()]|\\([^()]*\\))*\\)))*\\))|(\\[([^]\\[]|(\\[([^]\\[]|\\[[^]\\[]*])*]))*])|('([^'\\\\]|\\\\.)*')|(\"([^\"\\\\]|\\\\.)*\")|(`([^\\\\`]|\\\\.)*`))(?=\\s*([,.<>\\[]|=>|&(?!&)|\\|(?!\\|)))))(([^(<>]|(\\(([^()]|(\\(([^()]|\\([^()]*\\))*\\)))*\\))|(?<==)>|<\\s*(((keyof|infer|typeof|readonly)\\s+)|(([$_[:alpha:]][$_[:alnum:]]*|(\\{([^{}]|(\\{([^{}]|\\{[^{}]*})*}))*})|(\\(([^()]|(\\(([^()]|\\([^()]*\\))*\\)))*\\))|(\\[([^]\\[]|(\\[([^]\\[]|\\[[^]\\[]*])*]))*])|('([^'\\\\]|\\\\.)*')|(\"([^\"\\\\]|\\\\.)*\")|(`([^\\\\`]|\\\\.)*`))(?=\\s*([,.<>\\[]|=>|&(?!&)|\\|(?!\\|)))))([^(<>]|(\\(([^()]|(\\(([^()]|\\([^()]*\\))*\\)))*\\))|(?<==)>)*(?<!=)>))*(?<!=)>)*(?<!=)>\\s*)`)",
4784
          "beginCaptures": {
4785
            "1": {
4786
              "name": "entity.name.function.tagged-template.js"
4787
            }
4788
          },
4789
          "end": "(?=`)",
4790
          "patterns": [
4791
            {
4792
              "include": "#type-arguments"
4793
            }
4794
          ]
4795
        }
4796
      ]
4797
    },
4798
    "template-substitution-element": {
4799
      "begin": "\\$\\{",
4800
      "beginCaptures": {
4801
        "0": {
4802
          "name": "punctuation.definition.template-expression.begin.js"
4803
        }
4804
      },
4805
      "contentName": "meta.embedded.line.js",
4806
      "end": "}",
4807
      "endCaptures": {
4808
        "0": {
4809
          "name": "punctuation.definition.template-expression.end.js"
4810
        }
4811
      },
4812
      "name": "meta.template.expression.js",
4813
      "patterns": [
4814
        {
4815
          "include": "#expression"
4816
        }
4817
      ]
4818
    },
4819
    "template-type": {
4820
      "patterns": [
4821
        {
4822
          "include": "#template-call"
4823
        },
4824
        {
4825
          "begin": "([$_[:alpha:]][$_[:alnum:]]*)?(`)",
4826
          "beginCaptures": {
4827
            "1": {
4828
              "name": "entity.name.function.tagged-template.js"
4829
            },
4830
            "2": {
4831
              "name": "string.template.js punctuation.definition.string.template.begin.js"
4832
            }
4833
          },
4834
          "contentName": "string.template.js",
4835
          "end": "`",
4836
          "endCaptures": {
4837
            "0": {
4838
              "name": "string.template.js punctuation.definition.string.template.end.js"
4839
            }
4840
          },
4841
          "patterns": [
4842
            {
4843
              "include": "#template-type-substitution-element"
4844
            },
4845
            {
4846
              "include": "#string-character-escape"
4847
            }
4848
          ]
4849
        }
4850
      ]
4851
    },
4852
    "template-type-substitution-element": {
4853
      "begin": "\\$\\{",
4854
      "beginCaptures": {
4855
        "0": {
4856
          "name": "punctuation.definition.template-expression.begin.js"
4857
        }
4858
      },
4859
      "contentName": "meta.embedded.line.js",
4860
      "end": "}",
4861
      "endCaptures": {
4862
        "0": {
4863
          "name": "punctuation.definition.template-expression.end.js"
4864
        }
4865
      },
4866
      "name": "meta.template.expression.js",
4867
      "patterns": [
4868
        {
4869
          "include": "#type"
4870
        }
4871
      ]
4872
    },
4873
    "ternary-expression": {
4874
      "begin": "(?!\\?\\.\\s*\\D)(\\?)(?!\\?)",
4875
      "beginCaptures": {
4876
        "1": {
4877
          "name": "keyword.operator.ternary.js"
4878
        }
4879
      },
4880
      "end": "\\s*(:)",
4881
      "endCaptures": {
4882
        "1": {
4883
          "name": "keyword.operator.ternary.js"
4884
        }
4885
      },
4886
      "patterns": [
4887
        {
4888
          "include": "#expression"
4889
        }
4890
      ]
4891
    },
4892
    "this-literal": {
4893
      "match": "(?<![$_[:alnum:]])(?:(?<=\\.\\.\\.)|(?<!\\.))this\\b(?!\\$)",
4894
      "name": "variable.language.this.js"
4895
    },
4896
    "type": {
4897
      "patterns": [
4898
        {
4899
          "include": "#comment"
4900
        },
4901
        {
4902
          "include": "#type-string"
4903
        },
4904
        {
4905
          "include": "#numeric-literal"
4906
        },
4907
        {
4908
          "include": "#type-primitive"
4909
        },
4910
        {
4911
          "include": "#type-builtin-literals"
4912
        },
4913
        {
4914
          "include": "#type-parameters"
4915
        },
4916
        {
4917
          "include": "#type-tuple"
4918
        },
4919
        {
4920
          "include": "#type-object"
4921
        },
4922
        {
4923
          "include": "#type-operators"
4924
        },
4925
        {
4926
          "include": "#type-conditional"
4927
        },
4928
        {
4929
          "include": "#type-fn-type-parameters"
4930
        },
4931
        {
4932
          "include": "#type-paren-or-function-parameters"
4933
        },
4934
        {
4935
          "include": "#type-function-return-type"
4936
        },
4937
        {
4938
          "captures": {
4939
            "1": {
4940
              "name": "storage.modifier.js"
4941
            }
4942
          },
4943
          "match": "(?<![$_[:alnum:]])(?:(?<=\\.\\.\\.)|(?<!\\.))(readonly)(?![$_[:alnum:]])(?:(?=\\.\\.\\.)|(?!\\.))\\s*"
4944
        },
4945
        {
4946
          "include": "#type-name"
4947
        }
4948
      ]
4949
    },
4950
    "type-alias-declaration": {
4951
      "begin": "(?<![$_[:alnum:]])(?:(?<=\\.\\.\\.)|(?<!\\.))(?:\\b(export)\\s+)?(?:\\b(declare)\\s+)?\\b(type)\\b\\s+([$_[:alpha:]][$_[:alnum:]]*)\\s*",
4952
      "beginCaptures": {
4953
        "1": {
4954
          "name": "keyword.control.export.js"
4955
        },
4956
        "2": {
4957
          "name": "storage.modifier.js"
4958
        },
4959
        "3": {
4960
          "name": "storage.type.type.js"
4961
        },
4962
        "4": {
4963
          "name": "entity.name.type.alias.js"
4964
        }
4965
      },
4966
      "end": "(?=[;}]|^\\s*$|^\\s*(?:abstract|async|\\bawait\\s+\\busing(?=\\s+(?!in\\b|of\\b(?!\\s*(?:of\\b|=)))[$_[:alpha:]])\\b\\b|break|case|catch|class|const|continue|declare|do|else|enum|export|finally|function|for|goto|if|import|interface|let|module|namespace|switch|return|throw|try|type|\\busing(?=\\s+(?!in\\b|of\\b(?!\\s*(?:of\\b|=)))[$_[:alpha:]])\\b|var|while)\\b)",
4967
      "name": "meta.type.declaration.js",
4968
      "patterns": [
4969
        {
4970
          "include": "#comment"
4971
        },
4972
        {
4973
          "include": "#type-parameters"
4974
        },
4975
        {
4976
          "begin": "(=)\\s*(intrinsic)(?![$_[:alnum:]])(?:(?=\\.\\.\\.)|(?!\\.))",
4977
          "beginCaptures": {
4978
            "1": {
4979
              "name": "keyword.operator.assignment.js"
4980
            },
4981
            "2": {
4982
              "name": "keyword.control.intrinsic.js"
4983
            }
4984
          },
4985
          "end": "(?=[;}]|^\\s*$|^\\s*(?:abstract|async|\\bawait\\s+\\busing(?=\\s+(?!in\\b|of\\b(?!\\s*(?:of\\b|=)))[$_[:alpha:]])\\b\\b|break|case|catch|class|const|continue|declare|do|else|enum|export|finally|function|for|goto|if|import|interface|let|module|namespace|switch|return|throw|try|type|\\busing(?=\\s+(?!in\\b|of\\b(?!\\s*(?:of\\b|=)))[$_[:alpha:]])\\b|var|while)\\b)",
4986
          "patterns": [
4987
            {
4988
              "include": "#type"
4989
            }
4990
          ]
4991
        },
4992
        {
4993
          "begin": "(=)\\s*",
4994
          "beginCaptures": {
4995
            "1": {
4996
              "name": "keyword.operator.assignment.js"
4997
            }
4998
          },
4999
          "end": "(?=[;}]|^\\s*$|^\\s*(?:abstract|async|\\bawait\\s+\\busing(?=\\s+(?!in\\b|of\\b(?!\\s*(?:of\\b|=)))[$_[:alpha:]])\\b\\b|break|case|catch|class|const|continue|declare|do|else|enum|export|finally|function|for|goto|if|import|interface|let|module|namespace|switch|return|throw|try|type|\\busing(?=\\s+(?!in\\b|of\\b(?!\\s*(?:of\\b|=)))[$_[:alpha:]])\\b|var|while)\\b)",
5000
          "patterns": [
5001
            {
5002
              "include": "#type"
5003
            }
5004
          ]
5005
        }
5006
      ]
5007
    },
5008
    "type-annotation": {
5009
      "patterns": [
5010
        {
5011
          "begin": "(:)(?=\\s*\\S)",
5012
          "beginCaptures": {
5013
            "1": {
5014
              "name": "keyword.operator.type.annotation.js"
5015
            }
5016
          },
5017
          "end": "(?<![\\&:|])(?!\\s*[\\&|]\\s+)((?=^|[]),;}]|//)|(?==[^>])|((?<=[]$)>_}[:alpha:]])\\s*(?=\\{)))",
5018
          "name": "meta.type.annotation.js",
5019
          "patterns": [
5020
            {
5021
              "include": "#type"
5022
            }
5023
          ]
5024
        },
5025
        {
5026
          "begin": "(:)",
5027
          "beginCaptures": {
5028
            "1": {
5029
              "name": "keyword.operator.type.annotation.js"
5030
            }
5031
          },
5032
          "end": "(?<![\\&:|])((?=[]),;}]|//)|(?==[^>])|(?=^\\s*$)|((?<=[]$)>_}[:alpha:]])\\s*(?=\\{)))",
5033
          "name": "meta.type.annotation.js",
5034
          "patterns": [
5035
            {
5036
              "include": "#type"
5037
            }
5038
          ]
5039
        }
5040
      ]
5041
    },
5042
    "type-arguments": {
5043
      "begin": "<",
5044
      "beginCaptures": {
5045
        "0": {
5046
          "name": "punctuation.definition.typeparameters.begin.js"
5047
        }
5048
      },
5049
      "end": ">",
5050
      "endCaptures": {
5051
        "0": {
5052
          "name": "punctuation.definition.typeparameters.end.js"
5053
        }
5054
      },
5055
      "name": "meta.type.parameters.js",
5056
      "patterns": [
5057
        {
5058
          "include": "#type-arguments-body"
5059
        }
5060
      ]
5061
    },
5062
    "type-arguments-body": {
5063
      "patterns": [
5064
        {
5065
          "captures": {
5066
            "0": {
5067
              "name": "keyword.operator.type.js"
5068
            }
5069
          },
5070
          "match": "(?<![$_[:alnum:]])(?:(?<=\\.\\.\\.)|(?<!\\.))(_)(?![$_[:alnum:]])(?:(?=\\.\\.\\.)|(?!\\.))"
5071
        },
5072
        {
5073
          "include": "#type"
5074
        },
5075
        {
5076
          "include": "#punctuation-comma"
5077
        }
5078
      ]
5079
    },
5080
    "type-builtin-literals": {
5081
      "match": "(?<![$_[:alnum:]])(?:(?<=\\.\\.\\.)|(?<!\\.))(this|true|false|undefined|null|object)(?![$_[:alnum:]])(?:(?=\\.\\.\\.)|(?!\\.))",
5082
      "name": "support.type.builtin.js"
5083
    },
5084
    "type-conditional": {
5085
      "patterns": [
5086
        {
5087
          "begin": "(?<![$_[:alnum:]])(?:(?<=\\.\\.\\.)|(?<!\\.))(extends)\\s+",
5088
          "beginCaptures": {
5089
            "1": {
5090
              "name": "storage.modifier.js"
5091
            }
5092
          },
5093
          "end": "(?<=:)",
5094
          "patterns": [
5095
            {
5096
              "begin": "\\?",
5097
              "beginCaptures": {
5098
                "0": {
5099
                  "name": "keyword.operator.ternary.js"
5100
                }
5101
              },
5102
              "end": ":",
5103
              "endCaptures": {
5104
                "0": {
5105
                  "name": "keyword.operator.ternary.js"
5106
                }
5107
              },
5108
              "patterns": [
5109
                {
5110
                  "include": "#type"
5111
                }
5112
              ]
5113
            },
5114
            {
5115
              "include": "#type"
5116
            }
5117
          ]
5118
        }
5119
      ]
5120
    },
5121
    "type-fn-type-parameters": {
5122
      "patterns": [
5123
        {
5124
          "begin": "(?<![$_[:alnum:]])(?:(?<=\\.\\.\\.)|(?<!\\.))(?:(abstract)\\s+)?(new)\\b(?=\\s*<)",
5125
          "beginCaptures": {
5126
            "1": {
5127
              "name": "meta.type.constructor.js storage.modifier.js"
5128
            },
5129
            "2": {
5130
              "name": "meta.type.constructor.js keyword.control.new.js"
5131
            }
5132
          },
5133
          "end": "(?<=>)",
5134
          "patterns": [
5135
            {
5136
              "include": "#comment"
5137
            },
5138
            {
5139
              "include": "#type-parameters"
5140
            }
5141
          ]
5142
        },
5143
        {
5144
          "begin": "(?<![$_[:alnum:]])(?:(?<=\\.\\.\\.)|(?<!\\.))(?:(abstract)\\s+)?(new)\\b\\s*(?=\\()",
5145
          "beginCaptures": {
5146
            "1": {
5147
              "name": "storage.modifier.js"
5148
            },
5149
            "2": {
5150
              "name": "keyword.control.new.js"
5151
            }
5152
          },
5153
          "end": "(?<=\\))",
5154
          "name": "meta.type.constructor.js",
5155
          "patterns": [
5156
            {
5157
              "include": "#function-parameters"
5158
            }
5159
          ]
5160
        },
5161
        {
5162
          "begin": "((?=\\(\\s*((\\))|(\\.\\.\\.)|([$_[:alnum:]]+\\s*(([,:=?])|(\\)\\s*=>))))))",
5163
          "end": "(?<=\\))",
5164
          "name": "meta.type.function.js",
5165
          "patterns": [
5166
            {
5167
              "include": "#function-parameters"
5168
            }
5169
          ]
5170
        }
5171
      ]
5172
    },
5173
    "type-function-return-type": {
5174
      "patterns": [
5175
        {
5176
          "begin": "(=>)(?=\\s*\\S)",
5177
          "beginCaptures": {
5178
            "1": {
5179
              "name": "storage.type.function.arrow.js"
5180
            }
5181
          },
5182
          "end": "(?<!=>)(?<![\\&|])(?=[]),:;=>?{}]|//|$)",
5183
          "name": "meta.type.function.return.js",
5184
          "patterns": [
5185
            {
5186
              "include": "#type-function-return-type-core"
5187
            }
5188
          ]
5189
        },
5190
        {
5191
          "begin": "=>",
5192
          "beginCaptures": {
5193
            "0": {
5194
              "name": "storage.type.function.arrow.js"
5195
            }
5196
          },
5197
          "end": "(?<!=>)(?<![\\&|])((?=[]),:;=>?{}]|//|^\\s*$)|((?<=\\S)(?=\\s*$)))",
5198
          "name": "meta.type.function.return.js",
5199
          "patterns": [
5200
            {
5201
              "include": "#type-function-return-type-core"
5202
            }
5203
          ]
5204
        }
5205
      ]
5206
    },
5207
    "type-function-return-type-core": {
5208
      "patterns": [
5209
        {
5210
          "include": "#comment"
5211
        },
5212
        {
5213
          "begin": "(?<==>)(?=\\s*\\{)",
5214
          "end": "(?<=})",
5215
          "patterns": [
5216
            {
5217
              "include": "#type-object"
5218
            }
5219
          ]
5220
        },
5221
        {
5222
          "include": "#type-predicate-operator"
5223
        },
5224
        {
5225
          "include": "#type"
5226
        }
5227
      ]
5228
    },
5229
    "type-infer": {
5230
      "patterns": [
5231
        {
5232
          "captures": {
5233
            "1": {
5234
              "name": "keyword.operator.expression.infer.js"
5235
            },
5236
            "2": {
5237
              "name": "entity.name.type.js"
5238
            },
5239
            "3": {
5240
              "name": "keyword.operator.expression.extends.js"
5241
            }
5242
          },
5243
          "match": "(?<![$_[:alnum:]])(?:(?<=\\.\\.\\.)|(?<!\\.))(infer)\\s+([$_[:alpha:]][$_[:alnum:]]*)(?![$_[:alnum:]])(?:(?=\\.\\.\\.)|(?!\\.))(?:\\s+(extends)(?![$_[:alnum:]])(?:(?=\\.\\.\\.)|(?!\\.)))?",
5244
          "name": "meta.type.infer.js"
5245
        }
5246
      ]
5247
    },
5248
    "type-name": {
5249
      "patterns": [
5250
        {
5251
          "begin": "([$_[:alpha:]][$_[:alnum:]]*)\\s*(?:(\\.)|(\\?\\.(?!\\s*\\d)))\\s*(<)",
5252
          "captures": {
5253
            "1": {
5254
              "name": "entity.name.type.module.js"
5255
            },
5256
            "2": {
5257
              "name": "punctuation.accessor.js"
5258
            },
5259
            "3": {
5260
              "name": "punctuation.accessor.optional.js"
5261
            },
5262
            "4": {
5263
              "name": "meta.type.parameters.js punctuation.definition.typeparameters.begin.js"
5264
            }
5265
          },
5266
          "contentName": "meta.type.parameters.js",
5267
          "end": "(>)",
5268
          "endCaptures": {
5269
            "1": {
5270
              "name": "meta.type.parameters.js punctuation.definition.typeparameters.end.js"
5271
            }
5272
          },
5273
          "patterns": [
5274
            {
5275
              "include": "#type-arguments-body"
5276
            }
5277
          ]
5278
        },
5279
        {
5280
          "begin": "([$_[:alpha:]][$_[:alnum:]]*)\\s*(<)",
5281
          "beginCaptures": {
5282
            "1": {
5283
              "name": "entity.name.type.js"
5284
            },
5285
            "2": {
5286
              "name": "meta.type.parameters.js punctuation.definition.typeparameters.begin.js"
5287
            }
5288
          },
5289
          "contentName": "meta.type.parameters.js",
5290
          "end": "(>)",
5291
          "endCaptures": {
5292
            "1": {
5293
              "name": "meta.type.parameters.js punctuation.definition.typeparameters.end.js"
5294
            }
5295
          },
5296
          "patterns": [
5297
            {
5298
              "include": "#type-arguments-body"
5299
            }
5300
          ]
5301
        },
5302
        {
5303
          "captures": {
5304
            "1": {
5305
              "name": "entity.name.type.module.js"
5306
            },
5307
            "2": {
5308
              "name": "punctuation.accessor.js"
5309
            },
5310
            "3": {
5311
              "name": "punctuation.accessor.optional.js"
5312
            }
5313
          },
5314
          "match": "([$_[:alpha:]][$_[:alnum:]]*)\\s*(?:(\\.)|(\\?\\.(?!\\s*\\d)))"
5315
        },
5316
        {
5317
          "match": "[$_[:alpha:]][$_[:alnum:]]*",
5318
          "name": "entity.name.type.js"
5319
        }
5320
      ]
5321
    },
5322
    "type-object": {
5323
      "begin": "\\{",
5324
      "beginCaptures": {
5325
        "0": {
5326
          "name": "punctuation.definition.block.js"
5327
        }
5328
      },
5329
      "end": "}",
5330
      "endCaptures": {
5331
        "0": {
5332
          "name": "punctuation.definition.block.js"
5333
        }
5334
      },
5335
      "name": "meta.object.type.js",
5336
      "patterns": [
5337
        {
5338
          "include": "#comment"
5339
        },
5340
        {
5341
          "include": "#method-declaration"
5342
        },
5343
        {
5344
          "include": "#indexer-declaration"
5345
        },
5346
        {
5347
          "include": "#indexer-mapped-type-declaration"
5348
        },
5349
        {
5350
          "include": "#field-declaration"
5351
        },
5352
        {
5353
          "include": "#type-annotation"
5354
        },
5355
        {
5356
          "begin": "\\.\\.\\.",
5357
          "beginCaptures": {
5358
            "0": {
5359
              "name": "keyword.operator.spread.js"
5360
            }
5361
          },
5362
          "end": "(?=[,;}]|$)|(?<=})",
5363
          "patterns": [
5364
            {
5365
              "include": "#type"
5366
            }
5367
          ]
5368
        },
5369
        {
5370
          "include": "#punctuation-comma"
5371
        },
5372
        {
5373
          "include": "#punctuation-semicolon"
5374
        },
5375
        {
5376
          "include": "#type"
5377
        }
5378
      ]
5379
    },
5380
    "type-operators": {
5381
      "patterns": [
5382
        {
5383
          "include": "#typeof-operator"
5384
        },
5385
        {
5386
          "include": "#type-infer"
5387
        },
5388
        {
5389
          "begin": "([\\&|])(?=\\s*\\{)",
5390
          "beginCaptures": {
5391
            "0": {
5392
              "name": "keyword.operator.type.js"
5393
            }
5394
          },
5395
          "end": "(?<=})",
5396
          "patterns": [
5397
            {
5398
              "include": "#type-object"
5399
            }
5400
          ]
5401
        },
5402
        {
5403
          "begin": "[\\&|]",
5404
          "beginCaptures": {
5405
            "0": {
5406
              "name": "keyword.operator.type.js"
5407
            }
5408
          },
5409
          "end": "(?=\\S)"
5410
        },
5411
        {
5412
          "match": "(?<![$_[:alnum:]])(?:(?<=\\.\\.\\.)|(?<!\\.))keyof(?![$_[:alnum:]])(?:(?=\\.\\.\\.)|(?!\\.))",
5413
          "name": "keyword.operator.expression.keyof.js"
5414
        },
5415
        {
5416
          "match": "([:?])",
5417
          "name": "keyword.operator.ternary.js"
5418
        },
5419
        {
5420
          "match": "(?<![$_[:alnum:]])(?:(?<=\\.\\.\\.)|(?<!\\.))import(?=\\s*\\()",
5421
          "name": "keyword.operator.expression.import.js"
5422
        }
5423
      ]
5424
    },
5425
    "type-parameters": {
5426
      "begin": "(<)",
5427
      "beginCaptures": {
5428
        "1": {
5429
          "name": "punctuation.definition.typeparameters.begin.js"
5430
        }
5431
      },
5432
      "end": "(>)",
5433
      "endCaptures": {
5434
        "1": {
5435
          "name": "punctuation.definition.typeparameters.end.js"
5436
        }
5437
      },
5438
      "name": "meta.type.parameters.js",
5439
      "patterns": [
5440
        {
5441
          "include": "#comment"
5442
        },
5443
        {
5444
          "match": "(?<![$_[:alnum:]])(?:(?<=\\.\\.\\.)|(?<!\\.))(extends|in|out|const)(?![$_[:alnum:]])(?:(?=\\.\\.\\.)|(?!\\.))",
5445
          "name": "storage.modifier.js"
5446
        },
5447
        {
5448
          "include": "#type"
5449
        },
5450
        {
5451
          "include": "#punctuation-comma"
5452
        },
5453
        {
5454
          "match": "(=)(?!>)",
5455
          "name": "keyword.operator.assignment.js"
5456
        }
5457
      ]
5458
    },
5459
    "type-paren-or-function-parameters": {
5460
      "begin": "\\(",
5461
      "beginCaptures": {
5462
        "0": {
5463
          "name": "meta.brace.round.js"
5464
        }
5465
      },
5466
      "end": "\\)",
5467
      "endCaptures": {
5468
        "0": {
5469
          "name": "meta.brace.round.js"
5470
        }
5471
      },
5472
      "name": "meta.type.paren.cover.js",
5473
      "patterns": [
5474
        {
5475
          "captures": {
5476
            "1": {
5477
              "name": "storage.modifier.js"
5478
            },
5479
            "2": {
5480
              "name": "keyword.operator.rest.js"
5481
            },
5482
            "3": {
5483
              "name": "entity.name.function.js variable.language.this.js"
5484
            },
5485
            "4": {
5486
              "name": "entity.name.function.js"
5487
            },
5488
            "5": {
5489
              "name": "keyword.operator.optional.js"
5490
            }
5491
          },
5492
          "match": "(?:(?<![$_[:alnum:]])(?:(?<=\\.\\.\\.)|(?<!\\.))(public|private|protected|readonly)\\s+)?(?:(\\.\\.\\.)\\s*)?(?<![:=])(?<![$_[:alnum:]])(?:(?<=\\.\\.\\.)|(?<!\\.))(?:(this)|([$_[:alpha:]][$_[:alnum:]]*))\\s*(\\??)(?=\\s*(:\\s*((<)|(\\(\\s*((\\))|(\\.\\.\\.)|([$_[:alnum:]]+\\s*(([,:=?])|(\\)\\s*=>)))))))|(:\\s*(?<![$_[:alnum:]])(?:(?<=\\.\\.\\.)|(?<!\\.))Function(?![$_[:alnum:]])(?:(?=\\.\\.\\.)|(?!\\.)))|(:\\s*((<\\s*)$|(\\(\\s*((([\\[{]\\s*)?)$|((\\{([^{}]|(\\{([^{}]|\\{[^{}]*})*}))*})\\s*((:\\s*\\{?)$|((\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\([^()]+\\)|\\{[^{}]+})+\\s*)?=\\s*)))|((\\[([^]\\[]|(\\[([^]\\[]|\\[[^]\\[]*])*]))*])\\s*((:\\s*\\[?)$|((\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\([^()]+\\)|\\{[^{}]+})+\\s*)?=\\s*))))))))"
5493
        },
5494
        {
5495
          "captures": {
5496
            "1": {
5497
              "name": "storage.modifier.js"
5498
            },
5499
            "2": {
5500
              "name": "keyword.operator.rest.js"
5501
            },
5502
            "3": {
5503
              "name": "variable.parameter.js variable.language.this.js"
5504
            },
5505
            "4": {
5506
              "name": "variable.parameter.js"
5507
            },
5508
            "5": {
5509
              "name": "keyword.operator.optional.js"
5510
            }
5511
          },
5512
          "match": "(?:(?<![$_[:alnum:]])(?:(?<=\\.\\.\\.)|(?<!\\.))(public|private|protected|readonly)\\s+)?(?:(\\.\\.\\.)\\s*)?(?<![:=])(?<![$_[:alnum:]])(?:(?<=\\.\\.\\.)|(?<!\\.))(?:(this)|([$_[:alpha:]][$_[:alnum:]]*))\\s*(\\??)(?=:)"
5513
        },
5514
        {
5515
          "include": "#type-annotation"
5516
        },
5517
        {
5518
          "match": ",",
5519
          "name": "punctuation.separator.parameter.js"
5520
        },
5521
        {
5522
          "include": "#type"
5523
        }
5524
      ]
5525
    },
5526
    "type-predicate-operator": {
5527
      "patterns": [
5528
        {
5529
          "captures": {
5530
            "1": {
5531
              "name": "keyword.operator.type.asserts.js"
5532
            },
5533
            "2": {
5534
              "name": "variable.parameter.js variable.language.this.js"
5535
            },
5536
            "3": {
5537
              "name": "variable.parameter.js"
5538
            },
5539
            "4": {
5540
              "name": "keyword.operator.expression.is.js"
5541
            }
5542
          },
5543
          "match": "(?<![$_[:alnum:]])(?:(?<=\\.\\.\\.)|(?<!\\.))(?:(asserts)\\s+)?(?!asserts)(?:(this)|([$_[:alpha:]][$_[:alnum:]]*))\\s(is)(?![$_[:alnum:]])(?:(?=\\.\\.\\.)|(?!\\.))"
5544
        },
5545
        {
5546
          "captures": {
5547
            "1": {
5548
              "name": "keyword.operator.type.asserts.js"
5549
            },
5550
            "2": {
5551
              "name": "variable.parameter.js variable.language.this.js"
5552
            },
5553
            "3": {
5554
              "name": "variable.parameter.js"
5555
            }
5556
          },
5557
          "match": "(?<![$_[:alnum:]])(?:(?<=\\.\\.\\.)|(?<!\\.))(asserts)\\s+(?!is)(?:(this)|([$_[:alpha:]][$_[:alnum:]]*))(?![$_[:alnum:]])(?:(?=\\.\\.\\.)|(?!\\.))"
5558
        },
5559
        {
5560
          "match": "(?<![$_[:alnum:]])(?:(?<=\\.\\.\\.)|(?<!\\.))asserts(?![$_[:alnum:]])(?:(?=\\.\\.\\.)|(?!\\.))",
5561
          "name": "keyword.operator.type.asserts.js"
5562
        },
5563
        {
5564
          "match": "(?<![$_[:alnum:]])(?:(?<=\\.\\.\\.)|(?<!\\.))is(?![$_[:alnum:]])(?:(?=\\.\\.\\.)|(?!\\.))",
5565
          "name": "keyword.operator.expression.is.js"
5566
        }
5567
      ]
5568
    },
5569
    "type-primitive": {
5570
      "match": "(?<![$_[:alnum:]])(?:(?<=\\.\\.\\.)|(?<!\\.))(string|number|bigint|boolean|symbol|any|void|never|unknown)(?![$_[:alnum:]])(?:(?=\\.\\.\\.)|(?!\\.))",
5571
      "name": "support.type.primitive.js"
5572
    },
5573
    "type-string": {
5574
      "patterns": [
5575
        {
5576
          "include": "#qstring-single"
5577
        },
5578
        {
5579
          "include": "#qstring-double"
5580
        },
5581
        {
5582
          "include": "#template-type"
5583
        }
5584
      ]
5585
    },
5586
    "type-tuple": {
5587
      "begin": "\\[",
5588
      "beginCaptures": {
5589
        "0": {
5590
          "name": "meta.brace.square.js"
5591
        }
5592
      },
5593
      "end": "]",
5594
      "endCaptures": {
5595
        "0": {
5596
          "name": "meta.brace.square.js"
5597
        }
5598
      },
5599
      "name": "meta.type.tuple.js",
5600
      "patterns": [
5601
        {
5602
          "match": "\\.\\.\\.",
5603
          "name": "keyword.operator.rest.js"
5604
        },
5605
        {
5606
          "captures": {
5607
            "1": {
5608
              "name": "entity.name.label.js"
5609
            },
5610
            "2": {
5611
              "name": "keyword.operator.optional.js"
5612
            },
5613
            "3": {
5614
              "name": "punctuation.separator.label.js"
5615
            }
5616
          },
5617
          "match": "(?<![$_[:alnum:]])(?:(?<=\\.\\.\\.)|(?<!\\.))([$_[:alpha:]][$_[:alnum:]]*)\\s*(\\?)?\\s*(:)"
5618
        },
5619
        {
5620
          "include": "#type"
5621
        },
5622
        {
5623
          "include": "#punctuation-comma"
5624
        }
5625
      ]
5626
    },
5627
    "typeof-operator": {
5628
      "begin": "(?<![$_[:alnum:]])(?:(?<=\\.\\.\\.)|(?<!\\.))typeof(?![$_[:alnum:]])(?:(?=\\.\\.\\.)|(?!\\.))",
5629
      "beginCaptures": {
5630
        "0": {
5631
          "name": "keyword.operator.expression.typeof.js"
5632
        }
5633
      },
5634
      "end": "(?=[]\\&),:;=>?{|}]|(extends\\s+)|$|;|^\\s*$|^\\s*(?:abstract|async|\\bawait\\s+\\busing(?=\\s+(?!in\\b|of\\b(?!\\s*(?:of\\b|=)))[$_[:alpha:]])\\b\\b|break|case|catch|class|const|continue|declare|do|else|enum|export|finally|function|for|goto|if|import|interface|let|module|namespace|switch|return|throw|try|type|\\busing(?=\\s+(?!in\\b|of\\b(?!\\s*(?:of\\b|=)))[$_[:alpha:]])\\b|var|while)\\b)",
5635
      "patterns": [
5636
        {
5637
          "include": "#type-arguments"
5638
        },
5639
        {
5640
          "include": "#expression"
5641
        }
5642
      ]
5643
    },
5644
    "undefined-literal": {
5645
      "match": "(?<![$_[:alnum:]])(?:(?<=\\.\\.\\.)|(?<!\\.))undefined(?![$_[:alnum:]])(?:(?=\\.\\.\\.)|(?!\\.))",
5646
      "name": "constant.language.undefined.js"
5647
    },
5648
    "var-expr": {
5649
      "patterns": [
5650
        {
5651
          "begin": "(?=(?<![$_[:alnum:]])(?:(?<=\\.\\.\\.)|(?<!\\.))(?:\\b(export)\\s+)?(?:\\b(declare)\\s+)?\\b(var|let)(?![$_[:alnum:]])(?:(?=\\.\\.\\.)|(?!\\.)))",
5652
          "end": "(?!(?<![$_[:alnum:]])(?:(?<=\\.\\.\\.)|(?<!\\.))(?:\\b(export)\\s+)?(?:\\b(declare)\\s+)?\\b(var|let)(?![$_[:alnum:]])(?:(?=\\.\\.\\.)|(?!\\.)))((?=^|[;}]|((?<![$_[:alnum:]])(?:(?<=\\.\\.\\.)|(?<!\\.))(of|in)\\s+)|;|^\\s*$|^\\s*(?:abstract|async|\\bawait\\s+\\busing(?=\\s+(?!in\\b|of\\b(?!\\s*(?:of\\b|=)))[$_[:alpha:]])\\b\\b|break|case|catch|class|const|continue|declare|do|else|enum|export|finally|function|for|goto|if|import|interface|let|module|namespace|switch|return|throw|try|type|\\busing(?=\\s+(?!in\\b|of\\b(?!\\s*(?:of\\b|=)))[$_[:alpha:]])\\b|var|while)\\b)|((?<!^let|[^$._[:alnum:]]let|^var|[^$._[:alnum:]]var)(?=\\s*$)))",
5653
          "name": "meta.var.expr.js",
5654
          "patterns": [
5655
            {
5656
              "begin": "(?<![$_[:alnum:]])(?:(?<=\\.\\.\\.)|(?<!\\.))(?:\\b(export)\\s+)?(?:\\b(declare)\\s+)?\\b(var|let)(?![$_[:alnum:]])(?:(?=\\.\\.\\.)|(?!\\.))\\s*",
5657
              "beginCaptures": {
5658
                "1": {
5659
                  "name": "keyword.control.export.js"
5660
                },
5661
                "2": {
5662
                  "name": "storage.modifier.js"
5663
                },
5664
                "3": {
5665
                  "name": "storage.type.js"
5666
                }
5667
              },
5668
              "end": "(?=\\S)"
5669
            },
5670
            {
5671
              "include": "#destructuring-variable"
5672
            },
5673
            {
5674
              "include": "#var-single-variable"
5675
            },
5676
            {
5677
              "include": "#variable-initializer"
5678
            },
5679
            {
5680
              "include": "#comment"
5681
            },
5682
            {
5683
              "begin": "(,)\\s*(?=$|//)",
5684
              "beginCaptures": {
5685
                "1": {
5686
                  "name": "punctuation.separator.comma.js"
5687
                }
5688
              },
5689
              "end": "(?<!,)(((?=[;=}]|((?<![$_[:alnum:]])(?:(?<=\\.\\.\\.)|(?<!\\.))(of|in)\\s+)|^\\s*$))|((?<=\\S)(?=\\s*$)))",
5690
              "patterns": [
5691
                {
5692
                  "include": "#single-line-comment-consuming-line-ending"
5693
                },
5694
                {
5695
                  "include": "#comment"
5696
                },
5697
                {
5698
                  "include": "#destructuring-variable"
5699
                },
5700
                {
5701
                  "include": "#var-single-variable"
5702
                },
5703
                {
5704
                  "include": "#punctuation-comma"
5705
                }
5706
              ]
5707
            },
5708
            {
5709
              "include": "#punctuation-comma"
5710
            }
5711
          ]
5712
        },
5713
        {
5714
          "begin": "(?=(?<![$_[:alnum:]])(?:(?<=\\.\\.\\.)|(?<!\\.))(?:\\b(export)\\s+)?(?:\\b(declare)\\s+)?\\b(const(?!\\s+enum\\b))(?![$_[:alnum:]])(?:(?=\\.\\.\\.)|(?!\\.)))",
5715
          "beginCaptures": {
5716
            "1": {
5717
              "name": "keyword.control.export.js"
5718
            },
5719
            "2": {
5720
              "name": "storage.modifier.js"
5721
            },
5722
            "3": {
5723
              "name": "storage.type.js"
5724
            }
5725
          },
5726
          "end": "(?!(?<![$_[:alnum:]])(?:(?<=\\.\\.\\.)|(?<!\\.))(?:\\b(export)\\s+)?(?:\\b(declare)\\s+)?\\b(const(?!\\s+enum\\b))(?![$_[:alnum:]])(?:(?=\\.\\.\\.)|(?!\\.)))((?=^|[;}]|((?<![$_[:alnum:]])(?:(?<=\\.\\.\\.)|(?<!\\.))(of|in)\\s+)|;|^\\s*$|^\\s*(?:abstract|async|\\bawait\\s+\\busing(?=\\s+(?!in\\b|of\\b(?!\\s*(?:of\\b|=)))[$_[:alpha:]])\\b\\b|break|case|catch|class|const|continue|declare|do|else|enum|export|finally|function|for|goto|if|import|interface|let|module|namespace|switch|return|throw|try|type|\\busing(?=\\s+(?!in\\b|of\\b(?!\\s*(?:of\\b|=)))[$_[:alpha:]])\\b|var|while)\\b)|((?<!(?:^|[^$._[:alnum:]])const)(?=\\s*$)))",
5727
          "name": "meta.var.expr.js",
5728
          "patterns": [
5729
            {
5730
              "begin": "(?<![$_[:alnum:]])(?:(?<=\\.\\.\\.)|(?<!\\.))(?:\\b(export)\\s+)?(?:\\b(declare)\\s+)?\\b(const(?!\\s+enum\\b))(?![$_[:alnum:]])(?:(?=\\.\\.\\.)|(?!\\.))\\s*",
5731
              "beginCaptures": {
5732
                "1": {
5733
                  "name": "keyword.control.export.js"
5734
                },
5735
                "2": {
5736
                  "name": "storage.modifier.js"
5737
                },
5738
                "3": {
5739
                  "name": "storage.type.js"
5740
                }
5741
              },
5742
              "end": "(?=\\S)"
5743
            },
5744
            {
5745
              "include": "#destructuring-const"
5746
            },
5747
            {
5748
              "include": "#var-single-const"
5749
            },
5750
            {
5751
              "include": "#variable-initializer"
5752
            },
5753
            {
5754
              "include": "#comment"
5755
            },
5756
            {
5757
              "begin": "(,)\\s*(?=$|//)",
5758
              "beginCaptures": {
5759
                "1": {
5760
                  "name": "punctuation.separator.comma.js"
5761
                }
5762
              },
5763
              "end": "(?<!,)(((?=[;=}]|((?<![$_[:alnum:]])(?:(?<=\\.\\.\\.)|(?<!\\.))(of|in)\\s+)|^\\s*$))|((?<=\\S)(?=\\s*$)))",
5764
              "patterns": [
5765
                {
5766
                  "include": "#single-line-comment-consuming-line-ending"
5767
                },
5768
                {
5769
                  "include": "#comment"
5770
                },
5771
                {
5772
                  "include": "#destructuring-const"
5773
                },
5774
                {
5775
                  "include": "#var-single-const"
5776
                },
5777
                {
5778
                  "include": "#punctuation-comma"
5779
                }
5780
              ]
5781
            },
5782
            {
5783
              "include": "#punctuation-comma"
5784
            }
5785
          ]
5786
        },
5787
        {
5788
          "begin": "(?=(?<![$_[:alnum:]])(?:(?<=\\.\\.\\.)|(?<!\\.))(?:\\b(export)\\s+)?(?:\\b(declare)\\s+)?\\b\\b(using(?=\\s+(?!in\\b|of\\b(?!\\s*(?:of\\b|=)))[$_[:alpha:]])|await\\s+\\busing(?=\\s+(?!in\\b|of\\b(?!\\s*(?:of\\b|=)))[$_[:alpha:]])\\b)\\b(?![$_[:alnum:]])(?:(?=\\.\\.\\.)|(?!\\.)))",
5789
          "beginCaptures": {
5790
            "1": {
5791
              "name": "keyword.control.export.js"
5792
            },
5793
            "2": {
5794
              "name": "storage.modifier.js"
5795
            },
5796
            "3": {
5797
              "name": "storage.type.js"
5798
            }
5799
          },
5800
          "end": "(?!(?<![$_[:alnum:]])(?:(?<=\\.\\.\\.)|(?<!\\.))(?:\\b(export)\\s+)?(?:\\b(declare)\\s+)?\\b\\b(using(?=\\s+(?!in\\b|of\\b(?!\\s*(?:of\\b|=)))[$_[:alpha:]])|await\\s+\\busing(?=\\s+(?!in\\b|of\\b(?!\\s*(?:of\\b|=)))[$_[:alpha:]])\\b)\\b(?![$_[:alnum:]])(?:(?=\\.\\.\\.)|(?!\\.)))((?=[;}]|((?<![$_[:alnum:]])(?:(?<=\\.\\.\\.)|(?<!\\.))(of|in)\\s+)|;|^\\s*$|^\\s*(?:abstract|async|\\bawait\\s+\\busing(?=\\s+(?!in\\b|of\\b(?!\\s*(?:of\\b|=)))[$_[:alpha:]])\\b\\b|break|case|catch|class|const|continue|declare|do|else|enum|export|finally|function|for|goto|if|import|interface|let|module|namespace|switch|return|throw|try|type|\\busing(?=\\s+(?!in\\b|of\\b(?!\\s*(?:of\\b|=)))[$_[:alpha:]])\\b|var|while)\\b)|((?<!(?:^|[^$._[:alnum:]]|^await\\s+|[^$._[:alnum:]]await\\s+)using)(?=\\s*$)))",
5801
          "name": "meta.var.expr.js",
5802
          "patterns": [
5803
            {
5804
              "begin": "(?<![$_[:alnum:]])(?:(?<=\\.\\.\\.)|(?<!\\.))(?:\\b(export)\\s+)?(?:\\b(declare)\\s+)?\\b\\b(using(?=\\s+(?!in\\b|of\\b(?!\\s*(?:of\\b|=)))[$_[:alpha:]])|await\\s+\\busing(?=\\s+(?!in\\b|of\\b(?!\\s*(?:of\\b|=)))[$_[:alpha:]])\\b)\\b(?![$_[:alnum:]])(?:(?=\\.\\.\\.)|(?!\\.))\\s*",
5805
              "beginCaptures": {
5806
                "1": {
5807
                  "name": "keyword.control.export.js"
5808
                },
5809
                "2": {
5810
                  "name": "storage.modifier.js"
5811
                },
5812
                "3": {
5813
                  "name": "storage.type.js"
5814
                }
5815
              },
5816
              "end": "(?=\\S)"
5817
            },
5818
            {
5819
              "include": "#var-single-const"
5820
            },
5821
            {
5822
              "include": "#variable-initializer"
5823
            },
5824
            {
5825
              "include": "#comment"
5826
            },
5827
            {
5828
              "begin": "(,)\\s*((?!\\S)|(?=//))",
5829
              "beginCaptures": {
5830
                "1": {
5831
                  "name": "punctuation.separator.comma.js"
5832
                }
5833
              },
5834
              "end": "(?<!,)(((?=[;=}]|((?<![$_[:alnum:]])(?:(?<=\\.\\.\\.)|(?<!\\.))(of|in)\\s+)|^\\s*$))|((?<=\\S)(?=\\s*$)))",
5835
              "patterns": [
5836
                {
5837
                  "include": "#single-line-comment-consuming-line-ending"
5838
                },
5839
                {
5840
                  "include": "#comment"
5841
                },
5842
                {
5843
                  "include": "#var-single-const"
5844
                },
5845
                {
5846
                  "include": "#punctuation-comma"
5847
                }
5848
              ]
5849
            },
5850
            {
5851
              "include": "#punctuation-comma"
5852
            }
5853
          ]
5854
        }
5855
      ]
5856
    },
5857
    "var-single-const": {
5858
      "patterns": [
5859
        {
5860
          "begin": "([$_[:alpha:]][$_[:alnum:]]*)(?=\\s*(=\\s*(((async\\s+)?((function\\s*[(*<])|(function\\s+)|([$_[:alpha:]][$_[:alnum:]]*\\s*=>)))|((async\\s*)?(((<\\s*)$|(\\(\\s*((([\\[{]\\s*)?)$|((\\{([^{}]|(\\{([^{}]|\\{[^{}]*})*}))*})\\s*((:\\s*\\{?)$|((\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\([^()]+\\)|\\{[^{}]+})+\\s*)?=\\s*)))|((\\[([^]\\[]|(\\[([^]\\[]|\\[[^]\\[]*])*]))*])\\s*((:\\s*\\[?)$|((\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\([^()]+\\)|\\{[^{}]+})+\\s*)?=\\s*))))))|((<\\s*(((const\\s+)?[$_[:alpha:]])|(\\{([^{}]|(\\{([^{}]|\\{[^{}]*})*}))*})|(\\(([^()]|(\\(([^()]|\\([^()]*\\))*\\)))*\\))|(\\[([^]\\[]|(\\[([^]\\[]|\\[[^]\\[]*])*]))*]))([^<=>]|=[^<]|<\\s*(((const\\s+)?[$_[:alpha:]])|(\\{([^{}]|(\\{([^{}]|\\{[^{}]*})*}))*})|(\\(([^()]|(\\(([^()]|\\([^()]*\\))*\\)))*\\))|(\\[([^]\\[]|(\\[([^]\\[]|\\[[^]\\[]*])*]))*]))([^<=>]|=[^<]|<\\s*(((const\\s+)?[$_[:alpha:]])|(\\{([^{}]|(\\{([^{}]|\\{[^{}]*})*}))*})|(\\(([^()]|(\\(([^()]|\\([^()]*\\))*\\)))*\\))|(\\[([^]\\[]|(\\[([^]\\[]|\\[[^]\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\s*)?\\(\\s*(/\\*([^*]|(\\*[^/]))*\\*/\\s*)*((\\)\\s*:)|((\\.\\.\\.\\s*)?[$_[:alpha:]][$_[:alnum:]]*\\s*:)))|(<\\s*[$_[:alpha:]][$_[:alnum:]]*\\s+extends\\s*[^=>])|((<\\s*(((const\\s+)?[$_[:alpha:]])|(\\{([^{}]|(\\{([^{}]|\\{[^{}]*})*}))*})|(\\(([^()]|(\\(([^()]|\\([^()]*\\))*\\)))*\\))|(\\[([^]\\[]|(\\[([^]\\[]|\\[[^]\\[]*])*]))*]))([^<=>]|=[^<]|<\\s*(((const\\s+)?[$_[:alpha:]])|(\\{([^{}]|(\\{([^{}]|\\{[^{}]*})*}))*})|(\\(([^()]|(\\(([^()]|\\([^()]*\\))*\\)))*\\))|(\\[([^]\\[]|(\\[([^]\\[]|\\[[^]\\[]*])*]))*]))([^<=>]|=[^<]|<\\s*(((const\\s+)?[$_[:alpha:]])|(\\{([^{}]|(\\{([^{}]|\\{[^{}]*})*}))*})|(\\(([^()]|(\\(([^()]|\\([^()]*\\))*\\)))*\\))|(\\[([^]\\[]|(\\[([^]\\[]|\\[[^]\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\s*)?\\(\\s*(/\\*([^*]|(\\*[^/]))*\\*/\\s*)*(([$_[:alpha:]]|(\\{([^{}]|(\\{([^{}]|\\{[^{}]*})*}))*})|(\\[([^]\\[]|(\\[([^]\\[]|\\[[^]\\[]*])*]))*])|(\\.\\.\\.\\s*[$_[:alpha:]]))([^\"'()`]|(\\(([^()]|(\\(([^()]|\\([^()]*\\))*\\)))*\\))|('([^'\\\\]|\\\\.)*')|(\"([^\"\\\\]|\\\\.)*\")|(`([^\\\\`]|\\\\.)*`))*)?\\)(\\s*:\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\([^()]+\\)|\\{[^{}]+})+)?\\s*=>)))))|(:\\s*((<)|(\\(\\s*((\\))|(\\.\\.\\.)|([$_[:alnum:]]+\\s*(([,:=?])|(\\)\\s*=>)))))))|(:\\s*(?<![$_[:alnum:]])(?:(?<=\\.\\.\\.)|(?<!\\.))Function(?![$_[:alnum:]])(?:(?=\\.\\.\\.)|(?!\\.)))|(:\\s*((<\\s*)$|(\\(\\s*((([\\[{]\\s*)?)$|((\\{([^{}]|(\\{([^{}]|\\{[^{}]*})*}))*})\\s*((:\\s*\\{?)$|((\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\([^()]+\\)|\\{[^{}]+})+\\s*)?=\\s*)))|((\\[([^]\\[]|(\\[([^]\\[]|\\[[^]\\[]*])*]))*])\\s*((:\\s*\\[?)$|((\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\([^()]+\\)|\\{[^{}]+})+\\s*)?=\\s*)))))))|(:\\s*(=>|(\\(([^()]|(\\(([^()]|\\([^()]*\\))*\\)))*\\))|(<[^<>]*>)|[^(),<=>])+=\\s*(((async\\s+)?((function\\s*[(*<])|(function\\s+)|([$_[:alpha:]][$_[:alnum:]]*\\s*=>)))|((async\\s*)?(((<\\s*)$|(\\(\\s*((([\\[{]\\s*)?)$|((\\{([^{}]|(\\{([^{}]|\\{[^{}]*})*}))*})\\s*((:\\s*\\{?)$|((\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\([^()]+\\)|\\{[^{}]+})+\\s*)?=\\s*)))|((\\[([^]\\[]|(\\[([^]\\[]|\\[[^]\\[]*])*]))*])\\s*((:\\s*\\[?)$|((\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\([^()]+\\)|\\{[^{}]+})+\\s*)?=\\s*))))))|((<\\s*(((const\\s+)?[$_[:alpha:]])|(\\{([^{}]|(\\{([^{}]|\\{[^{}]*})*}))*})|(\\(([^()]|(\\(([^()]|\\([^()]*\\))*\\)))*\\))|(\\[([^]\\[]|(\\[([^]\\[]|\\[[^]\\[]*])*]))*]))([^<=>]|=[^<]|<\\s*(((const\\s+)?[$_[:alpha:]])|(\\{([^{}]|(\\{([^{}]|\\{[^{}]*})*}))*})|(\\(([^()]|(\\(([^()]|\\([^()]*\\))*\\)))*\\))|(\\[([^]\\[]|(\\[([^]\\[]|\\[[^]\\[]*])*]))*]))([^<=>]|=[^<]|<\\s*(((const\\s+)?[$_[:alpha:]])|(\\{([^{}]|(\\{([^{}]|\\{[^{}]*})*}))*})|(\\(([^()]|(\\(([^()]|\\([^()]*\\))*\\)))*\\))|(\\[([^]\\[]|(\\[([^]\\[]|\\[[^]\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\s*)?\\(\\s*(/\\*([^*]|(\\*[^/]))*\\*/\\s*)*((\\)\\s*:)|((\\.\\.\\.\\s*)?[$_[:alpha:]][$_[:alnum:]]*\\s*:)))|(<\\s*[$_[:alpha:]][$_[:alnum:]]*\\s+extends\\s*[^=>])|((<\\s*(((const\\s+)?[$_[:alpha:]])|(\\{([^{}]|(\\{([^{}]|\\{[^{}]*})*}))*})|(\\(([^()]|(\\(([^()]|\\([^()]*\\))*\\)))*\\))|(\\[([^]\\[]|(\\[([^]\\[]|\\[[^]\\[]*])*]))*]))([^<=>]|=[^<]|<\\s*(((const\\s+)?[$_[:alpha:]])|(\\{([^{}]|(\\{([^{}]|\\{[^{}]*})*}))*})|(\\(([^()]|(\\(([^()]|\\([^()]*\\))*\\)))*\\))|(\\[([^]\\[]|(\\[([^]\\[]|\\[[^]\\[]*])*]))*]))([^<=>]|=[^<]|<\\s*(((const\\s+)?[$_[:alpha:]])|(\\{([^{}]|(\\{([^{}]|\\{[^{}]*})*}))*})|(\\(([^()]|(\\(([^()]|\\([^()]*\\))*\\)))*\\))|(\\[([^]\\[]|(\\[([^]\\[]|\\[[^]\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\s*)?\\(\\s*(/\\*([^*]|(\\*[^/]))*\\*/\\s*)*(([$_[:alpha:]]|(\\{([^{}]|(\\{([^{}]|\\{[^{}]*})*}))*})|(\\[([^]\\[]|(\\[([^]\\[]|\\[[^]\\[]*])*]))*])|(\\.\\.\\.\\s*[$_[:alpha:]]))([^\"'()`]|(\\(([^()]|(\\(([^()]|\\([^()]*\\))*\\)))*\\))|('([^'\\\\]|\\\\.)*')|(\"([^\"\\\\]|\\\\.)*\")|(`([^\\\\`]|\\\\.)*`))*)?\\)(\\s*:\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\([^()]+\\)|\\{[^{}]+})+)?\\s*=>))))))",
5861
          "beginCaptures": {
5862
            "1": {
5863
              "name": "meta.definition.variable.js variable.other.constant.js entity.name.function.js"
5864
            }
5865
          },
5866
          "end": "(?=$|^|[,;=}]|((?<![$_[:alnum:]])(?:(?<=\\.\\.\\.)|(?<!\\.))(of|in)\\s+)|(;|^\\s*$|^\\s*(?:abstract|async|\\bawait\\s+\\busing(?=\\s+(?!in\\b|of\\b(?!\\s*(?:of\\b|=)))[$_[:alpha:]])\\b\\b|break|case|catch|class|const|continue|declare|do|else|enum|export|finally|function|for|goto|if|import|interface|let|module|namespace|switch|return|throw|try|type|\\busing(?=\\s+(?!in\\b|of\\b(?!\\s*(?:of\\b|=)))[$_[:alpha:]])\\b|var|while)\\b))",
5867
          "name": "meta.var-single-variable.expr.js",
5868
          "patterns": [
5869
            {
5870
              "include": "#var-single-variable-type-annotation"
5871
            }
5872
          ]
5873
        },
5874
        {
5875
          "begin": "([$_[:alpha:]][$_[:alnum:]]*)",
5876
          "beginCaptures": {
5877
            "1": {
5878
              "name": "meta.definition.variable.js variable.other.constant.js"
5879
            }
5880
          },
5881
          "end": "(?=$|^|[,;=}]|((?<![$_[:alnum:]])(?:(?<=\\.\\.\\.)|(?<!\\.))(of|in)\\s+)|(;|^\\s*$|^\\s*(?:abstract|async|\\bawait\\s+\\busing(?=\\s+(?!in\\b|of\\b(?!\\s*(?:of\\b|=)))[$_[:alpha:]])\\b\\b|break|case|catch|class|const|continue|declare|do|else|enum|export|finally|function|for|goto|if|import|interface|let|module|namespace|switch|return|throw|try|type|\\busing(?=\\s+(?!in\\b|of\\b(?!\\s*(?:of\\b|=)))[$_[:alpha:]])\\b|var|while)\\b))",
5882
          "name": "meta.var-single-variable.expr.js",
5883
          "patterns": [
5884
            {
5885
              "include": "#var-single-variable-type-annotation"
5886
            }
5887
          ]
5888
        }
5889
      ]
5890
    },
5891
    "var-single-variable": {
5892
      "patterns": [
5893
        {
5894
          "begin": "([$_[:alpha:]][$_[:alnum:]]*)(!)?(?=\\s*(=\\s*(((async\\s+)?((function\\s*[(*<])|(function\\s+)|([$_[:alpha:]][$_[:alnum:]]*\\s*=>)))|((async\\s*)?(((<\\s*)$|(\\(\\s*((([\\[{]\\s*)?)$|((\\{([^{}]|(\\{([^{}]|\\{[^{}]*})*}))*})\\s*((:\\s*\\{?)$|((\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\([^()]+\\)|\\{[^{}]+})+\\s*)?=\\s*)))|((\\[([^]\\[]|(\\[([^]\\[]|\\[[^]\\[]*])*]))*])\\s*((:\\s*\\[?)$|((\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\([^()]+\\)|\\{[^{}]+})+\\s*)?=\\s*))))))|((<\\s*(((const\\s+)?[$_[:alpha:]])|(\\{([^{}]|(\\{([^{}]|\\{[^{}]*})*}))*})|(\\(([^()]|(\\(([^()]|\\([^()]*\\))*\\)))*\\))|(\\[([^]\\[]|(\\[([^]\\[]|\\[[^]\\[]*])*]))*]))([^<=>]|=[^<]|<\\s*(((const\\s+)?[$_[:alpha:]])|(\\{([^{}]|(\\{([^{}]|\\{[^{}]*})*}))*})|(\\(([^()]|(\\(([^()]|\\([^()]*\\))*\\)))*\\))|(\\[([^]\\[]|(\\[([^]\\[]|\\[[^]\\[]*])*]))*]))([^<=>]|=[^<]|<\\s*(((const\\s+)?[$_[:alpha:]])|(\\{([^{}]|(\\{([^{}]|\\{[^{}]*})*}))*})|(\\(([^()]|(\\(([^()]|\\([^()]*\\))*\\)))*\\))|(\\[([^]\\[]|(\\[([^]\\[]|\\[[^]\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\s*)?\\(\\s*(/\\*([^*]|(\\*[^/]))*\\*/\\s*)*((\\)\\s*:)|((\\.\\.\\.\\s*)?[$_[:alpha:]][$_[:alnum:]]*\\s*:)))|(<\\s*[$_[:alpha:]][$_[:alnum:]]*\\s+extends\\s*[^=>])|((<\\s*(((const\\s+)?[$_[:alpha:]])|(\\{([^{}]|(\\{([^{}]|\\{[^{}]*})*}))*})|(\\(([^()]|(\\(([^()]|\\([^()]*\\))*\\)))*\\))|(\\[([^]\\[]|(\\[([^]\\[]|\\[[^]\\[]*])*]))*]))([^<=>]|=[^<]|<\\s*(((const\\s+)?[$_[:alpha:]])|(\\{([^{}]|(\\{([^{}]|\\{[^{}]*})*}))*})|(\\(([^()]|(\\(([^()]|\\([^()]*\\))*\\)))*\\))|(\\[([^]\\[]|(\\[([^]\\[]|\\[[^]\\[]*])*]))*]))([^<=>]|=[^<]|<\\s*(((const\\s+)?[$_[:alpha:]])|(\\{([^{}]|(\\{([^{}]|\\{[^{}]*})*}))*})|(\\(([^()]|(\\(([^()]|\\([^()]*\\))*\\)))*\\))|(\\[([^]\\[]|(\\[([^]\\[]|\\[[^]\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\s*)?\\(\\s*(/\\*([^*]|(\\*[^/]))*\\*/\\s*)*(([$_[:alpha:]]|(\\{([^{}]|(\\{([^{}]|\\{[^{}]*})*}))*})|(\\[([^]\\[]|(\\[([^]\\[]|\\[[^]\\[]*])*]))*])|(\\.\\.\\.\\s*[$_[:alpha:]]))([^\"'()`]|(\\(([^()]|(\\(([^()]|\\([^()]*\\))*\\)))*\\))|('([^'\\\\]|\\\\.)*')|(\"([^\"\\\\]|\\\\.)*\")|(`([^\\\\`]|\\\\.)*`))*)?\\)(\\s*:\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\([^()]+\\)|\\{[^{}]+})+)?\\s*=>)))))|(:\\s*((<)|(\\(\\s*((\\))|(\\.\\.\\.)|([$_[:alnum:]]+\\s*(([,:=?])|(\\)\\s*=>)))))))|(:\\s*(?<![$_[:alnum:]])(?:(?<=\\.\\.\\.)|(?<!\\.))Function(?![$_[:alnum:]])(?:(?=\\.\\.\\.)|(?!\\.)))|(:\\s*((<\\s*)$|(\\(\\s*((([\\[{]\\s*)?)$|((\\{([^{}]|(\\{([^{}]|\\{[^{}]*})*}))*})\\s*((:\\s*\\{?)$|((\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\([^()]+\\)|\\{[^{}]+})+\\s*)?=\\s*)))|((\\[([^]\\[]|(\\[([^]\\[]|\\[[^]\\[]*])*]))*])\\s*((:\\s*\\[?)$|((\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\([^()]+\\)|\\{[^{}]+})+\\s*)?=\\s*)))))))|(:\\s*(=>|(\\(([^()]|(\\(([^()]|\\([^()]*\\))*\\)))*\\))|(<[^<>]*>)|[^(),<=>])+=\\s*(((async\\s+)?((function\\s*[(*<])|(function\\s+)|([$_[:alpha:]][$_[:alnum:]]*\\s*=>)))|((async\\s*)?(((<\\s*)$|(\\(\\s*((([\\[{]\\s*)?)$|((\\{([^{}]|(\\{([^{}]|\\{[^{}]*})*}))*})\\s*((:\\s*\\{?)$|((\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\([^()]+\\)|\\{[^{}]+})+\\s*)?=\\s*)))|((\\[([^]\\[]|(\\[([^]\\[]|\\[[^]\\[]*])*]))*])\\s*((:\\s*\\[?)$|((\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\([^()]+\\)|\\{[^{}]+})+\\s*)?=\\s*))))))|((<\\s*(((const\\s+)?[$_[:alpha:]])|(\\{([^{}]|(\\{([^{}]|\\{[^{}]*})*}))*})|(\\(([^()]|(\\(([^()]|\\([^()]*\\))*\\)))*\\))|(\\[([^]\\[]|(\\[([^]\\[]|\\[[^]\\[]*])*]))*]))([^<=>]|=[^<]|<\\s*(((const\\s+)?[$_[:alpha:]])|(\\{([^{}]|(\\{([^{}]|\\{[^{}]*})*}))*})|(\\(([^()]|(\\(([^()]|\\([^()]*\\))*\\)))*\\))|(\\[([^]\\[]|(\\[([^]\\[]|\\[[^]\\[]*])*]))*]))([^<=>]|=[^<]|<\\s*(((const\\s+)?[$_[:alpha:]])|(\\{([^{}]|(\\{([^{}]|\\{[^{}]*})*}))*})|(\\(([^()]|(\\(([^()]|\\([^()]*\\))*\\)))*\\))|(\\[([^]\\[]|(\\[([^]\\[]|\\[[^]\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\s*)?\\(\\s*(/\\*([^*]|(\\*[^/]))*\\*/\\s*)*((\\)\\s*:)|((\\.\\.\\.\\s*)?[$_[:alpha:]][$_[:alnum:]]*\\s*:)))|(<\\s*[$_[:alpha:]][$_[:alnum:]]*\\s+extends\\s*[^=>])|((<\\s*(((const\\s+)?[$_[:alpha:]])|(\\{([^{}]|(\\{([^{}]|\\{[^{}]*})*}))*})|(\\(([^()]|(\\(([^()]|\\([^()]*\\))*\\)))*\\))|(\\[([^]\\[]|(\\[([^]\\[]|\\[[^]\\[]*])*]))*]))([^<=>]|=[^<]|<\\s*(((const\\s+)?[$_[:alpha:]])|(\\{([^{}]|(\\{([^{}]|\\{[^{}]*})*}))*})|(\\(([^()]|(\\(([^()]|\\([^()]*\\))*\\)))*\\))|(\\[([^]\\[]|(\\[([^]\\[]|\\[[^]\\[]*])*]))*]))([^<=>]|=[^<]|<\\s*(((const\\s+)?[$_[:alpha:]])|(\\{([^{}]|(\\{([^{}]|\\{[^{}]*})*}))*})|(\\(([^()]|(\\(([^()]|\\([^()]*\\))*\\)))*\\))|(\\[([^]\\[]|(\\[([^]\\[]|\\[[^]\\[]*])*]))*]))([^<=>]|=[^<])*>)*>)*>\\s*)?\\(\\s*(/\\*([^*]|(\\*[^/]))*\\*/\\s*)*(([$_[:alpha:]]|(\\{([^{}]|(\\{([^{}]|\\{[^{}]*})*}))*})|(\\[([^]\\[]|(\\[([^]\\[]|\\[[^]\\[]*])*]))*])|(\\.\\.\\.\\s*[$_[:alpha:]]))([^\"'()`]|(\\(([^()]|(\\(([^()]|\\([^()]*\\))*\\)))*\\))|('([^'\\\\]|\\\\.)*')|(\"([^\"\\\\]|\\\\.)*\")|(`([^\\\\`]|\\\\.)*`))*)?\\)(\\s*:\\s*([^()<>{}]|<([^<>]|<([^<>]|<[^<>]+>)+>)+>|\\([^()]+\\)|\\{[^{}]+})+)?\\s*=>))))))",
5895
          "beginCaptures": {
5896
            "1": {
5897
              "name": "meta.definition.variable.js entity.name.function.js"
5898
            },
5899
            "2": {
5900
              "name": "keyword.operator.definiteassignment.js"
5901
            }
5902
          },
5903
          "end": "(?=$|^|[,;=}]|((?<![$_[:alnum:]])(?:(?<=\\.\\.\\.)|(?<!\\.))(of|in)\\s+)|(;|^\\s*$|^\\s*(?:abstract|async|\\bawait\\s+\\busing(?=\\s+(?!in\\b|of\\b(?!\\s*(?:of\\b|=)))[$_[:alpha:]])\\b\\b|break|case|catch|class|const|continue|declare|do|else|enum|export|finally|function|for|goto|if|import|interface|let|module|namespace|switch|return|throw|try|type|\\busing(?=\\s+(?!in\\b|of\\b(?!\\s*(?:of\\b|=)))[$_[:alpha:]])\\b|var|while)\\b))",
5904
          "name": "meta.var-single-variable.expr.js",
5905
          "patterns": [
5906
            {
5907
              "include": "#var-single-variable-type-annotation"
5908
            }
5909
          ]
5910
        },
5911
        {
5912
          "begin": "(\\p{upper}[$_\\d[:upper:]]*)(?![$_[:alnum:]])(!)?",
5913
          "beginCaptures": {
5914
            "1": {
5915
              "name": "meta.definition.variable.js variable.other.constant.js"
5916
            },
5917
            "2": {
5918
              "name": "keyword.operator.definiteassignment.js"
5919
            }
5920
          },
5921
          "end": "(?=$|^|[,;=}]|((?<![$_[:alnum:]])(?:(?<=\\.\\.\\.)|(?<!\\.))(of|in)\\s+)|(;|^\\s*$|^\\s*(?:abstract|async|\\bawait\\s+\\busing(?=\\s+(?!in\\b|of\\b(?!\\s*(?:of\\b|=)))[$_[:alpha:]])\\b\\b|break|case|catch|class|const|continue|declare|do|else|enum|export|finally|function|for|goto|if|import|interface|let|module|namespace|switch|return|throw|try|type|\\busing(?=\\s+(?!in\\b|of\\b(?!\\s*(?:of\\b|=)))[$_[:alpha:]])\\b|var|while)\\b))",
5922
          "name": "meta.var-single-variable.expr.js",
5923
          "patterns": [
5924
            {
5925
              "include": "#var-single-variable-type-annotation"
5926
            }
5927
          ]
5928
        },
5929
        {
5930
          "begin": "([$_[:alpha:]][$_[:alnum:]]*)(!)?",
5931
          "beginCaptures": {
5932
            "1": {
5933
              "name": "meta.definition.variable.js variable.other.readwrite.js"
5934
            },
5935
            "2": {
5936
              "name": "keyword.operator.definiteassignment.js"
5937
            }
5938
          },
5939
          "end": "(?=$|^|[,;=}]|((?<![$_[:alnum:]])(?:(?<=\\.\\.\\.)|(?<!\\.))(of|in)\\s+)|(;|^\\s*$|^\\s*(?:abstract|async|\\bawait\\s+\\busing(?=\\s+(?!in\\b|of\\b(?!\\s*(?:of\\b|=)))[$_[:alpha:]])\\b\\b|break|case|catch|class|const|continue|declare|do|else|enum|export|finally|function|for|goto|if|import|interface|let|module|namespace|switch|return|throw|try|type|\\busing(?=\\s+(?!in\\b|of\\b(?!\\s*(?:of\\b|=)))[$_[:alpha:]])\\b|var|while)\\b))",
5940
          "name": "meta.var-single-variable.expr.js",
5941
          "patterns": [
5942
            {
5943
              "include": "#var-single-variable-type-annotation"
5944
            }
5945
          ]
5946
        }
5947
      ]
5948
    },
5949
    "var-single-variable-type-annotation": {
5950
      "patterns": [
5951
        {
5952
          "include": "#type-annotation"
5953
        },
5954
        {
5955
          "include": "#string"
5956
        },
5957
        {
5958
          "include": "#comment"
5959
        }
5960
      ]
5961
    },
5962
    "variable-initializer": {
5963
      "patterns": [
5964
        {
5965
          "begin": "(?<![!=])(=)(?!=)(?=\\s*\\S)(?!\\s*.*=>\\s*$)",
5966
          "beginCaptures": {
5967
            "1": {
5968
              "name": "keyword.operator.assignment.js"
5969
            }
5970
          },
5971
          "end": "(?=$|^|[]),;}]|((?<![$_[:alnum:]])(?:(?<=\\.\\.\\.)|(?<!\\.))(of|in)\\s+))",
5972
          "patterns": [
5973
            {
5974
              "include": "#expression"
5975
            }
5976
          ]
5977
        },
5978
        {
5979
          "begin": "(?<![!=])(=)(?!=)",
5980
          "beginCaptures": {
5981
            "1": {
5982
              "name": "keyword.operator.assignment.js"
5983
            }
5984
          },
5985
          "end": "(?=[]),;}]|((?<![$_[:alnum:]])(?:(?<=\\.\\.\\.)|(?<!\\.))(of|in)\\s+))|(?=^\\s*$)|(?<![-\\&*+/|])(?<=\\S)(?<!=)(?=\\s*$)",
5986
          "patterns": [
5987
            {
5988
              "include": "#expression"
5989
            }
5990
          ]
5991
        }
5992
      ]
5993
    }
5994
  },
5995
  "scopeName": "source.js"
5996
}