Elffuss BraidHub

kikocis/continue public

7d19f8698b5d · 92.2 KiBRawPermalink
1{
2 "name": "TypeScript",
3 "scopeName": "source.ts",
4 "fileTypes": [
5 "ts"
6 ],
7 "uuid": "ef98eb90-bf9b-11e4-bb52-0800200c9a66",
8 "patterns": [
9 {
10 "include": "#directives"
11 },
12 {
13 "include": "#statements"
14 },
15 {
16 "name": "comment.line.shebang.ts",
17 "match": "\\A(#!).*(?=$)",
18 "captures": {
19 "1": {
20 "name": "punctuation.definition.comment.ts"
21 }
22 }
23 }
24 ],
25 "repository": {
26 "statements": {
27 "patterns": [
28 {
29 "include": "#string"
30 },
31 {
32 "include": "#template"
33 },
34 {
35 "include": "#comment"
36 },
37 {
38 "include": "#literal"
39 },
40 {
41 "include": "#declaration"
42 },
43 {
44 "include": "#switch-statement"
45 },
46 {
47 "include": "#for-loop"
48 },
49 {
50 "include": "#after-operator-block"
51 },
52 {
53 "include": "#decl-block"
54 },
55 {
56 "include": "#control-statement"
57 },
58 {
59 "include": "#expression"
60 },
61 {
62 "include": "#punctuation-semicolon"
63 }
64 ]
65 },
66 "var-expr": {
67 "name": "meta.var.expr.ts",
68 "begin": "(?<!\\.|\\$)(?:(\\bexport)\\s+)?\\b(var|let|const(?!\\s+enum\\b))\\b(?!\\$)",
69 "beginCaptures": {
70 "1": {
71 "name": "keyword.control.export.ts"
72 },
73 "2": {
74 "name": "storage.type.ts"
75 }
76 },
77 "end": "(?=$|;|}|(\\s+(of|in)\\s+))",
78 "patterns": [
79 {
80 "include": "#destructuring-variable"
81 },
82 {
83 "include": "#var-single-variable"
84 },
85 {
86 "include": "#variable-initializer"
87 },
88 {
89 "include": "#comment"
90 },
91 {
92 "include": "#punctuation-comma"
93 }
94 ]
95 },
96 "var-single-variable": {
97 "patterns": [
98 {
99 "name": "meta.var-single-variable.expr.ts",
100 "begin": "(?x)([_$[:alpha:]][_$[:alnum:]]*)(?=\\s* (=\\s*( (async\\s+) | (function\\s*[(<]) | (function\\s+) | ([_$[:alpha:]][_$[:alnum:]]*\\s*=>) | ((<([^<>]|\\<[^<>]+\\>)+>\\s*)?\\(([^()]|\\([^()]*\\))*\\)(\\s*:\\s*(.)*)?\\s*=>)) ) | (:\\s*( (<) | ([(]\\s*( ([)]) | (\\.\\.\\.) | ([_$[:alnum:]]+\\s*( ([:,?=])| ([)]\\s*=>) )) ))) ))",
101 "beginCaptures": {
102 "1": {
103 "name": "entity.name.function.ts"
104 }
105 },
106 "end": "(?=$|[;,=}]|(\\s+(of|in)\\s+))",
107 "patterns": [
108 {
109 "include": "#type-annotation"
110 },
111 {
112 "include": "#string"
113 },
114 {
115 "include": "#comment"
116 }
117 ]
118 },
119 {
120 "name": "meta.var-single-variable.expr.ts",
121 "begin": "([_$[:alpha:]][_$[:alnum:]]*)",
122 "beginCaptures": {
123 "1": {
124 "name": "variable.other.readwrite.ts"
125 }
126 },
127 "end": "(?=$|[;,=}]|(\\s+(of|in)\\s+))",
128 "patterns": [
129 {
130 "include": "#type-annotation"
131 },
132 {
133 "include": "#string"
134 },
135 {
136 "include": "#comment"
137 }
138 ]
139 }
140 ]
141 },
142 "destructuring-variable": {
143 "patterns": [
144 {
145 "name": "meta.object-binding-pattern-variable.ts",
146 "begin": "(?<!=|:|of|in)\\s*(?=\\{)",
147 "end": "(?=$|[;,=}]|(\\s+(of|in)\\s+))",
148 "patterns": [
149 {
150 "include": "#object-binding-pattern"
151 },
152 {
153 "include": "#type-annotation"
154 },
155 {
156 "include": "#comment"
157 }
158 ]
159 },
160 {
161 "name": "meta.array-binding-pattern-variable.ts",
162 "begin": "(?<!=|:|of|in)\\s*(?=\\[)",
163 "end": "(?=$|[;,=}]|(\\s+(of|in)\\s+))",
164 "patterns": [
165 {
166 "include": "#array-binding-pattern"
167 },
168 {
169 "include": "#type-annotation"
170 },
171 {
172 "include": "#comment"
173 }
174 ]
175 }
176 ]
177 },
178 "object-binding-element": {
179 "patterns": [
180 {
181 "include": "#comment"
182 },
183 {
184 "begin": "(?=(([_$[:alpha:]][_$[:alnum:]]*)|(\\'[^']*\\')|(\\\"[^\"]*\\\")|(\\[([^\\[\\]]|\\[[^\\[\\]]+\\])+\\]))\\s*(:))",
185 "end": "(?=,|\\})",
186 "patterns": [
187 {
188 "include": "#object-binding-element-propertyName"
189 },
190 {
191 "include": "#binding-element"
192 }
193 ]
194 },
195 {
196 "include": "#object-binding-pattern"
197 },
198 {
199 "include": "#destructuring-variable-rest"
200 },
201 {
202 "include": "#variable-initializer"
203 },
204 {
205 "include": "#punctuation-comma"
206 }
207 ]
208 },
209 "object-binding-element-propertyName": {
210 "begin": "(?=(([_$[:alpha:]][_$[:alnum:]]*)|(\\'[^']*\\')|(\\\"[^\"]*\\\")|(\\[([^\\[\\]]|\\[[^\\[\\]]+\\])+\\]))\\s*(:))",
211 "end": "(:)",
212 "endCaptures": {
213 "0": {
214 "name": "punctuation.destructuring.ts"
215 }
216 },
217 "patterns": [
218 {
219 "include": "#string"
220 },
221 {
222 "include": "#array-literal"
223 },
224 {
225 "name": "variable.object.property.ts",
226 "match": "([_$[:alpha:]][_$[:alnum:]]*)"
227 }
228 ]
229 },
230 "binding-element": {
231 "patterns": [
232 {
233 "include": "#comment"
234 },
235 {
236 "include": "#object-binding-pattern"
237 },
238 {
239 "include": "#array-binding-pattern"
240 },
241 {
242 "include": "#destructuring-variable-rest"
243 },
244 {
245 "include": "#variable-initializer"
246 }
247 ]
248 },
249 "destructuring-variable-rest": {
250 "match": "(?:(\\.\\.\\.)\\s*)?([_$[:alpha:]][_$[:alnum:]]*)",
251 "captures": {
252 "1": {
253 "name": "keyword.operator.rest.ts"
254 },
255 "2": {
256 "name": "variable.other.readwrite.ts"
257 }
258 }
259 },
260 "object-binding-pattern": {
261 "begin": "(?:(\\.\\.\\.)\\s*)?(\\{)",
262 "beginCaptures": {
263 "1": {
264 "name": "keyword.operator.rest.ts"
265 },
266 "2": {
267 "name": "punctuation.definition.binding-pattern.object.ts"
268 }
269 },
270 "end": "\\}",
271 "endCaptures": {
272 "0": {
273 "name": "punctuation.definition.binding-pattern.object.ts"
274 }
275 },
276 "patterns": [
277 {
278 "include": "#object-binding-element"
279 }
280 ]
281 },
282 "array-binding-pattern": {
283 "begin": "(?:(\\.\\.\\.)\\s*)?(\\[)",
284 "beginCaptures": {
285 "1": {
286 "name": "keyword.operator.rest.ts"
287 },
288 "2": {
289 "name": "punctuation.definition.binding-pattern.array.ts"
290 }
291 },
292 "end": "\\]",
293 "endCaptures": {
294 "0": {
295 "name": "punctuation.definition.binding-pattern.array.ts"
296 }
297 },
298 "patterns": [
299 {
300 "include": "#binding-element"
301 },
302 {
303 "include": "#punctuation-comma"
304 }
305 ]
306 },
307 "ternary-expression": {
308 "begin": "(?=\\?)",
309 "end": "(?=$|[;,})\\]])",
310 "patterns": [
311 {
312 "include": "#ternary-operator"
313 },
314 {
315 "include": "#expression"
316 }
317 ]
318 },
319 "ternary-operator": {
320 "begin": "(\\?)",
321 "beginCaptures": {
322 "0": {
323 "name": "keyword.operator.ternary.ts"
324 }
325 },
326 "end": "(:)",
327 "endCaptures": {
328 "0": {
329 "name": "keyword.operator.ternary.ts"
330 }
331 },
332 "patterns": [
333 {
334 "include": "#expression"
335 }
336 ]
337 },
338 "expression": {
339 "name": "meta.expression.ts",
340 "patterns": [
341 {
342 "include": "#string"
343 },
344 {
345 "include": "#regex"
346 },
347 {
348 "include": "#template"
349 },
350 {
351 "include": "#comment"
352 },
353 {
354 "include": "#literal"
355 },
356 {
357 "include": "#function-declaration"
358 },
359 {
360 "include": "#class-or-interface-declaration"
361 },
362 {
363 "include": "#arrow-function"
364 },
365 {
366 "include": "#cast"
367 },
368 {
369 "include": "#ternary-expression"
370 },
371 {
372 "include": "#new-expr"
373 },
374 {
375 "include": "#object-literal"
376 },
377 {
378 "include": "#expression-operators"
379 },
380 {
381 "include": "#function-call"
382 },
383 {
384 "include": "#support-objects"
385 },
386 {
387 "include": "#identifiers"
388 },
389 {
390 "include": "#paren-expression"
391 },
392 {
393 "include": "#punctuation-comma"
394 },
395 {
396 "include": "#punctuation-accessor"
397 }
398 ]
399 },
400 "control-statement": {
401 "patterns": [
402 {
403 "name": "keyword.control.trycatch.ts",
404 "match": "(?<!\\.|\\$)\\b(catch|finally|throw|try)\\b(?!\\$)"
405 },
406 {
407 "name": "keyword.control.loop.ts",
408 "match": "(?<!\\.|\\$)\\b(break|continue|do|goto|while)\\b(?!\\$)"
409 },
410 {
411 "name": "keyword.control.flow.ts",
412 "match": "(?<!\\.|\\$)\\b(return)\\b(?!\\$)"
413 },
414 {
415 "match": "(?<!\\.|\\$)\\b(yield)\\b(?!\\$)(?:\\s*(\\*))?",
416 "captures": {
417 "1": {
418 "name": "keyword.control.flow.ts"
419 },
420 "2": {
421 "name": "keyword.generator.asterisk.ts"
422 }
423 }
424 },
425 {
426 "name": "keyword.control.switch.ts",
427 "match": "(?<!\\.|\\$)\\b(case|default|switch)\\b(?!\\$)"
428 },
429 {
430 "name": "keyword.control.conditional.ts",
431 "match": "(?<!\\.|\\$)\\b(else|if)\\b(?!\\$)"
432 },
433 {
434 "name": "keyword.control.with.ts",
435 "match": "(?<!\\.|\\$)\\b(with)\\b(?!\\$)"
436 },
437 {
438 "name": "keyword.other.debugger.ts",
439 "match": "(?<!\\.|\\$)\\b(debugger)\\b(?!\\$)"
440 },
441 {
442 "name": "storage.modifier.ts",
443 "match": "(?<!\\.|\\$)\\b(declare)\\b(?!\\$)"
444 }
445 ]
446 },
447 "declaration": {
448 "name": "meta.declaration.ts",
449 "patterns": [
450 {
451 "include": "#decorator"
452 },
453 {
454 "include": "#var-expr"
455 },
456 {
457 "include": "#function-declaration"
458 },
459 {
460 "include": "#class-or-interface-declaration"
461 },
462 {
463 "include": "#type-declaration"
464 },
465 {
466 "include": "#enum-declaration"
467 },
468 {
469 "include": "#namespace-declaration"
470 },
471 {
472 "include": "#import-equals-declaration"
473 },
474 {
475 "include": "#import-declaration"
476 },
477 {
478 "include": "#export-declaration"
479 }
480 ]
481 },
482 "decorator": {
483 "name": "meta.decorator.ts",
484 "begin": "(?<!\\.|\\$)\\@",
485 "beginCaptures": {
486 "0": {
487 "name": "punctuation.decorator.ts"
488 }
489 },
490 "end": "(?=\\s)",
491 "patterns": [
492 {
493 "include": "#expression"
494 }
495 ]
496 },
497 "type-declaration": {
498 "name": "meta.type.declaration.ts",
499 "begin": "(?<!\\.|\\$)(?:(\\bexport)\\s+)?\\b(type)\\b\\s+([_$[:alpha:]][_$[:alnum:]]*)\\s*",
500 "beginCaptures": {
501 "1": {
502 "name": "keyword.control.export.ts"
503 },
504 "2": {
505 "name": "storage.type.type.ts"
506 },
507 "3": {
508 "name": "entity.name.type.ts"
509 }
510 },
511 "end": "(?=[};]|\\bvar\\b|\\blet\\b|\\bconst\\b|\\btype\\b|\\bfunction\\b|\\bclass\\b|\\binterface\\b|\\bnamespace\\b|\\bmodule\\b|\\bimport\\b|\\benum\\b|\\bdeclare\\b|\\bexport\\b|\\babstract\\b|\\basync\\b)",
512 "patterns": [
513 {
514 "include": "#comment"
515 },
516 {
517 "include": "#type-parameters"
518 },
519 {
520 "include": "#type"
521 },
522 {
523 "match": "(=)\\s*",
524 "captures": {
525 "1": {
526 "name": "keyword.operator.assignment.ts"
527 }
528 }
529 }
530 ]
531 },
532 "enum-declaration": {
533 "name": "meta.enum.declaration.ts",
534 "begin": "(?<!\\.|\\$)(?:(\\bexport)\\s+)?(?:\\b(const)\\s+)?\\b(enum)\\s+([_$[:alpha:]][_$[:alnum:]]*)",
535 "beginCaptures": {
536 "1": {
537 "name": "keyword.control.export.ts"
538 },
539 "2": {
540 "name": "storage.modifier.ts"
541 },
542 "3": {
543 "name": "storage.type.enum.ts"
544 },
545 "4": {
546 "name": "entity.name.type.enum.ts"
547 }
548 },
549 "end": "(?<=\\})",
550 "patterns": [
551 {
552 "include": "#comment"
553 },
554 {
555 "begin": "\\{",
556 "beginCaptures": {
557 "0": {
558 "name": "punctuation.definition.block.ts"
559 }
560 },
561 "end": "\\}",
562 "endCaptures": {
563 "0": {
564 "name": "punctuation.definition.block.ts"
565 }
566 },
567 "patterns": [
568 {
569 "include": "#comment"
570 },
571 {
572 "begin": "([_$[:alpha:]][_$[:alnum:]]*)",
573 "beginCaptures": {
574 "0": {
575 "name": "variable.other.enummember.ts"
576 }
577 },
578 "end": "(?=,|\\}|$)",
579 "patterns": [
580 {
581 "include": "#comment"
582 },
583 {
584 "include": "#variable-initializer"
585 }
586 ]
587 },
588 {
589 "begin": "(?=((\\'[^']*\\')|(\\\"[^\"]*\\\")|(\\[([^\\[\\]]|\\[[^\\[\\]]+\\])+\\])))",
590 "end": "(?=,|\\}|$)",
591 "patterns": [
592 {
593 "include": "#string"
594 },
595 {
596 "include": "#array-literal"
597 },
598 {
599 "include": "#comment"
600 },
601 {
602 "include": "#variable-initializer"
603 }
604 ]
605 },
606 {
607 "include": "#punctuation-comma"
608 }
609 ]
610 }
611 ]
612 },
613 "namespace-declaration": {
614 "name": "meta.namespace.declaration.ts",
615 "begin": "(?<!\\.|\\$)(?:(\\bexport)\\s+)?\\b(namespace|module)\\s+",
616 "beginCaptures": {
617 "1": {
618 "name": "keyword.control.export.ts"
619 },
620 "2": {
621 "name": "storage.type.namespace.ts"
622 }
623 },
624 "end": "(?=$|\\{)",
625 "patterns": [
626 {
627 "include": "#comment"
628 },
629 {
630 "include": "#string"
631 },
632 {
633 "name": "entity.name.type.module.ts",
634 "match": "([_$[:alpha:]][_$[:alnum:]]*)"
635 },
636 {
637 "name": "punctuation.accessor.ts",
638 "match": "\\."
639 }
640 ]
641 },
642 "import-equals-declaration": {
643 "patterns": [
644 {
645 "name": "meta.import-equals.external.ts",
646 "begin": "(?<!\\.|\\$)(?:(\\bexport)\\s+)?\\b(import)\\s+([_$[:alpha:]][_$[:alnum:]]*)\\s*(=)\\s*(require)\\s*(\\()",
647 "beginCaptures": {
648 "1": {
649 "name": "keyword.control.export.ts"
650 },
651 "2": {
652 "name": "keyword.control.import.ts"
653 },
654 "3": {
655 "name": "variable.other.readwrite.alias.ts"
656 },
657 "4": {
658 "name": "keyword.operator.assignment.ts"
659 },
660 "5": {
661 "name": "keyword.control.require.ts"
662 },
663 "6": {
664 "name": "meta.brace.round.ts"
665 }
666 },
667 "end": "\\)",
668 "endCaptures": {
669 "0": {
670 "name": "meta.brace.round.ts"
671 }
672 },
673 "patterns": [
674 {
675 "include": "#comment"
676 },
677 {
678 "include": "#string"
679 }
680 ]
681 },
682 {
683 "name": "meta.import-equals.internal.ts",
684 "begin": "(?<!\\.|\\$)(?:(\\bexport)\\s+)?\\b(import)\\s+([_$[:alpha:]][_$[:alnum:]]*)\\s*(=)\\s*(?!require\\b)",
685 "beginCaptures": {
686 "1": {
687 "name": "keyword.control.export.ts"
688 },
689 "2": {
690 "name": "keyword.control.import.ts"
691 },
692 "3": {
693 "name": "variable.other.readwrite.alias.ts"
694 },
695 "4": {
696 "name": "keyword.operator.assignment.ts"
697 }
698 },
699 "end": "(?=;|$)",
700 "patterns": [
701 {
702 "include": "#comment"
703 },
704 {
705 "match": "([_$[:alpha:]][_$[:alnum:]]*)\\s*(\\.)",
706 "captures": {
707 "1": {
708 "name": "entity.name.type.module.ts"
709 },
710 "2": {
711 "name": "punctuation.accessor.ts"
712 }
713 }
714 },
715 {
716 "name": "variable.other.readwrite.ts",
717 "match": "([_$[:alpha:]][_$[:alnum:]]*)"
718 }
719 ]
720 }
721 ]
722 },
723 "import-declaration": {
724 "name": "meta.import.ts",
725 "begin": "(?<!\\.|\\$)(?:(\\bexport)\\s+)?\\b(import)(?!(\\s*:)|(\\$))\\b",
726 "beginCaptures": {
727 "1": {
728 "name": "keyword.control.export.ts"
729 },
730 "2": {
731 "name": "keyword.control.import.ts"
732 }
733 },
734 "end": "(?=;|$)",
735 "patterns": [
736 {
737 "include": "#import-export-declaration"
738 }
739 ]
740 },
741 "export-declaration": {
742 "patterns": [
743 {
744 "match": "(?<!\\.|\\$)\\b(export)\\s+(as)\\s+(namespace)\\s+([_$[:alpha:]][_$[:alnum:]]*)",
745 "captures": {
746 "1": {
747 "name": "keyword.control.export.ts"
748 },
749 "2": {
750 "name": "keyword.control.as.ts"
751 },
752 "3": {
753 "name": "storage.type.namespace.ts"
754 },
755 "4": {
756 "name": "entity.name.type.module.ts"
757 }
758 }
759 },
760 {
761 "name": "meta.export.default.ts",
762 "begin": "(?<!\\.|\\$)\\b(export)(?:(?:\\s*(=))|(?:\\s+(default)(?=\\s+)))",
763 "beginCaptures": {
764 "1": {
765 "name": "keyword.control.export.ts"
766 },
767 "2": {
768 "name": "keyword.operator.assignment.ts"
769 },
770 "3": {
771 "name": "keyword.control.default.ts"
772 }
773 },
774 "end": "(?=;|\\bexport\\b|\\bfunction\\b|\\bclass\\b|\\binterface\\b|\\blet\\b|\\bvar\\b|\\bconst\\b|\\bimport\\b|\\benum\\b|\\bnamespace\\b|\\bmodule\\b|\\btype\\b|\\babstract\\b|\\bdeclare\\b|\\basync\\b|$)",
775 "patterns": [
776 {
777 "include": "#expression"
778 }
779 ]
780 },
781 {
782 "name": "meta.export.ts",
783 "begin": "(?<!\\.|\\$)\\b(export)(?!(\\s*:)|(\\$))\\b",
784 "beginCaptures": {
785 "0": {
786 "name": "keyword.control.export.ts"
787 }
788 },
789 "end": "(?=;|\\bexport\\b|\\bfunction\\b|\\bclass\\b|\\binterface\\b|\\blet\\b|\\bvar\\b|\\bconst\\b|\\bimport\\b|\\benum\\b|\\bnamespace\\b|\\bmodule\\b|\\btype\\b|\\babstract\\b|\\bdeclare\\b|\\basync\\b|$)",
790 "patterns": [
791 {
792 "include": "#import-export-declaration"
793 }
794 ]
795 }
796 ]
797 },
798 "import-export-declaration": {
799 "patterns": [
800 {
801 "include": "#comment"
802 },
803 {
804 "include": "#string"
805 },
806 {
807 "include": "#import-export-block"
808 },
809 {
810 "name": "keyword.control.from.ts",
811 "match": "\\bfrom\\b"
812 },
813 {
814 "include": "#import-export-clause"
815 }
816 ]
817 },
818 "import-export-block": {
819 "name": "meta.block.ts",
820 "begin": "\\{",
821 "beginCaptures": {
822 "0": {
823 "name": "punctuation.definition.block.ts"
824 }
825 },
826 "end": "\\}",
827 "endCaptures": {
828 "0": {
829 "name": "punctuation.definition.block.ts"
830 }
831 },
832 "patterns": [
833 {
834 "include": "#import-export-clause"
835 }
836 ]
837 },
838 "import-export-clause": {
839 "patterns": [
840 {
841 "include": "#comment"
842 },
843 {
844 "comment": "(default|*|name) as alias",
845 "match": "(?x) (?: \\b(default)\\b | (\\*) | ([_$[:alpha:]][_$[:alnum:]]*)) \\s+ (as) \\s+ (?: (\\b default \\b | \\*) | ([_$[:alpha:]][_$[:alnum:]]*))",
846 "captures": {
847 "1": {
848 "name": "keyword.control.default.ts"
849 },
850 "2": {
851 "name": "constant.language.import-export-all.ts"
852 },
853 "3": {
854 "name": "variable.other.readwrite.ts"
855 },
856 "4": {
857 "name": "keyword.control.as.ts"
858 },
859 "5": {
860 "name": "invalid.illegal.ts"
861 },
862 "6": {
863 "name": "variable.other.readwrite.alias.ts"
864 }
865 }
866 },
867 {
868 "include": "#punctuation-comma"
869 },
870 {
871 "name": "constant.language.import-export-all.ts",
872 "match": "\\*"
873 },
874 {
875 "name": "keyword.control.default.ts",
876 "match": "\\b(default)\\b"
877 },
878 {
879 "name": "variable.other.readwrite.alias.ts",
880 "match": "([_$[:alpha:]][_$[:alnum:]]*)"
881 }
882 ]
883 },
884 "class-or-interface-declaration": {
885 "name": "meta.class.ts",
886 "begin": "(?<!\\.|\\$)\\b(?:(export)\\s+)?\\b(?:(abstract)\\s+)?\\b(?:(class)|(interface))\\b",
887 "beginCaptures": {
888 "1": {
889 "name": "keyword.control.export.ts"
890 },
891 "2": {
892 "name": "storage.modifier.ts"
893 },
894 "3": {
895 "name": "storage.type.class.ts"
896 },
897 "4": {
898 "name": "storage.type.interface.ts"
899 }
900 },
901 "end": "(?<=\\})",
902 "endCaptures": {
903 "1": {
904 "name": "punctuation.definition.block.ts"
905 }
906 },
907 "patterns": [
908 {
909 "include": "#comment"
910 },
911 {
912 "include": "#class-or-interface-heritage"
913 },
914 {
915 "match": "[_$[:alpha:]][_$[:alnum:]]*",
916 "captures": {
917 "0": {
918 "name": "entity.name.type.class.ts"
919 }
920 }
921 },
922 {
923 "include": "#type-parameters"
924 },
925 {
926 "include": "#class-or-interface-body"
927 }
928 ]
929 },
930 "class-or-interface-heritage": {
931 "begin": "(?<!\\.|\\$)(?:\\b(extends|implements)\\b)(?!\\$)",
932 "beginCaptures": {
933 "1": {
934 "name": "storage.modifier.ts"
935 }
936 },
937 "end": "(?=\\{)",
938 "endCaptures": {
939 "1": {
940 "name": "punctuation.definition.block.ts"
941 }
942 },
943 "patterns": [
944 {
945 "include": "#comment"
946 },
947 {
948 "include": "#class-or-interface-heritage"
949 },
950 {
951 "include": "#type-parameters"
952 },
953 {
954 "match": "([_$[:alpha:]][_$[:alnum:]]*)\\s*(\\.)(?=\\s*[_$[:alpha:]][_$[:alnum:]]*(\\s*\\.\\s*[_$[:alpha:]][_$[:alnum:]]*)*\\s*([,<{]|extends|implements|//|/\\*))",
955 "captures": {
956 "1": {
957 "name": "entity.name.type.module.ts"
958 },
959 "2": {
960 "name": "punctuation.accessor.ts"
961 }
962 }
963 },
964 {
965 "match": "([_$[:alpha:]][_$[:alnum:]]*)(?=\\s*([,<{]|extends|implements|//|/\\*))",
966 "captures": {
967 "1": {
968 "name": "entity.other.inherited-class.ts"
969 }
970 }
971 },
972 {
973 "include": "#expression"
974 }
975 ]
976 },
977 "class-or-interface-body": {
978 "begin": "\\{",
979 "beginCaptures": {
980 "0": {
981 "name": "punctuation.definition.block.ts"
982 }
983 },
984 "end": "\\}",
985 "endCaptures": {
986 "0": {
987 "name": "punctuation.definition.block.ts"
988 }
989 },
990 "patterns": [
991 {
992 "include": "#string"
993 },
994 {
995 "include": "#comment"
996 },
997 {
998 "include": "#decorator"
999 },
1000 {
1001 "include": "#method-declaration"
1002 },
1003 {
1004 "include": "#indexer-declaration"
1005 },
1006 {
1007 "include": "#field-declaration"
1008 },
1009 {
1010 "include": "#type-annotation"
1011 },
1012 {
1013 "include": "#variable-initializer"
1014 },
1015 {
1016 "include": "#access-modifier"
1017 },
1018 {
1019 "include": "#property-accessor"
1020 },
1021 {
1022 "include": "#expression"
1023 },
1024 {
1025 "include": "#punctuation-comma"
1026 },
1027 {
1028 "include": "#punctuation-semicolon"
1029 }
1030 ]
1031 },
1032 "type-object": {
1033 "name": "meta.object.type.ts",
1034 "begin": "\\{",
1035 "beginCaptures": {
1036 "0": {
1037 "name": "punctuation.definition.block.ts"
1038 }
1039 },
1040 "end": "\\}",
1041 "endCaptures": {
1042 "0": {
1043 "name": "punctuation.definition.block.ts"
1044 }
1045 },
1046 "patterns": [
1047 {
1048 "include": "#type-object-members"
1049 }
1050 ]
1051 },
1052 "type-object-members": {
1053 "patterns": [
1054 {
1055 "include": "#comment"
1056 },
1057 {
1058 "include": "#method-declaration"
1059 },
1060 {
1061 "include": "#indexer-declaration"
1062 },
1063 {
1064 "include": "#field-declaration"
1065 },
1066 {
1067 "include": "#type-annotation"
1068 },
1069 {
1070 "begin": "\\.\\.\\.",
1071 "beginCaptures": {
1072 "0": {
1073 "name": "keyword.operator.spread.ts"
1074 }
1075 },
1076 "end": "(?=\\}|;|,|$)|(?<=\\})",
1077 "patterns": [
1078 {
1079 "include": "#type"
1080 }
1081 ]
1082 },
1083 {
1084 "include": "#punctuation-comma"
1085 },
1086 {
1087 "include": "#punctuation-semicolon"
1088 }
1089 ]
1090 },
1091 "field-declaration": {
1092 "name": "meta.field.declaration.ts",
1093 "begin": "(?<!\\()(?:(?<!\\.|\\$)\\b(readonly)\\s+)?(?=(([_$[:alpha:]][_$[:alnum:]]*)|(\\'[^']*\\')|(\\\"[^\"]*\\\")|(\\[([^\\[\\]]|\\[[^\\[\\]]+\\])+\\]))\\s*(\\?\\s*)?(=|:))",
1094 "beginCaptures": {
1095 "1": {
1096 "name": "storage.modifier.ts"
1097 }
1098 },
1099 "end": "(?=\\}|;|,|$)|(?<=\\})",
1100 "patterns": [
1101 {
1102 "include": "#variable-initializer"
1103 },
1104 {
1105 "begin": "(?=((?:[_$[:alpha:]][_$[:alnum:]]*)|(?:\\'[^']*\\')|(?:\\\"[^\"]*\\\")|(\\[([^\\[\\]]|\\[[^\\[\\]]+\\])+\\]))\\s*(\\?\\s*)?(=|:))",
1106 "end": "(?=[};,=]|$)|(?<=\\})",
1107 "patterns": [
1108 {
1109 "include": "#type-annotation"
1110 },
1111 {
1112 "include": "#string"
1113 },
1114 {
1115 "include": "#array-literal"
1116 },
1117 {
1118 "include": "#comment"
1119 },
1120 {
1121 "name": "entity.name.function.ts",
1122 "match": "(?x)([_$[:alpha:]][_$[:alnum:]]*)(?=(\\?\\s*)?\\s* (=\\s*( (async\\s+) | (function\\s*[(<]) | (function\\s+) | ([_$[:alpha:]][_$[:alnum:]]*\\s*=>) | ((<([^<>]|\\<[^<>]+\\>)+>\\s*)?\\(([^()]|\\([^()]*\\))*\\)(\\s*:\\s*(.)*)?\\s*=>)) ) | (:\\s*( (<) | ([(]\\s*( ([)]) | (\\.\\.\\.) | ([_$[:alnum:]]+\\s*( ([:,?=])| ([)]\\s*=>) )) ))) ))"
1123 },
1124 {
1125 "name": "variable.object.property.ts",
1126 "match": "[_$[:alpha:]][_$[:alnum:]]*"
1127 },
1128 {
1129 "name": "keyword.operator.optional.ts",
1130 "match": "\\?"
1131 }
1132 ]
1133 }
1134 ]
1135 },
1136 "method-declaration": {
1137 "name": "meta.method.declaration.ts",
1138 "begin": "(?<!\\.|\\$)(?:\\b(public|private|protected)\\s+)?(?:\\b(abstract)\\s+)?(?:\\b(async)\\s+)?(?:\\b(get|set)\\s+)?(?:(?:\\b(?:(new)|(constructor))\\b(?!\\$|:))|(?:(\\*)\\s*)?(?=((([_$[:alpha:]][_$[:alnum:]]*)|(\\'[^']*\\')|(\\\"[^\"]*\\\")|(\\[([^\\[\\]]|\\[[^\\[\\]]+\\])+\\]))\\s*(\\??))?\\s*[\\(\\<]))",
1139 "beginCaptures": {
1140 "1": {
1141 "name": "storage.modifier.ts"
1142 },
1143 "2": {
1144 "name": "storage.modifier.ts"
1145 },
1146 "3": {
1147 "name": "storage.modifier.async.ts"
1148 },
1149 "4": {
1150 "name": "storage.type.property.ts"
1151 },
1152 "5": {
1153 "name": "keyword.operator.new.ts"
1154 },
1155 "6": {
1156 "name": "storage.type.ts"
1157 },
1158 "7": {
1159 "name": "keyword.generator.asterisk.ts"
1160 }
1161 },
1162 "end": "(?=\\}|;|,)|(?<=\\})",
1163 "patterns": [
1164 {
1165 "include": "#method-declaration-name"
1166 },
1167 {
1168 "include": "#comment"
1169 },
1170 {
1171 "include": "#type-parameters"
1172 },
1173 {
1174 "include": "#function-parameters"
1175 },
1176 {
1177 "include": "#return-type"
1178 },
1179 {
1180 "include": "#method-overload-declaration"
1181 },
1182 {
1183 "include": "#decl-block"
1184 }
1185 ]
1186 },
1187 "method-overload-declaration": {
1188 "begin": "(?<!\\.|\\$)(?:\\b(public|private|protected)\\s+)?(?:\\b(abstract)\\s+)?(?:\\b(async)\\s+)?(?:\\b(get|set)\\s+)?(?:(?:\\b(?:(new)|(constructor))\\b(?!\\$|:))|(?:(\\*)\\s*)?(?=((([_$[:alpha:]][_$[:alnum:]]*)|(\\'[^']*\\')|(\\\"[^\"]*\\\")|(\\[([^\\[\\]]|\\[[^\\[\\]]+\\])+\\]))\\s*(\\??))?\\s*[\\(\\<]))",
1189 "beginCaptures": {
1190 "1": {
1191 "name": "storage.modifier.ts"
1192 },
1193 "2": {
1194 "name": "storage.modifier.ts"
1195 },
1196 "3": {
1197 "name": "storage.modifier.async.ts"
1198 },
1199 "4": {
1200 "name": "storage.type.property.ts"
1201 },
1202 "5": {
1203 "name": "keyword.operator.new.ts"
1204 },
1205 "6": {
1206 "name": "storage.type.ts"
1207 },
1208 "7": {
1209 "name": "keyword.generator.asterisk.ts"
1210 }
1211 },
1212 "end": "(?=\\(|\\<)",
1213 "patterns": [
1214 {
1215 "include": "#method-declaration-name"
1216 }
1217 ]
1218 },
1219 "method-declaration-name": {
1220 "begin": "(?=(([_$[:alpha:]][_$[:alnum:]]*)|(\\'[^']*\\')|(\\\"[^\"]*\\\")|(\\[([^\\[\\]]|\\[[^\\[\\]]+\\])+\\]))\\s*(\\??)\\s*[\\(\\<])",
1221 "end": "(?=\\(|\\<)",
1222 "patterns": [
1223 {
1224 "include": "#string"
1225 },
1226 {
1227 "include": "#array-literal"
1228 },
1229 {
1230 "name": "entity.name.function.ts",
1231 "match": "[_$[:alpha:]][_$[:alnum:]]*"
1232 },
1233 {
1234 "name": "keyword.operator.optional.ts",
1235 "match": "\\?"
1236 }
1237 ]
1238 },
1239 "indexer-declaration": {
1240 "name": "meta.indexer.declaration.ts",
1241 "begin": "(?:(?<!\\.|\\$)\\b(readonly)\\s*)?(\\[)\\s*([_$[:alpha:]][_$[:alnum:]]*)\\s*(?=:)",
1242 "beginCaptures": {
1243 "1": {
1244 "name": "storage.modifier.ts"
1245 },
1246 "2": {
1247 "name": "meta.brace.square.ts"
1248 },
1249 "3": {
1250 "name": "variable.parameter.ts"
1251 }
1252 },
1253 "end": "(\\])\\s*(\\?\\s*)?|$",
1254 "endCaptures": {
1255 "1": {
1256 "name": "meta.brace.square.ts"
1257 },
1258 "2": {
1259 "name": "keyword.operator.optional.ts"
1260 }
1261 },
1262 "patterns": [
1263 {
1264 "include": "#type-annotation"
1265 }
1266 ]
1267 },
1268 "function-declaration": {
1269 "name": "meta.function.ts",
1270 "begin": "(?<!\\.|\\$)\\b(?:(export)\\s+)?(?:(async)\\s+)?(function\\b)(?:\\s*(\\*))?(?:(?:\\s+|(?<=\\*))([_$[:alpha:]][_$[:alnum:]]*))?\\s*",
1271 "beginCaptures": {
1272 "1": {
1273 "name": "keyword.control.export.ts"
1274 },
1275 "2": {
1276 "name": "storage.modifier.async.ts"
1277 },
1278 "3": {
1279 "name": "storage.type.function.ts"
1280 },
1281 "4": {
1282 "name": "keyword.generator.asterisk.ts"
1283 },
1284 "5": {
1285 "name": "entity.name.function.ts"
1286 }
1287 },
1288 "end": "(?=;|\\})|(?<=\\})",
1289 "patterns": [
1290 {
1291 "include": "#comment"
1292 },
1293 {
1294 "include": "#type-parameters"
1295 },
1296 {
1297 "include": "#function-parameters"
1298 },
1299 {
1300 "include": "#return-type"
1301 },
1302 {
1303 "include": "#function-overload-declaration"
1304 },
1305 {
1306 "include": "#decl-block"
1307 }
1308 ]
1309 },
1310 "function-overload-declaration": {
1311 "name": "meta.function.overload.ts",
1312 "match": "(?<!\\.|\\$)\\b(?:(export)\\s+)?(?:(async)\\s+)?(function\\b)(?:\\s*(\\*))?(?:(?:\\s+|(?<=\\*))([_$[:alpha:]][_$[:alnum:]]*))?\\s*",
1313 "captures": {
1314 "1": {
1315 "name": "keyword.control.export.ts"
1316 },
1317 "2": {
1318 "name": "storage.modifier.async.ts"
1319 },
1320 "3": {
1321 "name": "storage.type.function.ts"
1322 },
1323 "4": {
1324 "name": "keyword.generator.asterisk.ts"
1325 },
1326 "5": {
1327 "name": "entity.name.function.ts"
1328 }
1329 }
1330 },
1331 "object-literal": {
1332 "name": "meta.objectliteral.ts",
1333 "begin": "\\{",
1334 "beginCaptures": {
1335 "0": {
1336 "name": "punctuation.definition.block.ts"
1337 }
1338 },
1339 "end": "\\}",
1340 "endCaptures": {
1341 "0": {
1342 "name": "punctuation.definition.block.ts"
1343 }
1344 },
1345 "patterns": [
1346 {
1347 "include": "#object-member"
1348 }
1349 ]
1350 },
1351 "decl-block": {
1352 "name": "meta.block.ts",
1353 "begin": "\\{",
1354 "beginCaptures": {
1355 "0": {
1356 "name": "punctuation.definition.block.ts"
1357 }
1358 },
1359 "end": "\\}",
1360 "endCaptures": {
1361 "0": {
1362 "name": "punctuation.definition.block.ts"
1363 }
1364 },
1365 "patterns": [
1366 {
1367 "include": "#statements"
1368 }
1369 ]
1370 },
1371 "after-operator-block": {
1372 "name": "meta.objectliteral.ts",
1373 "begin": "(?<=[=(,\\[?+!]|await|return|yield|throw|in|of|typeof|&&|\\|\\||\\*)\\s*(\\{)",
1374 "beginCaptures": {
1375 "1": {
1376 "name": "punctuation.definition.block.ts"
1377 }
1378 },
1379 "end": "\\}",
1380 "endCaptures": {
1381 "0": {
1382 "name": "punctuation.definition.block.ts"
1383 }
1384 },
1385 "patterns": [
1386 {
1387 "include": "#object-member"
1388 }
1389 ]
1390 },
1391 "parameter-name": {
1392 "patterns": [
1393 {
1394 "match": "(?x)(?:\\s*\\b(readonly)\\s+)?(?:\\s*\\b(public|private|protected)\\s+)?(\\.\\.\\.)?\\s*(?<!=|:)([_$[:alpha:]][_$[:alnum:]]*)\\s*(\\??)(?=\\s* (=\\s*( (async\\s+) | (function\\s*[(<]) | (function\\s+) | ([_$[:alpha:]][_$[:alnum:]]*\\s*=>) | ((<([^<>]|\\<[^<>]+\\>)+>\\s*)?\\(([^()]|\\([^()]*\\))*\\)(\\s*:\\s*(.)*)?\\s*=>)) ) | (:\\s*( (<) | ([(]\\s*( ([)]) | (\\.\\.\\.) | ([_$[:alnum:]]+\\s*( ([:,?=])| ([)]\\s*=>) )) ))) ))",
1395 "captures": {
1396 "1": {
1397 "name": "storage.modifier.ts"
1398 },
1399 "2": {
1400 "name": "storage.modifier.ts"
1401 },
1402 "3": {
1403 "name": "keyword.operator.rest.ts"
1404 },
1405 "4": {
1406 "name": "entity.name.function.ts"
1407 },
1408 "5": {
1409 "name": "keyword.operator.optional.ts"
1410 }
1411 }
1412 },
1413 {
1414 "match": "(?:\\s*\\b(readonly)\\s+)?(?:\\s*\\b(public|private|protected)\\s+)?(\\.\\.\\.)?\\s*(?<!=|:)([_$[:alpha:]][_$[:alnum:]]*)\\s*(\\??)",
1415 "captures": {
1416 "1": {
1417 "name": "storage.modifier.ts"
1418 },
1419 "2": {
1420 "name": "storage.modifier.ts"
1421 },
1422 "3": {
1423 "name": "keyword.operator.rest.ts"
1424 },
1425 "4": {
1426 "name": "variable.parameter.ts"
1427 },
1428 "5": {
1429 "name": "keyword.operator.optional.ts"
1430 }
1431 }
1432 }
1433 ]
1434 },
1435 "destructuring-parameter": {
1436 "patterns": [
1437 {
1438 "name": "meta.parameter.object-binding-pattern.ts",
1439 "begin": "(?<!=|:)\\s*(\\{)",
1440 "beginCaptures": {
1441 "1": {
1442 "name": "punctuation.definition.binding-pattern.object.ts"
1443 }
1444 },
1445 "end": "\\}",
1446 "endCaptures": {
1447 "0": {
1448 "name": "punctuation.definition.binding-pattern.object.ts"
1449 }
1450 },
1451 "patterns": [
1452 {
1453 "include": "#parameter-object-binding-element"
1454 }
1455 ]
1456 },
1457 {
1458 "name": "meta.paramter.array-binding-pattern.ts",
1459 "begin": "(?<!=|:)\\s*(\\[)",
1460 "beginCaptures": {
1461 "1": {
1462 "name": "punctuation.definition.binding-pattern.array.ts"
1463 }
1464 },
1465 "end": "\\]",
1466 "endCaptures": {
1467 "0": {
1468 "name": "punctuation.definition.binding-pattern.array.ts"
1469 }
1470 },
1471 "patterns": [
1472 {
1473 "include": "#parameter-binding-element"
1474 },
1475 {
1476 "include": "#punctuation-comma"
1477 }
1478 ]
1479 }
1480 ]
1481 },
1482 "parameter-object-binding-element": {
1483 "patterns": [
1484 {
1485 "include": "#comment"
1486 },
1487 {
1488 "begin": "(?=(([_$[:alpha:]][_$[:alnum:]]*)|(\\'[^']*\\')|(\\\"[^\"]*\\\")|(\\[([^\\[\\]]|\\[[^\\[\\]]+\\])+\\]))\\s*(:))",
1489 "end": "(?=,|\\})",
1490 "patterns": [
1491 {
1492 "include": "#object-binding-element-propertyName"
1493 },
1494 {
1495 "include": "#parameter-binding-element"
1496 }
1497 ]
1498 },
1499 {
1500 "include": "#parameter-object-binding-pattern"
1501 },
1502 {
1503 "include": "#destructuring-parameter-rest"
1504 },
1505 {
1506 "include": "#variable-initializer"
1507 },
1508 {
1509 "include": "#punctuation-comma"
1510 }
1511 ]
1512 },
1513 "parameter-binding-element": {
1514 "patterns": [
1515 {
1516 "include": "#comment"
1517 },
1518 {
1519 "include": "#parameter-object-binding-pattern"
1520 },
1521 {
1522 "include": "#parameter-array-binding-pattern"
1523 },
1524 {
1525 "include": "#destructuring-parameter-rest"
1526 },
1527 {
1528 "include": "#variable-initializer"
1529 }
1530 ]
1531 },
1532 "destructuring-parameter-rest": {
1533 "match": "(?:(\\.\\.\\.)\\s*)?([_$[:alpha:]][_$[:alnum:]]*)",
1534 "captures": {
1535 "1": {
1536 "name": "keyword.operator.rest.ts"
1537 },
1538 "2": {
1539 "name": "variable.parameter.ts"
1540 }
1541 }
1542 },
1543 "parameter-object-binding-pattern": {
1544 "begin": "(?:(\\.\\.\\.)\\s*)?(\\{)",
1545 "beginCaptures": {
1546 "1": {
1547 "name": "keyword.operator.rest.ts"
1548 },
1549 "2": {
1550 "name": "punctuation.definition.binding-pattern.object.ts"
1551 }
1552 },
1553 "end": "\\}",
1554 "endCaptures": {
1555 "0": {
1556 "name": "punctuation.definition.binding-pattern.object.ts"
1557 }
1558 },
1559 "patterns": [
1560 {
1561 "include": "#parameter-object-binding-element"
1562 }
1563 ]
1564 },
1565 "parameter-array-binding-pattern": {
1566 "begin": "(?:(\\.\\.\\.)\\s*)?(\\[)",
1567 "beginCaptures": {
1568 "1": {
1569 "name": "keyword.operator.rest.ts"
1570 },
1571 "2": {
1572 "name": "punctuation.definition.binding-pattern.array.ts"
1573 }
1574 },
1575 "end": "\\]",
1576 "endCaptures": {
1577 "0": {
1578 "name": "punctuation.definition.binding-pattern.array.ts"
1579 }
1580 },
1581 "patterns": [
1582 {
1583 "include": "#parameter-binding-element"
1584 },
1585 {
1586 "include": "#punctuation-comma"
1587 }
1588 ]
1589 },
1590 "return-type": {
1591 "name": "meta.return.type.ts",
1592 "begin": "(?<=\\))\\s*(:)",
1593 "beginCaptures": {
1594 "1": {
1595 "name": "keyword.operator.type.annotation.ts"
1596 }
1597 },
1598 "end": "(?<!:)((?=$)|(?=\\{|;|//|\\}))",
1599 "patterns": [
1600 {
1601 "include": "#comment"
1602 },
1603 {
1604 "name": "meta.object.type.ts",
1605 "begin": "(?<=:)\\s*(\\{)",
1606 "beginCaptures": {
1607 "1": {
1608 "name": "punctuation.definition.block.ts"
1609 }
1610 },
1611 "end": "\\}",
1612 "endCaptures": {
1613 "0": {
1614 "name": "punctuation.definition.block.ts"
1615 }
1616 },
1617 "patterns": [
1618 {
1619 "include": "#type-object-members"
1620 }
1621 ]
1622 },
1623 {
1624 "include": "#type-predicate-operator"
1625 },
1626 {
1627 "include": "#type"
1628 }
1629 ]
1630 },
1631 "type-predicate-operator": {
1632 "name": "keyword.operator.expression.is.ts",
1633 "match": "(?<!\\.|\\$)\\bis\\b(?!\\$)"
1634 },
1635 "type-annotation": {
1636 "name": "meta.type.annotation.ts",
1637 "begin": ":",
1638 "beginCaptures": {
1639 "0": {
1640 "name": "keyword.operator.type.annotation.ts"
1641 }
1642 },
1643 "end": "(?=$|[,);\\}\\]]|//)|(?==[^>])|(?<=[\\}>\\]\\)]|[_$[:alpha:]])\\s*(?=\\{)",
1644 "patterns": [
1645 {
1646 "include": "#comment"
1647 },
1648 {
1649 "include": "#type"
1650 }
1651 ]
1652 },
1653 "type": {
1654 "name": "meta.type.ts",
1655 "patterns": [
1656 {
1657 "include": "#comment"
1658 },
1659 {
1660 "include": "#string"
1661 },
1662 {
1663 "include": "#numeric-literal"
1664 },
1665 {
1666 "include": "#type-primitive"
1667 },
1668 {
1669 "include": "#type-builtin-literals"
1670 },
1671 {
1672 "include": "#type-parameters"
1673 },
1674 {
1675 "include": "#type-tuple"
1676 },
1677 {
1678 "include": "#type-object"
1679 },
1680 {
1681 "include": "#type-operators"
1682 },
1683 {
1684 "include": "#type-fn-type-parameters"
1685 },
1686 {
1687 "include": "#type-paren-or-function-parameters"
1688 },
1689 {
1690 "include": "#type-function-return-type"
1691 },
1692 {
1693 "include": "#type-name"
1694 }
1695 ]
1696 },
1697 "function-parameters": {
1698 "name": "meta.parameters.ts",
1699 "begin": "\\(",
1700 "beginCaptures": {
1701 "0": {
1702 "name": "punctuation.definition.parameters.begin.ts"
1703 }
1704 },
1705 "end": "\\)",
1706 "endCaptures": {
1707 "0": {
1708 "name": "punctuation.definition.parameters.end.ts"
1709 }
1710 },
1711 "patterns": [
1712 {
1713 "include": "#comment"
1714 },
1715 {
1716 "include": "#decorator"
1717 },
1718 {
1719 "include": "#destructuring-parameter"
1720 },
1721 {
1722 "include": "#parameter-name"
1723 },
1724 {
1725 "include": "#type-annotation"
1726 },
1727 {
1728 "include": "#variable-initializer"
1729 },
1730 {
1731 "name": "punctuation.separator.parameter.ts",
1732 "match": ","
1733 }
1734 ]
1735 },
1736 "type-primitive": {
1737 "name": "support.type.primitive.ts",
1738 "match": "(?<!\\.|\\$)\\b(string|number|boolean|symbol|any|void|never)\\b(?!\\$)"
1739 },
1740 "type-builtin-literals": {
1741 "name": "support.type.builtin.ts",
1742 "match": "(?<!\\.|\\$)\\b(this|true|false|undefined|null)\\b(?!\\$)"
1743 },
1744 "type-paren-or-function-parameters": {
1745 "name": "meta.type.paren.cover.ts",
1746 "begin": "\\(",
1747 "beginCaptures": {
1748 "0": {
1749 "name": "meta.brace.round.ts"
1750 }
1751 },
1752 "end": "\\)",
1753 "endCaptures": {
1754 "0": {
1755 "name": "meta.brace.round.ts"
1756 }
1757 },
1758 "patterns": [
1759 {
1760 "include": "#type"
1761 },
1762 {
1763 "include": "#function-parameters"
1764 }
1765 ]
1766 },
1767 "type-fn-type-parameters": {
1768 "patterns": [
1769 {
1770 "name": "meta.type.constructor.ts",
1771 "match": "(?<!\\.|\\$)\\b(new)\\b(?=\\s*\\<)",
1772 "captures": {
1773 "1": {
1774 "name": "keyword.control.new.ts"
1775 }
1776 }
1777 },
1778 {
1779 "name": "meta.type.constructor.ts",
1780 "begin": "(?<!\\.|\\$)\\b(new)\\b\\s*(?=\\()",
1781 "beginCaptures": {
1782 "1": {
1783 "name": "keyword.control.new.ts"
1784 }
1785 },
1786 "end": "(?<=\\))",
1787 "patterns": [
1788 {
1789 "include": "#function-parameters"
1790 }
1791 ]
1792 },
1793 {
1794 "name": "meta.type.function.ts",
1795 "begin": "(?<=\\>)\\s*(?=\\()",
1796 "end": "(?<=\\))",
1797 "patterns": [
1798 {
1799 "include": "#function-parameters"
1800 }
1801 ]
1802 },
1803 {
1804 "name": "meta.type.function.ts",
1805 "begin": "(?x)( (?= [(]\\s*( ([)]) | (\\.\\.\\.) | ([_$[:alnum:]]+\\s*( ([:,?=])| ([)]\\s*=>) )) ) ) )",
1806 "end": "(?<=\\))",
1807 "patterns": [
1808 {
1809 "include": "#function-parameters"
1810 }
1811 ]
1812 }
1813 ]
1814 },
1815 "type-operators": {
1816 "patterns": [
1817 {
1818 "include": "#typeof-operator"
1819 },
1820 {
1821 "name": "keyword.operator.type.ts",
1822 "match": "[&|]"
1823 },
1824 {
1825 "name": "keyword.operator.expression.keyof.ts",
1826 "match": "(?<!\\.|\\$)\\bkeyof\\b(?!\\$)"
1827 }
1828 ]
1829 },
1830 "type-function-return-type": {
1831 "name": "meta.type.function.return.ts",
1832 "begin": "=>",
1833 "beginCaptures": {
1834 "0": {
1835 "name": "storage.type.function.arrow.ts"
1836 }
1837 },
1838 "end": "(?<!=>)(?=[,\\]\\)\\{\\}=;>]|//|$)",
1839 "patterns": [
1840 {
1841 "include": "#comment"
1842 },
1843 {
1844 "name": "meta.object.type.ts",
1845 "begin": "(?<==>)\\s*(\\{)",
1846 "beginCaptures": {
1847 "1": {
1848 "name": "punctuation.definition.block.ts"
1849 }
1850 },
1851 "end": "\\}",
1852 "endCaptures": {
1853 "0": {
1854 "name": "punctuation.definition.block.ts"
1855 }
1856 },
1857 "patterns": [
1858 {
1859 "include": "#type-object-members"
1860 }
1861 ]
1862 },
1863 {
1864 "include": "#type-predicate-operator"
1865 },
1866 {
1867 "include": "#type"
1868 }
1869 ]
1870 },
1871 "type-tuple": {
1872 "name": "meta.type.tuple.ts",
1873 "begin": "\\[",
1874 "beginCaptures": {
1875 "0": {
1876 "name": "meta.brace.square.ts"
1877 }
1878 },
1879 "end": "\\]",
1880 "endCaptures": {
1881 "0": {
1882 "name": "meta.brace.square.ts"
1883 }
1884 },
1885 "patterns": [
1886 {
1887 "include": "#type"
1888 },
1889 {
1890 "include": "#punctuation-comma"
1891 }
1892 ]
1893 },
1894 "type-name": {
1895 "patterns": [
1896 {
1897 "match": "([_$[:alpha:]][_$[:alnum:]]*)\\s*(\\.)",
1898 "captures": {
1899 "1": {
1900 "name": "entity.name.type.module.ts"
1901 },
1902 "2": {
1903 "name": "punctuation.accessor.ts"
1904 }
1905 }
1906 },
1907 {
1908 "name": "entity.name.type.ts",
1909 "match": "[_$[:alpha:]][_$[:alnum:]]*"
1910 }
1911 ]
1912 },
1913 "type-parameters": {
1914 "name": "meta.type.parameters.ts",
1915 "begin": "(<)",
1916 "beginCaptures": {
1917 "1": {
1918 "name": "punctuation.definition.typeparameters.begin.ts"
1919 }
1920 },
1921 "end": "(?=$)|(>)",
1922 "endCaptures": {
1923 "1": {
1924 "name": "punctuation.definition.typeparameters.end.ts"
1925 }
1926 },
1927 "patterns": [
1928 {
1929 "include": "#comment"
1930 },
1931 {
1932 "name": "storage.modifier.ts",
1933 "match": "(?<!\\.|\\$)\\b(extends)\\b(?!\\$)"
1934 },
1935 {
1936 "include": "#type"
1937 },
1938 {
1939 "include": "#punctuation-comma"
1940 }
1941 ]
1942 },
1943 "variable-initializer": {
1944 "begin": "(?<!=|!)(=)(?!=)",
1945 "beginCaptures": {
1946 "1": {
1947 "name": "keyword.operator.assignment.ts"
1948 }
1949 },
1950 "end": "(?=$|[,);}\\]])",
1951 "patterns": [
1952 {
1953 "include": "#expression"
1954 }
1955 ]
1956 },
1957 "for-loop": {
1958 "begin": "(?<!\\.|\\$)\\b(for)\\s*(\\()",
1959 "beginCaptures": {
1960 "1": {
1961 "name": "keyword.control.loop.ts"
1962 },
1963 "2": {
1964 "name": "meta.brace.round.ts"
1965 }
1966 },
1967 "end": "\\)",
1968 "endCaptures": {
1969 "0": {
1970 "name": "meta.brace.round.ts"
1971 }
1972 },
1973 "patterns": [
1974 {
1975 "include": "#var-expr"
1976 },
1977 {
1978 "include": "#expression"
1979 },
1980 {
1981 "include": "#punctuation-semicolon"
1982 }
1983 ]
1984 },
1985 "switch-expression": {
1986 "name": "switch-expression.expr.ts",
1987 "begin": "(?<!\\.|\\$)\\b(switch)\\s*(\\()",
1988 "beginCaptures": {
1989 "1": {
1990 "name": "keyword.control.switch.ts"
1991 },
1992 "2": {
1993 "name": "meta.brace.round.ts"
1994 }
1995 },
1996 "end": "\\)",
1997 "endCaptures": {
1998 "0": {
1999 "name": "meta.brace.round.ts"
2000 }
2001 },
2002 "patterns": [
2003 {
2004 "include": "#expression"
2005 }
2006 ]
2007 },
2008 "switch-block": {
2009 "name": "switch-block.expr.ts",
2010 "begin": "{",
2011 "beginCaptures": {
2012 "0": {
2013 "name": "punctuation.definition.block.ts"
2014 }
2015 },
2016 "end": "(?=\\})",
2017 "patterns": [
2018 {
2019 "include": "#case-clause"
2020 },
2021 {
2022 "include": "#statements"
2023 }
2024 ]
2025 },
2026 "case-clause": {
2027 "name": "case-clause.expr.ts",
2028 "begin": "(?<!\\.|\\$)\\b(case|default(?=:))\\b(?!\\$)",
2029 "beginCaptures": {
2030 "1": {
2031 "name": "keyword.control.switch.ts"
2032 }
2033 },
2034 "end": ":",
2035 "endCaptures": {
2036 "0": {
2037 "name": "punctuation.definition.section.case-statement.ts"
2038 }
2039 },
2040 "patterns": [
2041 {
2042 "include": "#expression"
2043 }
2044 ]
2045 },
2046 "switch-statement": {
2047 "name": "switch-statement.expr.ts",
2048 "begin": "(?<!\\.|\\$)(?=\\bswitch\\s*\\()",
2049 "end": "}",
2050 "endCaptures": {
2051 "0": {
2052 "name": "punctuation.definition.block.ts"
2053 }
2054 },
2055 "patterns": [
2056 {
2057 "include": "#switch-expression"
2058 },
2059 {
2060 "include": "#switch-block"
2061 }
2062 ]
2063 },
2064 "support-objects": {
2065 "patterns": [
2066 {
2067 "name": "variable.language.arguments.ts",
2068 "match": "(?<!\\.|\\$)\\b(arguments)\\b(?!\\$)"
2069 },
2070 {
2071 "name": "support.class.builtin.ts",
2072 "match": "(?x)(?<!\\.|\\$)\\b(Array|ArrayBuffer|Atomics|Boolean|DataView|Date|Float32Array|Float64Array|Function|Generator |GeneratorFunction|Int8Array|Int16Array|Int32Array|Intl|Map|Number|Object|Promise|Proxy |Reflect|RegExp|Set|SharedArrayBuffer|SIMD|String|Symbol|TypedArray |Uint8Array|Uint16Array|Uint32Array|Uint8ClampedArray|WeakMap|WeakSet)\\b(?!\\$)"
2073 },
2074 {
2075 "name": "support.class.error.ts",
2076 "match": "(?<!\\.|\\$)\\b((Eval|Internal|Range|Reference|Syntax|Type|URI)?Error)\\b(?!\\$)"
2077 },
2078 {
2079 "name": "support.function.ts",
2080 "match": "(?x)(?<!\\.|\\$)\\b(clear(Interval|Timeout)|decodeURI|decodeURIComponent|encodeURI|encodeURIComponent|escape|eval| isFinite|isNaN|parseFloat|parseInt|require|set(Interval|Timeout)|super|unescape|uneval)(?=\\s*\\()"
2081 },
2082 {
2083 "match": "(?x)(?<!\\.|\\$)\\b(Math)(?:\\s*(\\.)\\s*(?:\n (abs|acos|acosh|asin|asinh|atan|atan2|atanh|cbrt|ceil|clz32|cos|cosh|exp|\n expm1|floor|fround|hypot|imul|log|log10|log1p|log2|max|min|pow|random|\n round|sign|sin|sinh|sqrt|tan|tanh|trunc)\n |\n (E|LN10|LN2|LOG10E|LOG2E|PI|SQRT1_2|SQRT2)))?\\b(?!\\$)",
2084 "captures": {
2085 "1": {
2086 "name": "support.constant.math.ts"
2087 },
2088 "2": {
2089 "name": "punctuation.accessor.ts"
2090 },
2091 "3": {
2092 "name": "support.function.math.ts"
2093 },
2094 "4": {
2095 "name": "support.constant.property.math.ts"
2096 }
2097 }
2098 },
2099 {
2100 "match": "(?x)(?<!\\.|\\$)\\b(console)(?:\\s*(\\.)\\s*(\n assert|clear|count|debug|dir|error|group|groupCollapsed|groupEnd|info|log\n |profile|profileEnd|table|time|timeEnd|timeStamp|trace|warn))?\\b(?!\\$)",
2101 "captures": {
2102 "1": {
2103 "name": "support.class.console.ts"
2104 },
2105 "2": {
2106 "name": "punctuation.accessor.ts"
2107 },
2108 "3": {
2109 "name": "support.function.console.ts"
2110 }
2111 }
2112 },
2113 {
2114 "match": "(?<!\\.|\\$)\\b(JSON)(?:\\s*(\\.)\\s*(parse|stringify))?\\b(?!\\$)",
2115 "captures": {
2116 "1": {
2117 "name": "support.constant.json.ts"
2118 },
2119 "2": {
2120 "name": "punctuation.accessor.ts"
2121 },
2122 "3": {
2123 "name": "support.function.json.ts"
2124 }
2125 }
2126 },
2127 {
2128 "match": "(?x) (\\.) \\s* (?:\n (constructor|length|prototype|__proto__) \n |\n (EPSILON|MAX_SAFE_INTEGER|MAX_VALUE|MIN_SAFE_INTEGER|MIN_VALUE|NEGATIVE_INFINITY|POSITIVE_INFINITY))\\b(?!\\$)",
2129 "captures": {
2130 "1": {
2131 "name": "punctuation.accessor.ts"
2132 },
2133 "2": {
2134 "name": "support.variable.property.ts"
2135 },
2136 "3": {
2137 "name": "support.constant.ts"
2138 }
2139 }
2140 },
2141 {
2142 "match": "(?x) (?<!\\.|\\$) \\b (?:\n (document|event|navigator|performance|screen|window) \n |\n (AnalyserNode|ArrayBufferView|Attr|AudioBuffer|AudioBufferSourceNode|AudioContext|AudioDestinationNode|AudioListener\n |AudioNode|AudioParam|BatteryManager|BeforeUnloadEvent|BiquadFilterNode|Blob|BufferSource|ByteString|CSS|CSSConditionRule\n |CSSCounterStyleRule|CSSGroupingRule|CSSMatrix|CSSMediaRule|CSSPageRule|CSSPrimitiveValue|CSSRule|CSSRuleList|CSSStyleDeclaration\n |CSSStyleRule|CSSStyleSheet|CSSSupportsRule|CSSValue|CSSValueList|CanvasGradient|CanvasImageSource|CanvasPattern\n |CanvasRenderingContext2D|ChannelMergerNode|ChannelSplitterNode|CharacterData|ChromeWorker|CloseEvent|Comment|CompositionEvent\n |Console|ConvolverNode|Coordinates|Credential|CredentialsContainer|Crypto|CryptoKey|CustomEvent|DOMError|DOMException\n |DOMHighResTimeStamp|DOMImplementation|DOMString|DOMStringList|DOMStringMap|DOMTimeStamp|DOMTokenList|DataTransfer\n |DataTransferItem|DataTransferItemList|DedicatedWorkerGlobalScope|DelayNode|DeviceProximityEvent|DirectoryEntry\n |DirectoryEntrySync|DirectoryReader|DirectoryReaderSync|Document|DocumentFragment|DocumentTouch|DocumentType|DragEvent\n |DynamicsCompressorNode|Element|Entry|EntrySync|ErrorEvent|Event|EventListener|EventSource|EventTarget|FederatedCredential\n |FetchEvent|File|FileEntry|FileEntrySync|FileException|FileList|FileReader|FileReaderSync|FileSystem|FileSystemSync\n |FontFace|FormData|GainNode|Gamepad|GamepadButton|GamepadEvent|Geolocation|GlobalEventHandlers|HTMLAnchorElement\n |HTMLAreaElement|HTMLAudioElement|HTMLBRElement|HTMLBaseElement|HTMLBodyElement|HTMLButtonElement|HTMLCanvasElement\n |HTMLCollection|HTMLContentElement|HTMLDListElement|HTMLDataElement|HTMLDataListElement|HTMLDialogElement|HTMLDivElement\n |HTMLDocument|HTMLElement|HTMLEmbedElement|HTMLFieldSetElement|HTMLFontElement|HTMLFormControlsCollection|HTMLFormElement\n |HTMLHRElement|HTMLHeadElement|HTMLHeadingElement|HTMLHtmlElement|HTMLIFrameElement|HTMLImageElement|HTMLInputElement\n |HTMLKeygenElement|HTMLLIElement|HTMLLabelElement|HTMLLegendElement|HTMLLinkElement|HTMLMapElement|HTMLMediaElement\n |HTMLMetaElement|HTMLMeterElement|HTMLModElement|HTMLOListElement|HTMLObjectElement|HTMLOptGroupElement|HTMLOptionElement\n |HTMLOptionsCollection|HTMLOutputElement|HTMLParagraphElement|HTMLParamElement|HTMLPreElement|HTMLProgressElement\n |HTMLQuoteElement|HTMLScriptElement|HTMLSelectElement|HTMLShadowElement|HTMLSourceElement|HTMLSpanElement|HTMLStyleElement\n |HTMLTableCaptionElement|HTMLTableCellElement|HTMLTableColElement|HTMLTableDataCellElement|HTMLTableElement|HTMLTableHeaderCellElement\n |HTMLTableRowElement|HTMLTableSectionElement|HTMLTextAreaElement|HTMLTimeElement|HTMLTitleElement|HTMLTrackElement\n |HTMLUListElement|HTMLUnknownElement|HTMLVideoElement|HashChangeEvent|History|IDBCursor|IDBCursorWithValue|IDBDatabase\n |IDBEnvironment|IDBFactory|IDBIndex|IDBKeyRange|IDBMutableFile|IDBObjectStore|IDBOpenDBRequest|IDBRequest|IDBTransaction\n |IDBVersionChangeEvent|IIRFilterNode|IdentityManager|ImageBitmap|ImageBitmapFactories|ImageData|Index|InputDeviceCapabilities\n |InputEvent|InstallEvent|InstallTrigger|KeyboardEvent|LinkStyle|LocalFileSystem|LocalFileSystemSync|Location|MIDIAccess\n |MIDIConnectionEvent|MIDIInput|MIDIInputMap|MIDIOutputMap|MediaElementAudioSourceNode|MediaError|MediaKeyMessageEvent\n |MediaKeySession|MediaKeyStatusMap|MediaKeySystemAccess|MediaKeySystemConfiguration|MediaKeys|MediaRecorder|MediaStream\n |MediaStreamAudioDestinationNode|MediaStreamAudioSourceNode|MessageChannel|MessageEvent|MessagePort|MouseEvent\n |MutationObserver|MutationRecord|NamedNodeMap|Navigator|NavigatorConcurrentHardware|NavigatorGeolocation|NavigatorID\n |NavigatorLanguage|NavigatorOnLine|Node|NodeFilter|NodeIterator|NodeList|NonDocumentTypeChildNode|Notification\n |OfflineAudioCompletionEvent|OfflineAudioContext|OscillatorNode|PageTransitionEvent|PannerNode|ParentNode|PasswordCredential\n |Path2D|PaymentAddress|PaymentRequest|PaymentResponse|Performance|PerformanceEntry|PerformanceFrameTiming|PerformanceMark\n |PerformanceMeasure|PerformanceNavigation|PerformanceNavigationTiming|PerformanceObserver|PerformanceObserverEntryList\n |PerformanceResourceTiming|PerformanceTiming|PeriodicSyncEvent|PeriodicWave|Plugin|Point|PointerEvent|PopStateEvent\n |PortCollection|Position|PositionError|PositionOptions|PresentationConnectionClosedEvent|PresentationConnectionList\n |PresentationReceiver|ProcessingInstruction|ProgressEvent|PromiseRejectionEvent|PushEvent|PushRegistrationManager\n |RTCCertificate|RTCConfiguration|RTCPeerConnection|RTCSessionDescriptionCallback|RTCStatsReport|RadioNodeList|RandomSource\n |Range|ReadableByteStream|RenderingContext|SVGAElement|SVGAngle|SVGAnimateColorElement|SVGAnimateElement|SVGAnimateMotionElement\n |SVGAnimateTransformElement|SVGAnimatedAngle|SVGAnimatedBoolean|SVGAnimatedEnumeration|SVGAnimatedInteger|SVGAnimatedLength\n |SVGAnimatedLengthList|SVGAnimatedNumber|SVGAnimatedNumberList|SVGAnimatedPoints|SVGAnimatedPreserveAspectRatio\n |SVGAnimatedRect|SVGAnimatedString|SVGAnimatedTransformList|SVGAnimationElement|SVGCircleElement|SVGClipPathElement\n |SVGCursorElement|SVGDefsElement|SVGDescElement|SVGElement|SVGEllipseElement|SVGEvent|SVGFilterElement|SVGFontElement\n |SVGFontFaceElement|SVGFontFaceFormatElement|SVGFontFaceNameElement|SVGFontFaceSrcElement|SVGFontFaceUriElement\n |SVGForeignObjectElement|SVGGElement|SVGGlyphElement|SVGGradientElement|SVGHKernElement|SVGImageElement|SVGLength\n |SVGLengthList|SVGLineElement|SVGLinearGradientElement|SVGMPathElement|SVGMaskElement|SVGMatrix|SVGMissingGlyphElement\n |SVGNumber|SVGNumberList|SVGPathElement|SVGPatternElement|SVGPoint|SVGPolygonElement|SVGPolylineElement|SVGPreserveAspectRatio\n |SVGRadialGradientElement|SVGRect|SVGRectElement|SVGSVGElement|SVGScriptElement|SVGSetElement|SVGStopElement|SVGStringList\n |SVGStylable|SVGStyleElement|SVGSwitchElement|SVGSymbolElement|SVGTRefElement|SVGTSpanElement|SVGTests|SVGTextElement\n |SVGTextPositioningElement|SVGTitleElement|SVGTransform|SVGTransformList|SVGTransformable|SVGUseElement|SVGVKernElement\n |SVGViewElement|ServiceWorker|ServiceWorkerContainer|ServiceWorkerGlobalScope|ServiceWorkerRegistration|ServiceWorkerState\n |ShadowRoot|SharedWorker|SharedWorkerGlobalScope|SourceBufferList|StereoPannerNode|Storage|StorageEvent|StyleSheet\n |StyleSheetList|SubtleCrypto|SyncEvent|Text|TextMetrics|TimeEvent|TimeRanges|Touch|TouchEvent|TouchList|Transferable\n |TreeWalker|UIEvent|USVString|VRDisplayCapabilities|ValidityState|WaveShaperNode|WebGL|WebGLActiveInfo|WebGLBuffer\n |WebGLContextEvent|WebGLFramebuffer|WebGLProgram|WebGLRenderbuffer|WebGLRenderingContext|WebGLShader|WebGLShaderPrecisionFormat\n |WebGLTexture|WebGLTimerQueryEXT|WebGLTransformFeedback|WebGLUniformLocation|WebGLVertexArrayObject|WebGLVertexArrayObjectOES\n |WebSocket|WebSockets|WebVTT|WheelEvent|Window|WindowBase64|WindowEventHandlers|WindowTimers|Worker|WorkerGlobalScope\n |WorkerLocation|WorkerNavigator|XMLHttpRequest|XMLHttpRequestEventTarget|XMLSerializer|XPathExpression|XPathResult\n |XSLTProcessor))\\b(?!\\$)",
2143 "captures": {
2144 "1": {
2145 "name": "support.variable.dom.ts"
2146 },
2147 "2": {
2148 "name": "support.class.dom.ts"
2149 }
2150 }
2151 },
2152 {
2153 "match": "(?x) (\\.) \\s* (?:\n (ATTRIBUTE_NODE|CDATA_SECTION_NODE|COMMENT_NODE|DOCUMENT_FRAGMENT_NODE|DOCUMENT_NODE|DOCUMENT_TYPE_NODE\n |DOMSTRING_SIZE_ERR|ELEMENT_NODE|ENTITY_NODE|ENTITY_REFERENCE_NODE|HIERARCHY_REQUEST_ERR|INDEX_SIZE_ERR\n |INUSE_ATTRIBUTE_ERR|INVALID_CHARACTER_ERR|NO_DATA_ALLOWED_ERR|NO_MODIFICATION_ALLOWED_ERR|NOT_FOUND_ERR\n |NOT_SUPPORTED_ERR|NOTATION_NODE|PROCESSING_INSTRUCTION_NODE|TEXT_NODE|WRONG_DOCUMENT_ERR)\n |\n (_content|[xyz]|abbr|above|accept|acceptCharset|accessKey|action|align|[av]Link(?:color)?|all|alt|anchors|appCodeName\n |appCore|applets|appMinorVersion|appName|appVersion|archive|areas|arguments|attributes|availHeight|availLeft|availTop\n |availWidth|axis|background|backgroundColor|backgroundImage|below|bgColor|body|border|borderBottomWidth|borderColor\n |borderLeftWidth|borderRightWidth|borderStyle|borderTopWidth|borderWidth|bottom|bufferDepth|callee|caller|caption\n |cellPadding|cells|cellSpacing|ch|characterSet|charset|checked|childNodes|chOff|cite|classes|className|clear\n |clientInformation|clip|clipBoardData|closed|code|codeBase|codeType|color|colorDepth|cols|colSpan|compact|complete\n |components|content|controllers|cookie|cookieEnabled|cords|cpuClass|crypto|current|data|dateTime|declare|defaultCharset\n |defaultChecked|defaultSelected|defaultStatus|defaultValue|defaultView|defer|description|dialogArguments|dialogHeight\n |dialogLeft|dialogTop|dialogWidth|dir|directories|disabled|display|docmain|doctype|documentElement|elements|embeds\n |enabledPlugin|encoding|enctype|entities|event|expando|external|face|fgColor|filename|firstChild|fontFamily|fontSize\n |fontWeight|form|formName|forms|frame|frameBorder|frameElement|frames|hasFocus|hash|headers|height|history|host\n |hostname|href|hreflang|hspace|htmlFor|httpEquiv|id|ids|ignoreCase|images|implementation|index|innerHeight|innerWidth\n |input|isMap|label|lang|language|lastChild|lastIndex|lastMatch|lastModified|lastParen|layer[sXY]|left|leftContext\n |lineHeight|link|linkColor|links|listStyleType|localName|location|locationbar|longDesc|lowsrc|lowSrc|marginBottom\n |marginHeight|marginLeft|marginRight|marginTop|marginWidth|maxLength|media|menubar|method|mimeTypes|multiline|multiple\n |name|nameProp|namespaces|namespaceURI|next|nextSibling|nodeName|nodeType|nodeValue|noHref|noResize|noShade|notationName\n |notations|noWrap|object|offscreenBuffering|onLine|onreadystatechange|opener|opsProfile|options|oscpu|outerHeight\n |outerWidth|ownerDocument|paddingBottom|paddingLeft|paddingRight|paddingTop|page[XY]|page[XY]Offset|parent|parentLayer\n |parentNode|parentWindow|pathname|personalbar|pixelDepth|pkcs11|platform|plugins|port|prefix|previous|previousDibling\n |product|productSub|profile|profileend|prompt|prompter|protocol|publicId|readOnly|readyState|referrer|rel|responseText\n |responseXML|rev|right|rightContext|rowIndex|rows|rowSpan|rules|scheme|scope|screen[XY]|screenLeft|screenTop|scripts\n |scrollbars|scrolling|sectionRowIndex|security|securityPolicy|selected|selectedIndex|selection|self|shape|siblingAbove\n |siblingBelow|size|source|specified|standby|start|status|statusbar|statusText|style|styleSheets|suffixes|summary\n |systemId|systemLanguage|tagName|tags|target|tBodies|text|textAlign|textDecoration|textIndent|textTransform|tFoot|tHead\n |title|toolbar|top|type|undefined|uniqueID|updateInterval|URL|URLUnencoded|useMap|userAgent|userLanguage|userProfile\n |vAlign|value|valueType|vendor|vendorSub|version|visibility|vspace|whiteSpace|width|X[MS]LDocument|zIndex))\\b(?!\\$|\\s*(<([^<>]|\\<[^<>]+\\>)+>\\s*)?\\()",
2154 "captures": {
2155 "1": {
2156 "name": "punctuation.accessor.ts"
2157 },
2158 "2": {
2159 "name": "support.constant.dom.ts"
2160 },
2161 "3": {
2162 "name": "support.variable.property.dom.ts"
2163 }
2164 }
2165 },
2166 {
2167 "name": "support.class.node.ts",
2168 "match": "(?x)(?<!\\.|\\$)\\b(Buffer|EventEmitter|Server|Pipe|Socket|REPLServer|ReadStream|WriteStream|Stream\n |Inflate|Deflate|InflateRaw|DeflateRaw|GZip|GUnzip|Unzip|Zip)\\b(?!\\$)"
2169 },
2170 {
2171 "name": "support.module.node.ts",
2172 "match": "(?x)(?<!\\.|\\$)\\b(assert|buffer|child_process|cluster|constants|crypto|dgram|dns|domain|events|fs|http|https|net\n |os|path|punycode|querystring|readline|repl|stream|string_decoder|timers|tls|tty|url|util|vm|zlib)\\b(?!\\$)"
2173 },
2174 {
2175 "match": "(?x)(?<!\\.|\\$)\\b(process)(?:(\\.)(?:\n (arch|argv|config|connected|env|execArgv|execPath|exitCode|mainModule|pid|platform|release|stderr|stdin|stdout|title|version|versions)\n |\n (abort|chdir|cwd|disconnect|exit|[sg]ete?[gu]id|send|[sg]etgroups|initgroups|kill|memoryUsage|nextTick|umask|uptime|hrtime)\n))?\\b(?!\\$)",
2176 "captures": {
2177 "1": {
2178 "name": "support.variable.object.process.ts"
2179 },
2180 "2": {
2181 "name": "punctuation.accessor.ts"
2182 },
2183 "3": {
2184 "name": "support.variable.property.process.ts"
2185 },
2186 "4": {
2187 "name": "support.function.process.ts"
2188 }
2189 }
2190 },
2191 {
2192 "match": "(?<!\\.|\\$)\\b(?:(exports)|(module)(?:(\\.)(exports|id|filename|loaded|parent|children))?)\\b(?!\\$)",
2193 "captures": {
2194 "1": {
2195 "name": "support.type.object.module.ts"
2196 },
2197 "2": {
2198 "name": "support.type.object.module.ts"
2199 },
2200 "3": {
2201 "name": "punctuation.accessor.ts"
2202 },
2203 "4": {
2204 "name": "support.type.object.module.ts"
2205 }
2206 }
2207 },
2208 {
2209 "name": "support.variable.object.node.ts",
2210 "match": "(?<!\\.|\\$)\\b(global|GLOBAL|root|__dirname|__filename)\\b(?!\\$)"
2211 },
2212 {
2213 "match": "(?x) (\\.) \\s* \n(?:\n (on(?:Rowsinserted|Rowsdelete|Rowenter|Rowexit|Resize|Resizestart|Resizeend|Reset|\n Readystatechange|Mouseout|Mouseover|Mousedown|Mouseup|Mousemove|\n Before(?:cut|deactivate|unload|update|paste|print|editfocus|activate)|\n Blur|Scrolltop|Submit|Select|Selectstart|Selectionchange|Hover|Help|\n Change|Contextmenu|Controlselect|Cut|Cellchange|Clock|Close|Deactivate|\n Datasetchanged|Datasetcomplete|Dataavailable|Drop|Drag|Dragstart|Dragover|\n Dragdrop|Dragenter|Dragend|Dragleave|Dblclick|Unload|Paste|Propertychange|Error|\n Errorupdate|Keydown|Keyup|Keypress|Focus|Load|Activate|Afterupdate|Afterprint|Abort)\n ) |\n (shift|showModelessDialog|showModalDialog|showHelp|scroll|scrollX|scrollByPages|\n scrollByLines|scrollY|scrollTo|stop|strike|sizeToContent|sidebar|signText|sort|\n sup|sub|substr|substring|splice|split|send|set(?:Milliseconds|Seconds|Minutes|Hours|\n Month|Year|FullYear|Date|UTC(?:Milliseconds|Seconds|Minutes|Hours|Month|FullYear|Date)|\n Time|Hotkeys|Cursor|ZOptions|Active|Resizable|RequestHeader)|search|slice|\n savePreferences|small|home|handleEvent|navigate|char|charCodeAt|charAt|concat|\n contextual|confirm|compile|clear|captureEvents|call|createStyleSheet|createPopup|\n createEventObject|to(?:GMTString|UTCString|String|Source|UpperCase|LowerCase|LocaleString)|\n test|taint|taintEnabled|indexOf|italics|disableExternalCapture|dump|detachEvent|unshift|\n untaint|unwatch|updateCommands|join|javaEnabled|pop|push|plugins.refresh|paddings|parse|\n print|prompt|preference|enableExternalCapture|exec|execScript|valueOf|UTC|find|file|\n fileModifiedDate|fileSize|fileCreatedDate|fileUpdatedDate|fixed|fontsize|fontcolor|\n forward|fromCharCode|watch|link|load|lastIndexOf|anchor|attachEvent|atob|apply|alert|\n abort|routeEvents|resize|resizeBy|resizeTo|recalc|returnValue|replace|reverse|reload|\n releaseCapture|releaseEvents|go|get(?:Milliseconds|Seconds|Minutes|Hours|Month|Day|Year|FullYear|\n Time|Date|TimezoneOffset|UTC(?:Milliseconds|Seconds|Minutes|Hours|Day|Month|FullYear|Date)|\n Attention|Selection|ResponseHeader|AllResponseHeaders)|moveBy|moveBelow|moveTo|\n moveToAbsolute|moveAbove|mergeAttributes|match|margins|btoa|big|bold|borderWidths|blink|back\n ) |\n (acceptNode|add|addEventListener|addTextTrack|adoptNode|after|animate|append|\n appendChild|appendData|before|blur|canPlayType|captureStream|\n caretPositionFromPoint|caretRangeFromPoint|checkValidity|clear|click|\n cloneContents|cloneNode|cloneRange|close|closest|collapse|\n compareBoundaryPoints|compareDocumentPosition|comparePoint|contains|\n convertPointFromNode|convertQuadFromNode|convertRectFromNode|createAttribute|\n createAttributeNS|createCaption|createCDATASection|createComment|\n createContextualFragment|createDocument|createDocumentFragment|\n createDocumentType|createElement|createElementNS|createEntityReference|\n createEvent|createExpression|createHTMLDocument|createNodeIterator|\n createNSResolver|createProcessingInstruction|createRange|createShadowRoot|\n createTBody|createTextNode|createTFoot|createTHead|createTreeWalker|delete|\n deleteCaption|deleteCell|deleteContents|deleteData|deleteRow|deleteTFoot|\n deleteTHead|detach|disconnect|dispatchEvent|elementFromPoint|elementsFromPoint|\n enableStyleSheetsForSet|entries|evaluate|execCommand|exitFullscreen|\n exitPointerLock|expand|extractContents|fastSeek|firstChild|focus|forEach|get|\n getAll|getAnimations|getAttribute|getAttributeNames|getAttributeNode|\n getAttributeNodeNS|getAttributeNS|getBoundingClientRect|getBoxQuads|\n getClientRects|getContext|getDestinationInsertionPoints|getElementById|\n getElementsByClassName|getElementsByName|getElementsByTagName|\n getElementsByTagNameNS|getItem|getNamedItem|getSelection|getStartDate|\n getVideoPlaybackQuality|has|hasAttribute|hasAttributeNS|hasAttributes|\n hasChildNodes|hasFeature|hasFocus|importNode|initEvent|insertAdjacentElement|\n insertAdjacentHTML|insertAdjacentText|insertBefore|insertCell|insertData|\n insertNode|insertRow|intersectsNode|isDefaultNamespace|isEqualNode|\n isPointInRange|isSameNode|item|key|keys|lastChild|load|lookupNamespaceURI|\n lookupPrefix|matches|move|moveAttribute|moveAttributeNode|moveChild|\n moveNamedItem|namedItem|nextNode|nextSibling|normalize|observe|open|\n parentNode|pause|play|postMessage|prepend|preventDefault|previousNode|\n previousSibling|probablySupportsContext|queryCommandEnabled|\n queryCommandIndeterm|queryCommandState|queryCommandSupported|queryCommandValue|\n querySelector|querySelectorAll|registerContentHandler|registerElement|\n registerProtocolHandler|releaseCapture|releaseEvents|remove|removeAttribute|\n removeAttributeNode|removeAttributeNS|removeChild|removeEventListener|\n removeItem|replace|replaceChild|replaceData|replaceWith|reportValidity|\n requestFullscreen|requestPointerLock|reset|scroll|scrollBy|scrollIntoView|\n scrollTo|seekToNextFrame|select|selectNode|selectNodeContents|set|setAttribute|\n setAttributeNode|setAttributeNodeNS|setAttributeNS|setCapture|\n setCustomValidity|setEnd|setEndAfter|setEndBefore|setItem|setNamedItem|\n setRangeText|setSelectionRange|setSinkId|setStart|setStartAfter|setStartBefore|\n slice|splitText|stepDown|stepUp|stopImmediatePropagation|stopPropagation|\n submit|substringData|supports|surroundContents|takeRecords|terminate|toBlob|\n toDataURL|toggle|toString|values|write|writeln\n )\n)(?=\\s*\\()",
2214 "captures": {
2215 "1": {
2216 "name": "punctuation.accessor.ts"
2217 },
2218 "2": {
2219 "name": "support.function.event-handler.ts"
2220 },
2221 "3": {
2222 "name": "support.function.ts"
2223 },
2224 "4": {
2225 "name": "support.function.dom.ts"
2226 }
2227 }
2228 }
2229 ]
2230 },
2231 "function-call": {
2232 "begin": "(?=(\\.\\s*)?([_$[:alpha:]][_$[:alnum:]]*)\\s*(<([^<>]|\\<[^<>]+\\>)+>\\s*)?\\()",
2233 "end": "(?<=\\))(?!(\\.\\s*)?([_$[:alpha:]][_$[:alnum:]]*)\\s*(<([^<>]|\\<[^<>]+\\>)+>\\s*)?\\()",
2234 "patterns": [
2235 {
2236 "include": "#support-objects"
2237 },
2238 {
2239 "name": "punctuation.accessor.ts",
2240 "match": "\\."
2241 },
2242 {
2243 "name": "entity.name.function.ts",
2244 "match": "([_$[:alpha:]][_$[:alnum:]]*)"
2245 },
2246 {
2247 "include": "#comment"
2248 },
2249 {
2250 "name": "meta.type.parameters.ts",
2251 "begin": "\\<",
2252 "beginCaptures": {
2253 "0": {
2254 "name": "punctuation.definition.typeparameters.begin.ts"
2255 }
2256 },
2257 "end": "\\>",
2258 "endCaptures": {
2259 "0": {
2260 "name": "punctuation.definition.typeparameters.end.ts"
2261 }
2262 },
2263 "patterns": [
2264 {
2265 "include": "#type"
2266 },
2267 {
2268 "include": "#punctuation-comma"
2269 }
2270 ]
2271 },
2272 {
2273 "include": "#paren-expression"
2274 }
2275 ]
2276 },
2277 "identifiers": {
2278 "patterns": [
2279 {
2280 "name": "support.class.ts",
2281 "match": "([_$[:alpha:]][_$[:alnum:]]*)(?=\\s*\\.\\s*prototype\\b(?!\\$))"
2282 },
2283 {
2284 "match": "(?x)(\\.)\\s*(?:\n ([[:upper:]][_$[:digit:][:upper:]]*) |\n ([_$[:alpha:]][_$[:alnum:]]*)\n)(?=\\s*\\.\\s*[_$[:alpha:]][_$[:alnum:]]*)",
2285 "captures": {
2286 "1": {
2287 "name": "punctuation.accessor.ts"
2288 },
2289 "2": {
2290 "name": "constant.other.object.property.ts"
2291 },
2292 "3": {
2293 "name": "variable.other.object.property.ts"
2294 }
2295 }
2296 },
2297 {
2298 "match": "(?x)(?:(\\.)\\s*)?([_$[:alpha:]][_$[:alnum:]]*)(?=\\s*=\\s*( (async\\s+)|(function\\s*[(<])|(function\\s+)| ([_$[:alpha:]][_$[:alnum:]]*\\s*=>)| ((<([^<>]|\\<[^<>]+\\>)+>\\s*)?\\(([^()]|\\([^()]*\\))*\\)(\\s*:\\s*(.)*)?\\s*=>)))",
2299 "captures": {
2300 "1": {
2301 "name": "punctuation.accessor.ts"
2302 },
2303 "2": {
2304 "name": "entity.name.function.ts"
2305 }
2306 }
2307 },
2308 {
2309 "match": "(\\.)\\s*([[:upper:]][_$[:digit:][:upper:]]*)(?![_$[:alnum:]])",
2310 "captures": {
2311 "1": {
2312 "name": "punctuation.accessor.ts"
2313 },
2314 "2": {
2315 "name": "constant.other.property.ts"
2316 }
2317 }
2318 },
2319 {
2320 "match": "(\\.)\\s*([_$[:alpha:]][_$[:alnum:]]*)",
2321 "captures": {
2322 "1": {
2323 "name": "punctuation.accessor.ts"
2324 },
2325 "2": {
2326 "name": "variable.other.property.ts"
2327 }
2328 }
2329 },
2330 {
2331 "match": "(?x)(?:\n ([[:upper:]][_$[:digit:][:upper:]]*) |\n ([_$[:alpha:]][_$[:alnum:]]*)\n)(?=\\s*\\.\\s*[_$[:alpha:]][_$[:alnum:]]*)",
2332 "captures": {
2333 "1": {
2334 "name": "constant.other.object.ts"
2335 },
2336 "2": {
2337 "name": "variable.other.object.ts"
2338 }
2339 }
2340 },
2341 {
2342 "name": "constant.other.ts",
2343 "match": "([[:upper:]][_$[:digit:][:upper:]]*)(?![_$[:alnum:]])"
2344 },
2345 {
2346 "name": "variable.other.readwrite.ts",
2347 "match": "[_$[:alpha:]][_$[:alnum:]]*"
2348 }
2349 ]
2350 },
2351 "cast": {
2352 "name": "cast.expr.ts",
2353 "begin": "(?:(?<=return|throw|yield|await|default|[=(,:>*]))\\s*(<)(?!<?\\=)",
2354 "beginCaptures": {
2355 "1": {
2356 "name": "meta.brace.angle.ts"
2357 }
2358 },
2359 "end": ">",
2360 "endCaptures": {
2361 "0": {
2362 "name": "meta.brace.angle.ts"
2363 }
2364 },
2365 "patterns": [
2366 {
2367 "include": "#type"
2368 }
2369 ]
2370 },
2371 "new-expr": {
2372 "name": "new.expr.ts",
2373 "begin": "(?<!\\.|\\$)\\b(new)\\b(?!\\$)",
2374 "beginCaptures": {
2375 "1": {
2376 "name": "keyword.operator.new.ts"
2377 }
2378 },
2379 "end": "(?<=\\))|(?=[;),]|$|((?<!\\.|\\$)\\bnew\\b(?!\\$)))",
2380 "patterns": [
2381 {
2382 "include": "#paren-expression"
2383 },
2384 {
2385 "include": "#class-or-interface-declaration"
2386 },
2387 {
2388 "include": "#type"
2389 }
2390 ]
2391 },
2392 "object-member": {
2393 "patterns": [
2394 {
2395 "include": "#comment"
2396 },
2397 {
2398 "include": "#method-declaration"
2399 },
2400 {
2401 "name": "meta.object.member.ts",
2402 "begin": "(?=(?:(?:\\'[^']*\\')|(?:\\\"[^\"]*\\\")|(?:\\[([^\\[\\]]|\\[[^\\[\\]]+\\])+\\]))\\s*:)",
2403 "end": "(?=,|\\})",
2404 "patterns": [
2405 {
2406 "name": "meta.object-literal.key.ts",
2407 "begin": "(?=(?:(?:\\'[^']*\\')|(?:\\\"[^\"]*\\\")|(?:\\[([^\\[\\]]|\\[[^\\[\\]]+\\])+\\]))\\s*:)",
2408 "end": ":",
2409 "endCaptures": {
2410 "0": {
2411 "name": "punctuation.separator.key-value.ts"
2412 }
2413 },
2414 "patterns": [
2415 {
2416 "include": "#string"
2417 },
2418 {
2419 "include": "#array-literal"
2420 }
2421 ]
2422 },
2423 {
2424 "include": "#expression"
2425 }
2426 ]
2427 },
2428 {
2429 "name": "meta.object.member.ts",
2430 "begin": "(?x)(?:([_$[:alpha:]][_$[:alnum:]]*)\\s*(:)(?=\\s*( (async\\s+)|(function\\s*[(<])|(function\\s+)| ([_$[:alpha:]][_$[:alnum:]]*\\s*=>)| ((<([^<>]|\\<[^<>]+\\>)+>\\s*)?\\(([^()]|\\([^()]*\\))*\\)(\\s*:\\s*(.)*)?\\s*=>))))",
2431 "beginCaptures": {
2432 "0": {
2433 "name": "meta.object-literal.key.ts"
2434 },
2435 "1": {
2436 "name": "entity.name.function.ts"
2437 },
2438 "2": {
2439 "name": "punctuation.separator.key-value.ts"
2440 }
2441 },
2442 "end": "(?=,|\\})",
2443 "patterns": [
2444 {
2445 "include": "#expression"
2446 }
2447 ]
2448 },
2449 {
2450 "name": "meta.object.member.ts",
2451 "begin": "(?:[_$[:alpha:]][_$[:alnum:]]*)\\s*(:)",
2452 "beginCaptures": {
2453 "0": {
2454 "name": "meta.object-literal.key.ts"
2455 },
2456 "1": {
2457 "name": "punctuation.separator.key-value.ts"
2458 }
2459 },
2460 "end": "(?=,|\\})",
2461 "patterns": [
2462 {
2463 "include": "#expression"
2464 }
2465 ]
2466 },
2467 {
2468 "name": "meta.object.member.ts",
2469 "begin": "\\.\\.\\.",
2470 "beginCaptures": {
2471 "0": {
2472 "name": "keyword.operator.spread.ts"
2473 }
2474 },
2475 "end": "(?=,|\\})",
2476 "patterns": [
2477 {
2478 "include": "#expression"
2479 }
2480 ]
2481 },
2482 {
2483 "name": "meta.object.member.ts",
2484 "match": "([_$[:alpha:]][_$[:alnum:]]*)\\s*(?=,|\\}|$)",
2485 "captures": {
2486 "1": {
2487 "name": "variable.other.readwrite.ts"
2488 }
2489 }
2490 },
2491 {
2492 "include": "#punctuation-comma"
2493 }
2494 ]
2495 },
2496 "expression-operators": {
2497 "patterns": [
2498 {
2499 "name": "keyword.control.flow.ts",
2500 "match": "(?<!\\.|\\$)\\b(await)\\b(?!\\$)"
2501 },
2502 {
2503 "name": "keyword.operator.expression.delete.ts",
2504 "match": "(?<!\\.|\\$)\\bdelete\\b(?!\\$)"
2505 },
2506 {
2507 "name": "keyword.operator.expression.in.ts",
2508 "match": "(?<!\\.|\\$)\\bin\\b(?!\\$)"
2509 },
2510 {
2511 "name": "keyword.operator.expression.of.ts",
2512 "match": "(?<!\\.|\\$)\\bof\\b(?!\\$)"
2513 },
2514 {
2515 "name": "keyword.operator.expression.instanceof.ts",
2516 "match": "(?<!\\.|\\$)\\binstanceof\\b(?!\\$)"
2517 },
2518 {
2519 "name": "keyword.operator.new.ts",
2520 "match": "(?<!\\.|\\$)\\bnew\\b(?!\\$)"
2521 },
2522 {
2523 "include": "#typeof-operator"
2524 },
2525 {
2526 "name": "keyword.operator.expression.void.ts",
2527 "match": "(?<!\\.|\\$)\\bvoid\\b(?!\\$)"
2528 },
2529 {
2530 "begin": "(?<!\\.|\\$)\\bas\\b(?!\\$)",
2531 "beginCaptures": {
2532 "0": {
2533 "name": "keyword.control.as.ts"
2534 }
2535 },
2536 "end": "(?=$|[;,:})\\]])",
2537 "patterns": [
2538 {
2539 "include": "#type"
2540 }
2541 ]
2542 },
2543 {
2544 "name": "keyword.operator.spread.ts",
2545 "match": "\\.\\.\\."
2546 },
2547 {
2548 "name": "keyword.operator.assignment.compound.ts",
2549 "match": "\\*=|(?<!\\()/=|%=|\\+=|\\-="
2550 },
2551 {
2552 "name": "keyword.operator.assignment.compound.bitwise.ts",
2553 "match": "\\&=|\\^=|<<=|>>=|>>>=|\\|="
2554 },
2555 {
2556 "name": "keyword.operator.bitwise.shift.ts",
2557 "match": "<<|>>>|>>"
2558 },
2559 {
2560 "name": "keyword.operator.comparison.ts",
2561 "match": "===|!==|==|!="
2562 },
2563 {
2564 "name": "keyword.operator.relational.ts",
2565 "match": "<=|>=|<>|<|>"
2566 },
2567 {
2568 "name": "keyword.operator.logical.ts",
2569 "match": "\\!|&&|\\|\\|"
2570 },
2571 {
2572 "name": "keyword.operator.bitwise.ts",
2573 "match": "\\&|~|\\^|\\|"
2574 },
2575 {
2576 "name": "keyword.operator.assignment.ts",
2577 "match": "\\="
2578 },
2579 {
2580 "name": "keyword.operator.decrement.ts",
2581 "match": "--"
2582 },
2583 {
2584 "name": "keyword.operator.increment.ts",
2585 "match": "\\+\\+"
2586 },
2587 {
2588 "name": "keyword.operator.arithmetic.ts",
2589 "match": "%|\\*|/|-|\\+"
2590 },
2591 {
2592 "match": "(?<=[_$[:alnum:]])\\s*(/)(?![/*])",
2593 "captures": {
2594 "1": {
2595 "name": "keyword.operator.arithmetic.ts"
2596 }
2597 }
2598 }
2599 ]
2600 },
2601 "typeof-operator": {
2602 "name": "keyword.operator.expression.typeof.ts",
2603 "match": "(?<!\\.|\\$)\\btypeof\\b(?!\\$)"
2604 },
2605 "arrow-function": {
2606 "patterns": [
2607 {
2608 "name": "meta.arrow.ts",
2609 "match": "(?<!\\.|\\$)(\\basync)(?=\\s*[<(])",
2610 "captures": {
2611 "1": {
2612 "name": "storage.modifier.async.ts"
2613 }
2614 }
2615 },
2616 {
2617 "name": "meta.arrow.ts",
2618 "match": "(?:(?<!\\.|\\$)(\\basync)\\s*)?([_$[:alpha:]][_$[:alnum:]]*)\\s*(?==>)",
2619 "captures": {
2620 "1": {
2621 "name": "storage.modifier.async.ts"
2622 },
2623 "2": {
2624 "name": "variable.parameter.ts"
2625 }
2626 }
2627 },
2628 {
2629 "name": "meta.arrow.ts",
2630 "begin": "(?x)\\s*(?=(<([^<>]|\\<[^<>]+\\>)+>\\s*)?\\(([^()]|\\([^()]*\\))*\\)(\\s*:\\s*(.)*)?\\s*=>)",
2631 "end": "(?==>)",
2632 "patterns": [
2633 {
2634 "include": "#comment"
2635 },
2636 {
2637 "include": "#type-parameters"
2638 },
2639 {
2640 "include": "#function-parameters"
2641 },
2642 {
2643 "include": "#arrow-return-type"
2644 }
2645 ]
2646 },
2647 {
2648 "name": "meta.arrow.ts",
2649 "begin": "=>",
2650 "beginCaptures": {
2651 "0": {
2652 "name": "storage.type.function.arrow.ts"
2653 }
2654 },
2655 "end": "(?<=\\})|((?!\\{)(?=\\S))",
2656 "patterns": [
2657 {
2658 "include": "#decl-block"
2659 },
2660 {
2661 "include": "#expression"
2662 }
2663 ]
2664 }
2665 ]
2666 },
2667 "arrow-return-type": {
2668 "name": "meta.return.type.arrow.ts",
2669 "begin": "(?<=\\))\\s*(:)",
2670 "beginCaptures": {
2671 "1": {
2672 "name": "keyword.operator.type.annotation.ts"
2673 }
2674 },
2675 "end": "(?<!:)((?=$)|(?==>|;|//))",
2676 "patterns": [
2677 {
2678 "include": "#type-predicate-operator"
2679 },
2680 {
2681 "include": "#type"
2682 }
2683 ]
2684 },
2685 "punctuation-comma": {
2686 "name": "punctuation.separator.comma.ts",
2687 "match": ","
2688 },
2689 "punctuation-semicolon": {
2690 "name": "punctuation.terminator.statement.ts",
2691 "match": ";"
2692 },
2693 "punctuation-accessor": {
2694 "name": "punctuation.accessor.ts",
2695 "match": "\\."
2696 },
2697 "paren-expression": {
2698 "begin": "\\(",
2699 "beginCaptures": {
2700 "0": {
2701 "name": "meta.brace.round.ts"
2702 }
2703 },
2704 "end": "\\)",
2705 "endCaptures": {
2706 "0": {
2707 "name": "meta.brace.round.ts"
2708 }
2709 },
2710 "patterns": [
2711 {
2712 "include": "#expression"
2713 },
2714 {
2715 "include": "#punctuation-comma"
2716 }
2717 ]
2718 },
2719 "qstring-double": {
2720 "name": "string.quoted.double.ts",
2721 "begin": "\"",
2722 "beginCaptures": {
2723 "0": {
2724 "name": "punctuation.definition.string.begin.ts"
2725 }
2726 },
2727 "end": "(\")|((?:[^\\\\\\n])$)",
2728 "endCaptures": {
2729 "1": {
2730 "name": "punctuation.definition.string.end.ts"
2731 },
2732 "2": {
2733 "name": "invalid.illegal.newline.ts"
2734 }
2735 },
2736 "patterns": [
2737 {
2738 "include": "#string-character-escape"
2739 }
2740 ]
2741 },
2742 "qstring-single": {
2743 "name": "string.quoted.single.ts",
2744 "begin": "'",
2745 "beginCaptures": {
2746 "0": {
2747 "name": "punctuation.definition.string.begin.ts"
2748 }
2749 },
2750 "end": "(\\')|((?:[^\\\\\\n])$)",
2751 "endCaptures": {
2752 "1": {
2753 "name": "punctuation.definition.string.end.ts"
2754 },
2755 "2": {
2756 "name": "invalid.illegal.newline.ts"
2757 }
2758 },
2759 "patterns": [
2760 {
2761 "include": "#string-character-escape"
2762 }
2763 ]
2764 },
2765 "regex": {
2766 "patterns": [
2767 {
2768 "name": "string.regex.ts",
2769 "begin": "(?<=[=(:,\\[?+!]|return|case|=>|&&|\\|\\||\\*\\/)\\s*(/)(?![/*])(?=(?:[^/\\\\\\[]|\\\\.|\\[([^\\]\\\\]|\\\\.)+\\])+/(?![/*])[gimy]*(?!\\s*[a-zA-Z0-9_$]))",
2770 "beginCaptures": {
2771 "1": {
2772 "name": "punctuation.definition.string.begin.ts"
2773 }
2774 },
2775 "end": "(/)([gimuy]*)",
2776 "endCaptures": {
2777 "1": {
2778 "name": "punctuation.definition.string.end.ts"
2779 },
2780 "2": {
2781 "name": "keyword.other.ts"
2782 }
2783 },
2784 "patterns": [
2785 {
2786 "include": "#regexp"
2787 }
2788 ]
2789 },
2790 {
2791 "name": "string.regex.ts",
2792 "begin": "/(?![/*])(?=(?:[^/\\\\\\[]|\\\\.|\\[([^\\]\\\\]|\\\\.)+\\])+/(?![/*])[gimy]*(?!\\s*[a-zA-Z0-9_$]))",
2793 "beginCaptures": {
2794 "0": {
2795 "name": "punctuation.definition.string.begin.ts"
2796 }
2797 },
2798 "end": "(/)([gimuy]*)",
2799 "endCaptures": {
2800 "1": {
2801 "name": "punctuation.definition.string.end.ts"
2802 },
2803 "2": {
2804 "name": "keyword.other.ts"
2805 }
2806 },
2807 "patterns": [
2808 {
2809 "include": "#regexp"
2810 }
2811 ]
2812 }
2813 ]
2814 },
2815 "regexp": {
2816 "patterns": [
2817 {
2818 "name": "keyword.control.anchor.regexp",
2819 "match": "\\\\[bB]|\\^|\\$"
2820 },
2821 {
2822 "name": "keyword.other.back-reference.regexp",
2823 "match": "\\\\[1-9]\\d*"
2824 },
2825 {
2826 "name": "keyword.operator.quantifier.regexp",
2827 "match": "[?+*]|\\{(\\d+,\\d+|\\d+,|,\\d+|\\d+)\\}\\??"
2828 },
2829 {
2830 "name": "keyword.operator.or.regexp",
2831 "match": "\\|"
2832 },
2833 {
2834 "name": "meta.group.assertion.regexp",
2835 "begin": "(\\()((\\?=)|(\\?!))",
2836 "beginCaptures": {
2837 "1": {
2838 "name": "punctuation.definition.group.regexp"
2839 },
2840 "2": {
2841 "name": "punctuation.definition.group.assertion.regexp"
2842 },
2843 "3": {
2844 "name": "meta.assertion.look-ahead.regexp"
2845 },
2846 "4": {
2847 "name": "meta.assertion.negative-look-ahead.regexp"
2848 }
2849 },
2850 "end": "(\\))",
2851 "endCaptures": {
2852 "1": {
2853 "name": "punctuation.definition.group.regexp"
2854 }
2855 },
2856 "patterns": [
2857 {
2858 "include": "#regexp"
2859 }
2860 ]
2861 },
2862 {
2863 "name": "meta.group.regexp",
2864 "begin": "\\((\\?:)?",
2865 "beginCaptures": {
2866 "0": {
2867 "name": "punctuation.definition.group.regexp"
2868 },
2869 "1": {
2870 "name": "punctuation.definition.group.capture.regexp"
2871 }
2872 },
2873 "end": "\\)",
2874 "endCaptures": {
2875 "0": {
2876 "name": "punctuation.definition.group.regexp"
2877 }
2878 },
2879 "patterns": [
2880 {
2881 "include": "#regexp"
2882 }
2883 ]
2884 },
2885 {
2886 "name": "constant.other.character-class.set.regexp",
2887 "begin": "(\\[)(\\^)?",
2888 "beginCaptures": {
2889 "1": {
2890 "name": "punctuation.definition.character-class.regexp"
2891 },
2892 "2": {
2893 "name": "keyword.operator.negation.regexp"
2894 }
2895 },
2896 "end": "(\\])",
2897 "endCaptures": {
2898 "1": {
2899 "name": "punctuation.definition.character-class.regexp"
2900 }
2901 },
2902 "patterns": [
2903 {
2904 "name": "constant.other.character-class.range.regexp",
2905 "match": "(?:.|(\\\\(?:[0-7]{3}|x\\h\\h|u\\h\\h\\h\\h))|(\\\\c[A-Z])|(\\\\.))\\-(?:[^\\]\\\\]|(\\\\(?:[0-7]{3}|x\\h\\h|u\\h\\h\\h\\h))|(\\\\c[A-Z])|(\\\\.))",
2906 "captures": {
2907 "1": {
2908 "name": "constant.character.numeric.regexp"
2909 },
2910 "2": {
2911 "name": "constant.character.control.regexp"
2912 },
2913 "3": {
2914 "name": "constant.character.escape.backslash.regexp"
2915 },
2916 "4": {
2917 "name": "constant.character.numeric.regexp"
2918 },
2919 "5": {
2920 "name": "constant.character.control.regexp"
2921 },
2922 "6": {
2923 "name": "constant.character.escape.backslash.regexp"
2924 }
2925 }
2926 },
2927 {
2928 "include": "#regex-character-class"
2929 }
2930 ]
2931 },
2932 {
2933 "include": "#regex-character-class"
2934 }
2935 ]
2936 },
2937 "regex-character-class": {
2938 "patterns": [
2939 {
2940 "name": "constant.other.character-class.regexp",
2941 "match": "\\\\[wWsSdDtrnvf]|\\."
2942 },
2943 {
2944 "name": "constant.character.numeric.regexp",
2945 "match": "\\\\([0-7]{3}|x\\h\\h|u\\h\\h\\h\\h)"
2946 },
2947 {
2948 "name": "constant.character.control.regexp",
2949 "match": "\\\\c[A-Z]"
2950 },
2951 {
2952 "name": "constant.character.escape.backslash.regexp",
2953 "match": "\\\\."
2954 }
2955 ]
2956 },
2957 "string": {
2958 "patterns": [
2959 {
2960 "include": "#qstring-single"
2961 },
2962 {
2963 "include": "#qstring-double"
2964 }
2965 ]
2966 },
2967 "template": {
2968 "name": "string.template.ts",
2969 "begin": "([_$[:alpha:]][_$[:alnum:]]*)?(`)",
2970 "beginCaptures": {
2971 "1": {
2972 "name": "entity.name.function.tagged-template.ts"
2973 },
2974 "2": {
2975 "name": "punctuation.definition.string.template.begin.ts"
2976 }
2977 },
2978 "end": "`",
2979 "endCaptures": {
2980 "0": {
2981 "name": "punctuation.definition.string.template.end.ts"
2982 }
2983 },
2984 "patterns": [
2985 {
2986 "include": "#template-substitution-element"
2987 },
2988 {
2989 "include": "#string-character-escape"
2990 }
2991 ]
2992 },
2993 "string-character-escape": {
2994 "name": "constant.character.escape.ts",
2995 "match": "\\\\(x\\h{2}|[0-2][0-7]{0,2}|3[0-6][0-7]?|37[0-7]?|[4-7][0-7]?|.|$)"
2996 },
2997 "template-substitution-element": {
2998 "name": "meta.template.expression.ts",
2999 "begin": "\\$\\{",
3000 "beginCaptures": {
3001 "0": {
3002 "name": "punctuation.definition.template-expression.begin.ts"
3003 }
3004 },
3005 "end": "\\}",
3006 "endCaptures": {
3007 "0": {
3008 "name": "punctuation.definition.template-expression.end.ts"
3009 }
3010 },
3011 "patterns": [
3012 {
3013 "include": "#expression"
3014 }
3015 ]
3016 },
3017 "literal": {
3018 "name": "literal.ts",
3019 "patterns": [
3020 {
3021 "include": "#numeric-literal"
3022 },
3023 {
3024 "include": "#boolean-literal"
3025 },
3026 {
3027 "include": "#null-literal"
3028 },
3029 {
3030 "include": "#undefined-literal"
3031 },
3032 {
3033 "include": "#numericConstant-literal"
3034 },
3035 {
3036 "include": "#array-literal"
3037 },
3038 {
3039 "include": "#this-literal"
3040 },
3041 {
3042 "include": "#super-literal"
3043 }
3044 ]
3045 },
3046 "array-literal": {
3047 "name": "meta.array.literal.ts",
3048 "begin": "\\[",
3049 "beginCaptures": {
3050 "0": {
3051 "name": "meta.brace.square.ts"
3052 }
3053 },
3054 "end": "\\]",
3055 "endCaptures": {
3056 "0": {
3057 "name": "meta.brace.square.ts"
3058 }
3059 },
3060 "patterns": [
3061 {
3062 "include": "#expression"
3063 },
3064 {
3065 "include": "#punctuation-comma"
3066 }
3067 ]
3068 },
3069 "numeric-literal": {
3070 "patterns": [
3071 {
3072 "name": "constant.numeric.hex.ts",
3073 "match": "\\b(?<!\\$)0(x|X)[0-9a-fA-F]+\\b(?!\\$)"
3074 },
3075 {
3076 "name": "constant.numeric.binary.ts",
3077 "match": "\\b(?<!\\$)0(b|B)[01]+\\b(?!\\$)"
3078 },
3079 {
3080 "name": "constant.numeric.octal.ts",
3081 "match": "\\b(?<!\\$)0(o|O)?[0-7]+\\b(?!\\$)"
3082 },
3083 {
3084 "match": "(?x)\n(?<!\\$)(?:\n (?:\\b[0-9]+(\\.)[0-9]+[eE][+-]?[0-9]+\\b)| # 1.1E+3\n (?:\\b[0-9]+(\\.)[eE][+-]?[0-9]+\\b)| # 1.E+3\n (?:\\B(\\.)[0-9]+[eE][+-]?[0-9]+\\b)| # .1E+3\n (?:\\b[0-9]+[eE][+-]?[0-9]+\\b)| # 1E+3\n (?:\\b[0-9]+(\\.)[0-9]+\\b)| # 1.1\n (?:\\b[0-9]+(\\.)\\B)| # 1.\n (?:\\B(\\.)[0-9]+\\b)| # .1\n (?:\\b[0-9]+\\b(?!\\.)) # 1\n)(?!\\$)",
3085 "captures": {
3086 "0": {
3087 "name": "constant.numeric.decimal.ts"
3088 },
3089 "1": {
3090 "name": "meta.delimiter.decimal.period.ts"
3091 },
3092 "2": {
3093 "name": "meta.delimiter.decimal.period.ts"
3094 },
3095 "3": {
3096 "name": "meta.delimiter.decimal.period.ts"
3097 },
3098 "4": {
3099 "name": "meta.delimiter.decimal.period.ts"
3100 },
3101 "5": {
3102 "name": "meta.delimiter.decimal.period.ts"
3103 },
3104 "6": {
3105 "name": "meta.delimiter.decimal.period.ts"
3106 }
3107 }
3108 }
3109 ]
3110 },
3111 "boolean-literal": {
3112 "patterns": [
3113 {
3114 "name": "constant.language.boolean.true.ts",
3115 "match": "(?<!\\.|\\$)\\btrue\\b(?!\\$)"
3116 },
3117 {
3118 "name": "constant.language.boolean.false.ts",
3119 "match": "(?<!\\.|\\$)\\bfalse\\b(?!\\$)"
3120 }
3121 ]
3122 },
3123 "null-literal": {
3124 "name": "constant.language.null.ts",
3125 "match": "(?<!\\.|\\$)\\bnull\\b(?!\\$)"
3126 },
3127 "this-literal": {
3128 "name": "variable.language.this.ts",
3129 "match": "(?<!\\.|\\$)\\bthis\\b(?!\\$)"
3130 },
3131 "super-literal": {
3132 "name": "variable.language.super.ts",
3133 "match": "(?<!\\.|\\$)\\bsuper\\b(?!\\$)"
3134 },
3135 "undefined-literal": {
3136 "name": "constant.language.undefined.ts",
3137 "match": "(?<!\\.|\\$)\\bundefined\\b(?!\\$)"
3138 },
3139 "numericConstant-literal": {
3140 "patterns": [
3141 {
3142 "name": "constant.language.nan.ts",
3143 "match": "(?<!\\.|\\$)\\bNaN\\b(?!\\$)"
3144 },
3145 {
3146 "name": "constant.language.infinity.ts",
3147 "match": "(?<!\\.|\\$)\\bInfinity\\b(?!\\$)"
3148 }
3149 ]
3150 },
3151 "access-modifier": {
3152 "name": "storage.modifier.ts",
3153 "match": "(?<!\\.|\\$)\\b(abstract|public|protected|private|readonly|static)\\b(?!\\$)"
3154 },
3155 "property-accessor": {
3156 "name": "storage.type.property.ts",
3157 "match": "(?<!\\.|\\$)\\b(get|set)\\b(?!\\$)"
3158 },
3159 "comment": {
3160 "patterns": [
3161 {
3162 "name": "comment.block.documentation.ts",
3163 "begin": "/\\*\\*(?!/)",
3164 "beginCaptures": {
3165 "0": {
3166 "name": "punctuation.definition.comment.ts"
3167 }
3168 },
3169 "end": "\\*/",
3170 "endCaptures": {
3171 "0": {
3172 "name": "punctuation.definition.comment.ts"
3173 }
3174 },
3175 "patterns": [
3176 {
3177 "include": "#docblock"
3178 }
3179 ]
3180 },
3181 {
3182 "name": "comment.block.ts",
3183 "begin": "/\\*",
3184 "beginCaptures": {
3185 "0": {
3186 "name": "punctuation.definition.comment.ts"
3187 }
3188 },
3189 "end": "\\*/",
3190 "endCaptures": {
3191 "0": {
3192 "name": "punctuation.definition.comment.ts"
3193 }
3194 }
3195 },
3196 {
3197 "begin": "(^[ \\t]+)?(?=//)",
3198 "beginCaptures": {
3199 "1": {
3200 "name": "punctuation.whitespace.comment.leading.ts"
3201 }
3202 },
3203 "end": "(?=$)",
3204 "patterns": [
3205 {
3206 "name": "comment.line.double-slash.ts",
3207 "begin": "//",
3208 "beginCaptures": {
3209 "0": {
3210 "name": "punctuation.definition.comment.ts"
3211 }
3212 },
3213 "end": "(?=$)"
3214 }
3215 ]
3216 }
3217 ]
3218 },
3219 "directives": {
3220 "name": "comment.line.triple-slash.directive.ts",
3221 "begin": "^(///)\\s*(?=<(reference|amd-dependency|amd-module)(\\s+(path|types|no-default-lib|name)\\s*=\\s*((\\'[^']*\\')|(\\\"[^\"]*\\\")))+\\s*/>\\s*$)",
3222 "beginCaptures": {
3223 "1": {
3224 "name": "punctuation.definition.comment.ts"
3225 }
3226 },
3227 "end": "(?=$)",
3228 "patterns": [
3229 {
3230 "name": "meta.tag.ts",
3231 "begin": "(<)(reference|amd-dependency|amd-module)",
3232 "beginCaptures": {
3233 "1": {
3234 "name": "punctuation.definition.tag.directive.ts"
3235 },
3236 "2": {
3237 "name": "entity.name.tag.directive.ts"
3238 }
3239 },
3240 "end": "/>",
3241 "endCaptures": {
3242 "0": {
3243 "name": "punctuation.definition.tag.directive.ts"
3244 }
3245 },
3246 "patterns": [
3247 {
3248 "name": "entity.other.attribute-name.directive.ts",
3249 "match": "path|types|no-default-lib|name"
3250 },
3251 {
3252 "name": "keyword.operator.assignment.ts",
3253 "match": "="
3254 },
3255 {
3256 "include": "#string"
3257 }
3258 ]
3259 }
3260 ]
3261 },
3262 "docblock": {
3263 "patterns": [
3264 {
3265 "name": "storage.type.class.jsdoc",
3266 "match": "(?<!\\w)@(abstract|access|alias|arg|argument|async|attribute|augments|author|beta|borrows|bubbes|callback|chainable|class|classdesc|code|config|const|constant|constructor|constructs|copyright|default|defaultvalue|define|deprecated|desc|description|dict|emits|enum|event|example|exports?|extends|extension|extension_for|extensionfor|external|file|fileoverview|final|fires|for|function|global|host|ignore|implements|inherit[Dd]oc|inner|instance|interface|kind|lends|license|listens|main|member|memberof|method|mixex|mixins?|module|name|namespace|nocollapse|nosideeffects|override|overview|package|param|preserve|private|prop|property|protected|public|read[Oo]nly|record|require[ds]|returns?|see|since|static|struct|submodule|summary|template|this|throws|todo|tutorial|type|typedef|unrestricted|uses|var|variation|version|virtual|writeOnce)\\b"
3267 },
3268 {
3269 "match": "(?x)\n(?:(?<=@param)|(?<=@arg)|(?<=@argument)|(?<=@type))\n\\s+\n({(?:\n \\* | # {*} any type\n \\? | # {?} unknown type\n (?: # Check for a prefix\n \\? | # {?string} nullable type\n ! | # {!string} non-nullable type\n \\.{3} # {...string} variable number of parameters\n )?\n (?:\n \\( # Opening bracket of multiple types with parenthesis {(string|number)}\n [a-zA-Z_$]+\n (?:\n (?:\n [\\w$]*\n (?:\\[\\])? # {(string[]|number)} type application, an array of strings or a number\n ) |\n \\.?<[\\w$]+(?:,\\s+[\\w$]+)*> # {Array<string>} or {Object<string, number>} type application (optional .)\n )\n (?:\n [\\.|~] # {Foo.bar} namespaced, {string|number} multiple, {Foo~bar} class-specific callback\n [a-zA-Z_$]+\n (?:\n (?:\n [\\w$]*\n (?:\\[\\])? # {(string|number[])} type application, a string or an array of numbers\n ) |\n \\.?<[\\w$]+(?:,\\s+[\\w$]+)*> # {Array<string>} or {Object<string, number>} type application (optional .)\n )\n )*\n \\) |\n [a-zA-Z_$]+\n (?:\n (?:\n [\\w$]*\n (?:\\[\\])? # {string[]|number} type application, an array of strings or a number\n ) |\n \\.?<[\\w$]+(?:,\\s+[\\w$]+)*> # {Array<string>} or {Object<string, number>} type application (optional .)\n )\n (?:\n [\\.|~] # {Foo.bar} namespaced, {string|number} multiple, {Foo~bar} class-specific callback\n [a-zA-Z_$]+\n (?:\n [\\w$]* |\n \\.?<[\\w$]+(?:,\\s+[\\w$]+)*> # {Array<string>} or {Object<string, number>} type application (optional .)\n )\n )*\n )\n # Check for suffix\n (?:\\[\\])? # {string[]} type application, an array of strings\n =? # {string=} optional parameter\n)})\n\\s+\n(\n \\[ # [foo] optional parameter\n \\s*\n (?:\n [a-zA-Z_$][\\w$]*\n (?:\n (?:\\[\\])? # Foo[].bar properties within an array\n \\. # Foo.Bar namespaced parameter\n [a-zA-Z_$][\\w$]*\n )*\n (?:\n \\s*\n = # [foo=bar] Default parameter value\n \\s*\n [\\w$\\s]*\n )?\n )\n \\s*\n \\] |\n (?:\n [a-zA-Z_$][\\w$]*\n (?:\n (?:\\[\\])? # Foo[].bar properties within an array\n \\. # Foo.Bar namespaced parameter\n [a-zA-Z_$][\\w$]*\n )*\n )?\n)\n\\s+\n(?:-\\s+)? # optional hyphen before the description\n((?:(?!\\*\\/).)*) # The type description",
3270 "captures": {
3271 "0": {
3272 "name": "other.meta.jsdoc"
3273 },
3274 "1": {
3275 "name": "entity.name.type.instance.jsdoc"
3276 },
3277 "2": {
3278 "name": "variable.other.jsdoc"
3279 },
3280 "3": {
3281 "name": "other.description.jsdoc"
3282 }
3283 }
3284 },
3285 {
3286 "match": "(?x)\n({(?:\n \\* | # {*} any type\n \\? | # {?} unknown type\n\n (?: # Check for a prefix\n \\? | # {?string} nullable type\n ! | # {!string} non-nullable type\n \\.{3} # {...string} variable number of parameters\n )?\n\n (?:\n \\( # Opening bracket of multiple types with parenthesis {(string|number)}\n [a-zA-Z_$]+\n (?:\n [\\w$]* |\n \\.?<[\\w$]+(?:,\\s+[\\w$]+)*> # {Array<string>} or {Object<string, number>} type application (optional .)\n )\n (?:\n [\\.|~] # {Foo.bar} namespaced, {string|number} multiple, {Foo~bar} class-specific callback\n [a-zA-Z_$]+\n (?:\n [\\w$]* |\n \\.?<[\\w$]+(?:,\\s+[\\w$]+)*> # {Array<string>} or {Object<string, number>} type application (optional .)\n )\n )*\n \\) |\n [a-zA-Z_$]+\n (?:\n [\\w$]* |\n \\.?<[\\w$]+(?:,\\s+[\\w$]+)*> # {Array<string>} or {Object<string, number>} type application (optional .)\n )\n (?:\n [\\.|~] # {Foo.bar} namespaced, {string|number} multiple, {Foo~bar} class-specific callback\n [a-zA-Z_$]+\n (?:\n [\\w$]* |\n \\.?<[\\w$]+(?:,\\s+[\\w$]+)*> # {Array<string>} or {Object<string, number>} type application (optional .)\n )\n )*\n )\n # Check for suffix\n (?:\\[\\])? # {string[]} type application, an array of strings\n =? # {string=} optional parameter\n)})\n\\s+\n(?:-\\s+)? # optional hyphen before the description\n((?:(?!\\*\\/).)*) # The type description",
3287 "captures": {
3288 "0": {
3289 "name": "other.meta.jsdoc"
3290 },
3291 "1": {
3292 "name": "entity.name.type.instance.jsdoc"
3293 },
3294 "2": {
3295 "name": "other.description.jsdoc"
3296 }
3297 }
3298 }
3299 ]
3300 }
3301 },
3302 "version": "https://github.com/Microsoft/TypeScript-TmLanguage/commit/4d0bdebb93aadc25ecbb903ebc897e9cd5fab69c"
3303}