TypeScript-TmLanguage/TypeScript.tmLanguage

4177 строки
95 KiB
Plaintext
Исходник Обычный вид История

2015-11-06 00:14:57 +03:00
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>fileTypes</key>
<array>
<string>ts</string>
</array>
<key>name</key>
<string>TypeScript</string>
<key>patterns</key>
<array>
<dict>
<key>include</key>
<string>#statements</string>
2015-11-06 00:14:57 +03:00
</dict>
</array>
<key>repository</key>
<dict>
<key>access-modifier</key>
<dict>
<key>match</key>
2016-09-10 02:26:56 +03:00
<string>(?&lt;!\.|\$)\b(public|protected|private|readonly)\b(?!\$)</string>
2015-11-06 00:14:57 +03:00
<key>name</key>
<string>storage.modifier.ts</string>
</dict>
<key>after-operator-block</key>
<dict>
<key>begin</key>
<string>(?&lt;=[=(:,\[?+!]|await|return|yield|throw|in|of|typeof|&amp;&amp;|\|\||\*)\s*(\{)</string>
<key>beginCaptures</key>
<dict>
<key>1</key>
<dict>
<key>name</key>
<string>punctuation.definition.block.ts</string>
</dict>
</dict>
<key>end</key>
<string>\}</string>
<key>endCaptures</key>
<dict>
<key>0</key>
<dict>
<key>name</key>
<string>punctuation.definition.block.ts</string>
</dict>
</dict>
<key>name</key>
<string>meta.object-literal.ts</string>
<key>patterns</key>
<array>
<dict>
<key>include</key>
<string>#object-member</string>
</dict>
</array>
</dict>
2016-08-19 21:29:26 +03:00
<key>array-binding-element</key>
<dict>
<key>patterns</key>
<array>
<dict>
<key>include</key>
<string>#comment</string>
</dict>
<dict>
<key>include</key>
<string>#object-binding-pattern</string>
</dict>
<dict>
<key>include</key>
<string>#array-binding-pattern</string>
</dict>
<dict>
<key>match</key>
<string>([_$[:alpha:]][_$[:alnum:]]*)</string>
2016-08-19 21:29:26 +03:00
<key>name</key>
<string>variable.other.readwrite.ts</string>
</dict>
<dict>
<key>match</key>
<string>,</string>
<key>name</key>
<string>meta.delimiter.object.comma.ts</string>
</dict>
</array>
</dict>
<key>array-binding-pattern</key>
<dict>
<key>begin</key>
<string>\[</string>
<key>beginCaptures</key>
<dict>
<key>0</key>
<dict>
<key>name</key>
<string>punctuation.definition.binding-pattern.array.ts</string>
</dict>
</dict>
<key>end</key>
<string>\]</string>
<key>endCaptures</key>
<dict>
<key>0</key>
<dict>
<key>name</key>
<string>punctuation.definition.binding-pattern.array.ts</string>
</dict>
</dict>
<key>patterns</key>
<array>
<dict>
<key>include</key>
<string>#array-binding-element</string>
</dict>
</array>
</dict>
2015-11-06 00:14:57 +03:00
<key>array-literal</key>
<dict>
<key>begin</key>
<string>\[</string>
<key>beginCaptures</key>
<dict>
<key>0</key>
<dict>
<key>name</key>
<string>meta.brace.square.ts</string>
</dict>
</dict>
<key>end</key>
<string>\]</string>
<key>endCaptures</key>
<dict>
<key>0</key>
<dict>
<key>name</key>
<string>meta.brace.square.ts</string>
</dict>
</dict>
<key>name</key>
<string>meta.array.literal.ts</string>
<key>patterns</key>
<array>
<dict>
<key>include</key>
<string>#expression</string>
</dict>
<dict>
<key>include</key>
<string>#punctuation-comma</string>
</dict>
2015-11-06 00:14:57 +03:00
</array>
</dict>
2016-08-30 22:27:34 +03:00
<key>arrow-function</key>
<dict>
<key>patterns</key>
<array>
<dict>
<key>captures</key>
<dict>
<key>1</key>
<dict>
<key>name</key>
<string>storage.modifier.async.ts</string>
</dict>
</dict>
<key>match</key>
<string>(?&lt;!\.|\$)(\basync)(?=\s*[&lt;(])</string>
2016-08-30 22:27:34 +03:00
<key>name</key>
<string>meta.arrow.ts</string>
</dict>
<dict>
<key>captures</key>
<dict>
<key>1</key>
2016-09-13 23:40:40 +03:00
<dict>
<key>name</key>
<string>storage.modifier.async.ts</string>
</dict>
<key>2</key>
2016-08-30 22:27:34 +03:00
<dict>
<key>name</key>
<string>variable.parameter.ts</string>
</dict>
</dict>
<key>match</key>
2016-09-13 23:40:40 +03:00
<string>(?:(?&lt;!\.|\$)(\basync)\s*)?([_$[:alpha:]][_$[:alnum:]]*)\s*(?==&gt;)</string>
2016-08-30 22:27:34 +03:00
<key>name</key>
<string>meta.arrow.ts</string>
</dict>
<dict>
<key>begin</key>
2016-09-13 23:40:40 +03:00
<string>(?x)(?&lt;=return|throw|yield|await|async|[=(\[,:&gt;*])\s*(?=(&lt;[^&lt;&gt;]*(\&lt;[^&lt;&gt;]+\&gt;)*[^&lt;&gt;]*(\&lt;[^&lt;&gt;]+\&gt;)*[^&lt;&gt;]*&gt;\s*)?\([^()]*(\([^()]*\))*[^()]*(\([^()]*\))*[^()]*\)(\s*:\s*(.)*)?\s*=&gt;)</string>
2016-08-30 22:27:34 +03:00
<key>end</key>
<string>(?==&gt;)</string>
<key>name</key>
<string>meta.arrow.ts</string>
<key>patterns</key>
<array>
2016-09-08 20:56:06 +03:00
<dict>
<key>include</key>
<string>#comment</string>
</dict>
2016-09-13 23:40:40 +03:00
<dict>
<key>include</key>
<string>#type-parameters</string>
</dict>
<dict>
<key>include</key>
<string>#function-parameters</string>
</dict>
<dict>
<key>include</key>
<string>#arrow-return-type</string>
</dict>
</array>
</dict>
<dict>
<key>begin</key>
2016-08-30 22:27:34 +03:00
<string>=&gt;</string>
<key>beginCaptures</key>
2016-08-30 22:27:34 +03:00
<dict>
<key>0</key>
<dict>
<key>name</key>
<string>storage.type.function.arrow.ts</string>
</dict>
</dict>
<key>end</key>
<string>(?&lt;=\})|((?!\{)(?=\S))</string>
2016-08-30 22:27:34 +03:00
<key>name</key>
<string>meta.arrow.ts</string>
<key>patterns</key>
<array>
<dict>
<key>include</key>
<string>#decl-block</string>
</dict>
<dict>
<key>include</key>
<string>#expression</string>
2016-08-30 22:27:34 +03:00
</dict>
</array>
</dict>
</array>
</dict>
<key>arrow-return-type</key>
<dict>
<key>begin</key>
<string>(?&lt;=\))\s*:</string>
<key>end</key>
<string>(?&lt;!:)((?=$)|(?==&gt;|;|//))</string>
<key>name</key>
<string>meta.return.type.arrow.ts</string>
<key>patterns</key>
<array>
<dict>
<key>include</key>
<string>#type-predicate-operator</string>
</dict>
2016-08-30 22:27:34 +03:00
<dict>
<key>include</key>
<string>#type</string>
2016-08-30 22:27:34 +03:00
</dict>
</array>
</dict>
<key>boolean-literal</key>
<dict>
<key>patterns</key>
<array>
<dict>
<key>match</key>
<string>(?&lt;!\.|\$)\btrue\b(?!\$)</string>
<key>name</key>
<string>constant.language.boolean.true.ts</string>
</dict>
<dict>
<key>match</key>
<string>(?&lt;!\.|\$)\bfalse\b(?!\$)</string>
<key>name</key>
<string>constant.language.boolean.false.ts</string>
</dict>
</array>
</dict>
<key>case-clause</key>
<dict>
<key>begin</key>
<string>(?&lt;!\.|\$)\b(case|default(?=:))\b(?!\$)</string>
<key>beginCaptures</key>
<dict>
<key>1</key>
<dict>
<key>name</key>
<string>keyword.control.switch.ts</string>
</dict>
</dict>
<key>end</key>
<string>:</string>
<key>name</key>
<string>case-clause.expr.ts</string>
<key>patterns</key>
<array>
<dict>
<key>include</key>
<string>#expression</string>
</dict>
</array>
</dict>
<key>cast</key>
<dict>
<key>begin</key>
<string>(?:(?&lt;=return|throw|yield|await|[=(,:&gt;*]))\s*(&lt;)(?!&lt;?\=)</string>
<key>beginCaptures</key>
<dict>
<key>1</key>
<dict>
<key>name</key>
<string>meta.brace.angle.ts</string>
</dict>
</dict>
<key>end</key>
<string>&gt;</string>
<key>endCaptures</key>
<dict>
<key>0</key>
<dict>
<key>name</key>
<string>meta.brace.angle.ts</string>
</dict>
</dict>
<key>name</key>
<string>cast.expr.ts</string>
<key>patterns</key>
<array>
<dict>
<key>include</key>
<string>#type</string>
</dict>
</array>
</dict>
<key>class-or-interface-body</key>
2015-11-06 00:14:57 +03:00
<dict>
<key>begin</key>
<string>\{</string>
<key>beginCaptures</key>
<dict>
<key>0</key>
<dict>
<key>name</key>
<string>punctuation.definition.block.ts</string>
2015-11-06 00:14:57 +03:00
</dict>
</dict>
<key>end</key>
<string>\}</string>
<key>endCaptures</key>
<dict>
<key>0</key>
<dict>
<key>name</key>
<string>punctuation.definition.block.ts</string>
2015-11-06 00:14:57 +03:00
</dict>
</dict>
<key>patterns</key>
<array>
<dict>
<key>include</key>
<string>#string</string>
2015-11-06 00:14:57 +03:00
</dict>
<dict>
<key>include</key>
<string>#comment</string>
2015-11-06 00:14:57 +03:00
</dict>
2016-08-25 21:41:39 +03:00
<dict>
<key>include</key>
<string>#decorator</string>
</dict>
<dict>
<key>include</key>
<string>#field-declaration</string>
</dict>
<dict>
<key>include</key>
<string>#method-declaration</string>
</dict>
<dict>
<key>include</key>
<string>#indexer-declaration</string>
</dict>
<dict>
<key>include</key>
<string>#type-annotation</string>
</dict>
<dict>
<key>include</key>
<string>#variable-initializer</string>
</dict>
<dict>
<key>include</key>
<string>#access-modifier</string>
</dict>
<dict>
<key>include</key>
<string>#static-modifier</string>
</dict>
<dict>
<key>include</key>
<string>#property-accessor</string>
</dict>
2016-09-16 02:16:35 +03:00
<dict>
<key>include</key>
<string>#punctuation-comma</string>
</dict>
<dict>
<key>include</key>
<string>#punctuation-semicolon</string>
</dict>
</array>
2015-11-06 00:14:57 +03:00
</dict>
<key>class-or-interface-declaration</key>
2016-01-30 01:05:08 +03:00
<dict>
<key>begin</key>
<string>(?&lt;!\.|\$)\b(?:(export)\s+)?\b(?:(abstract)\s+)?\b(?:(class)|(interface))\b</string>
2016-01-30 01:05:08 +03:00
<key>beginCaptures</key>
<dict>
<key>1</key>
<dict>
<key>name</key>
<string>keyword.control.export.ts</string>
</dict>
<key>2</key>
<dict>
<key>name</key>
<string>storage.modifier.ts</string>
</dict>
<key>3</key>
<dict>
<key>name</key>
<string>storage.type.class.ts</string>
</dict>
<key>4</key>
<dict>
<key>name</key>
<string>storage.type.interface.ts</string>
2016-01-30 01:05:08 +03:00
</dict>
</dict>
<key>end</key>
<string>(?&lt;=\})</string>
<key>endCaptures</key>
<dict>
<key>1</key>
<dict>
<key>name</key>
<string>punctuation.definition.block.ts</string>
</dict>
</dict>
2016-01-30 01:05:08 +03:00
<key>name</key>
<string>meta.class.ts</string>
2016-01-30 01:05:08 +03:00
<key>patterns</key>
<array>
<dict>
<key>include</key>
<string>#comment</string>
</dict>
<dict>
<key>include</key>
<string>#class-or-interface-heritage</string>
</dict>
<dict>
<key>captures</key>
<dict>
<key>0</key>
<dict>
<key>name</key>
<string>entity.name.class.ts</string>
</dict>
</dict>
<key>match</key>
<string>[_$[:alpha:]][_$[:alnum:]]*</string>
</dict>
<dict>
<key>include</key>
<string>#type-parameters</string>
</dict>
<dict>
<key>include</key>
<string>#class-or-interface-body</string>
2016-01-30 01:05:08 +03:00
</dict>
</array>
</dict>
<key>class-or-interface-heritage</key>
2015-11-06 00:14:57 +03:00
<dict>
<key>begin</key>
<string>(?&lt;!\.|\$)(?:\b(extends|implements)\b)(?!\$)</string>
2015-11-06 00:14:57 +03:00
<key>beginCaptures</key>
<dict>
<key>1</key>
<dict>
<key>name</key>
<string>storage.modifier.ts</string>
2015-11-06 00:14:57 +03:00
</dict>
</dict>
<key>end</key>
<string>(?=\{)</string>
2015-11-06 00:14:57 +03:00
<key>endCaptures</key>
<dict>
<key>1</key>
2015-11-06 00:14:57 +03:00
<dict>
<key>name</key>
<string>punctuation.definition.block.ts</string>
2015-11-06 00:14:57 +03:00
</dict>
</dict>
<key>patterns</key>
<array>
<dict>
<key>include</key>
<string>#comment</string>
</dict>
<dict>
<key>include</key>
<string>#class-or-interface-heritage</string>
</dict>
<dict>
<key>include</key>
<string>#type-parameters</string>
</dict>
<dict>
2016-09-01 03:09:03 +03:00
<key>captures</key>
<dict>
<key>1</key>
<dict>
<key>name</key>
<string>entity.name.type.module.ts</string>
</dict>
<key>2</key>
<dict>
<key>name</key>
<string>punctuation.accessor.ts</string>
</dict>
</dict>
<key>match</key>
<string>([_$[:alpha:]][_$[:alnum:]]*)\s*(\.)</string>
</dict>
2016-09-01 03:09:03 +03:00
<dict>
<key>captures</key>
<dict>
<key>1</key>
<dict>
<key>name</key>
<string>entity.other.inherited-class.ts</string>
</dict>
</dict>
<key>match</key>
<string>([_$[:alpha:]][_$[:alnum:]]*)</string>
2016-09-01 03:09:03 +03:00
</dict>
</array>
</dict>
2015-11-06 00:14:57 +03:00
<key>comment</key>
<dict>
<key>patterns</key>
<array>
<dict>
2016-08-11 21:57:16 +03:00
<key>begin</key>
<string>/\*\*(?!/)</string>
<key>captures</key>
<dict>
<key>0</key>
<dict>
<key>name</key>
<string>punctuation.definition.comment.ts</string>
</dict>
</dict>
<key>end</key>
<string>\*/</string>
<key>name</key>
<string>comment.block.documentation.ts</string>
<key>patterns</key>
<array>
<dict>
<key>include</key>
<string>#docblock</string>
</dict>
</array>
2015-11-06 00:14:57 +03:00
</dict>
<dict>
2016-08-11 21:57:16 +03:00
<key>begin</key>
<string>/\*</string>
<key>captures</key>
<dict>
<key>0</key>
<dict>
<key>name</key>
<string>punctuation.definition.comment.ts</string>
</dict>
</dict>
<key>end</key>
<string>\*/</string>
<key>name</key>
<string>comment.block.ts</string>
2015-11-06 00:14:57 +03:00
</dict>
<dict>
2016-08-11 21:57:16 +03:00
<key>begin</key>
<string>(^[ \t]+)?(?=//)</string>
<key>beginCaptures</key>
<dict>
<key>1</key>
<dict>
<key>name</key>
<string>punctuation.whitespace.comment.leading.ts</string>
</dict>
</dict>
<key>end</key>
<string>\n</string>
<key>endCaptures</key>
<dict>
<key>0</key>
<dict>
<key>name</key>
<string>comment.line.double-slash.ts</string>
</dict>
</dict>
2016-08-11 21:57:16 +03:00
<key>patterns</key>
<array>
<dict>
<key>begin</key>
<string>//</string>
<key>beginCaptures</key>
<dict>
<key>0</key>
<dict>
<key>name</key>
<string>punctuation.definition.comment.ts</string>
</dict>
</dict>
<key>end</key>
<string>(?=\n)</string>
2016-08-11 21:57:16 +03:00
<key>name</key>
<string>comment.line.double-slash.ts</string>
</dict>
</array>
2015-11-06 00:14:57 +03:00
</dict>
</array>
</dict>
<key>control-statement</key>
<dict>
<key>patterns</key>
<array>
<dict>
<key>match</key>
<string>(?&lt;!\.|\$)\b(catch|finally|throw|try)\b(?!\$)</string>
<key>name</key>
<string>keyword.control.trycatch.ts</string>
</dict>
<dict>
<key>match</key>
<string>(?&lt;!\.|\$)\b(break|continue|do|goto|while)\b(?!\$)</string>
<key>name</key>
<string>keyword.control.loop.ts</string>
</dict>
<dict>
<key>match</key>
<string>(?&lt;!\.|\$)\b(await|return)\b(?!\$)</string>
<key>name</key>
<string>keyword.control.flow.ts</string>
</dict>
<dict>
<key>captures</key>
<dict>
<key>1</key>
<dict>
<key>name</key>
<string>keyword.control.flow.ts</string>
</dict>
<key>2</key>
<dict>
<key>name</key>
<string>keyword.generator.asterisk.ts</string>
</dict>
</dict>
<key>match</key>
<string>(?&lt;!\.|\$)\b(yield)\b(?!\$)(?:\s*(\*))?</string>
</dict>
<dict>
<key>match</key>
<string>(?&lt;!\.|\$)\b(case|default|switch)\b(?!\$)</string>
<key>name</key>
<string>keyword.control.switch.ts</string>
</dict>
<dict>
<key>match</key>
<string>(?&lt;!\.|\$)\b(else|if)\b(?!\$)</string>
<key>name</key>
<string>keyword.control.conditional.ts</string>
</dict>
<dict>
<key>match</key>
<string>(?&lt;!\.|\$)\b(with)\b(?!\$)</string>
<key>name</key>
<string>keyword.control.with.ts</string>
</dict>
<dict>
<key>match</key>
<string>(?&lt;!\.|\$)\b(debugger)\b(?!\$)</string>
<key>name</key>
<string>keyword.other.ts</string>
</dict>
<dict>
<key>match</key>
<string>(?&lt;!\.|\$)\b(declare)\b(?!\$)</string>
<key>name</key>
<string>storage.modifier.ts</string>
</dict>
</array>
2015-11-06 00:14:57 +03:00
</dict>
<key>decl-block</key>
<dict>
<key>begin</key>
<string>\{</string>
<key>beginCaptures</key>
<dict>
<key>0</key>
<dict>
<key>name</key>
<string>punctuation.definition.block.ts</string>
2015-11-06 00:14:57 +03:00
</dict>
</dict>
<key>end</key>
<string>\}</string>
<key>endCaptures</key>
<dict>
<key>0</key>
<dict>
<key>name</key>
<string>punctuation.definition.block.ts</string>
2015-11-06 00:14:57 +03:00
</dict>
</dict>
<key>name</key>
2016-08-19 21:29:26 +03:00
<string>meta.block.ts</string>
2015-11-06 00:14:57 +03:00
<key>patterns</key>
<array>
<dict>
<key>include</key>
<string>#statements</string>
2015-11-06 00:14:57 +03:00
</dict>
</array>
</dict>
<key>declaration</key>
<dict>
<key>name</key>
<string>meta.declaration.ts</string>
<key>patterns</key>
<array>
2016-08-25 21:41:39 +03:00
<dict>
<key>include</key>
<string>#decorator</string>
</dict>
<dict>
<key>include</key>
<string>#var-expr</string>
</dict>
2015-11-06 00:14:57 +03:00
<dict>
<key>include</key>
<string>#function-declaration</string>
</dict>
<dict>
<key>include</key>
<string>#class-or-interface-declaration</string>
2015-11-06 00:14:57 +03:00
</dict>
<dict>
<key>include</key>
<string>#type-declaration</string>
</dict>
<dict>
<key>include</key>
<string>#enum-declaration</string>
</dict>
<dict>
<key>include</key>
2016-08-19 21:29:26 +03:00
<string>#namespace-declaration</string>
</dict>
<dict>
<key>include</key>
2016-08-19 21:29:26 +03:00
<string>#import-equals-declaration</string>
</dict>
2016-08-19 21:29:26 +03:00
<dict>
<key>include</key>
2016-08-19 21:29:26 +03:00
<string>#import-declaration</string>
2016-08-19 21:29:26 +03:00
</dict>
<dict>
<key>include</key>
2016-08-19 21:29:26 +03:00
<string>#export-declaration</string>
</dict>
2015-11-06 00:14:57 +03:00
</array>
</dict>
2016-08-25 21:41:39 +03:00
<key>decorator</key>
<dict>
<key>begin</key>
<string>(?&lt;!\.|\$)\@</string>
2016-08-25 21:41:39 +03:00
<key>beginCaptures</key>
<dict>
<key>0</key>
<dict>
<key>name</key>
<string>punctuation.decorator.ts</string>
</dict>
</dict>
<key>end</key>
<string>(?=\s)</string>
<key>name</key>
<string>meta.decorator.ts</string>
<key>patterns</key>
<array>
<dict>
<key>include</key>
<string>#expression</string>
</dict>
</array>
</dict>
2016-08-19 21:29:26 +03:00
<key>destructuring-parameter</key>
<dict>
<key>patterns</key>
<array>
<dict>
<key>begin</key>
<string>(?&lt;!=|:)\s*(\{)</string>
<key>beginCaptures</key>
<dict>
<key>1</key>
<dict>
<key>name</key>
<string>punctuation.definition.binding-pattern.object.ts</string>
</dict>
</dict>
<key>end</key>
<string>\}</string>
<key>endCaptures</key>
<dict>
<key>0</key>
<dict>
<key>name</key>
<string>punctuation.definition.binding-pattern.object.ts</string>
</dict>
</dict>
<key>name</key>
<string>meta.parameter.object-binding-pattern.ts</string>
<key>patterns</key>
<array>
<dict>
<key>include</key>
<string>#parameter-object-binding-element</string>
</dict>
</array>
</dict>
<dict>
<key>begin</key>
<string>(?&lt;!=|:)\s*(\[)</string>
<key>beginCaptures</key>
<dict>
<key>1</key>
<dict>
<key>name</key>
<string>punctuation.definition.binding-pattern.array.ts</string>
</dict>
</dict>
<key>end</key>
<string>\]</string>
<key>endCaptures</key>
<dict>
<key>0</key>
<dict>
<key>name</key>
<string>punctuation.definition.binding-pattern.array.ts</string>
</dict>
</dict>
<key>name</key>
<string>meta.paramter.array-binding-pattern.ts</string>
<key>patterns</key>
<array>
<dict>
<key>include</key>
<string>#parameter-array-binding-element</string>
</dict>
</array>
</dict>
</array>
</dict>
2016-08-19 21:29:26 +03:00
<key>destructuring-variable</key>
<dict>
<key>patterns</key>
<array>
<dict>
<key>begin</key>
2016-09-08 01:36:30 +03:00
<string>(?&lt;!=|:|of|in)\s*(\{)</string>
2016-08-19 21:29:26 +03:00
<key>beginCaptures</key>
<dict>
<key>1</key>
<dict>
<key>name</key>
<string>punctuation.definition.binding-pattern.object.ts</string>
</dict>
</dict>
<key>end</key>
2016-09-08 01:36:30 +03:00
<string>(?=$|[;,}]|(\s+(of|in)\s+))</string>
2016-08-19 21:29:26 +03:00
<key>name</key>
<string>meta.object-binding-pattern-variable.ts</string>
<key>patterns</key>
<array>
<dict>
<key>include</key>
<string>#variable-initializer</string>
</dict>
<dict>
<key>begin</key>
<string>\G</string>
<key>end</key>
2016-09-08 01:36:30 +03:00
<string>(?!\G)(?=$|[;,=}]|(\s+(of|in)\s+))</string>
2016-08-19 21:29:26 +03:00
<key>patterns</key>
<array>
<dict>
<key>begin</key>
<string>\G</string>
<key>end</key>
<string>\}</string>
<key>endCaptures</key>
<dict>
<key>0</key>
<dict>
<key>name</key>
<string>punctuation.definition.binding-pattern.object.ts</string>
</dict>
</dict>
<key>patterns</key>
<array>
<dict>
<key>include</key>
<string>#object-binding-element</string>
</dict>
</array>
</dict>
<dict>
<key>include</key>
<string>#type-annotation</string>
</dict>
<dict>
<key>include</key>
<string>#comment</string>
</dict>
</array>
</dict>
</array>
</dict>
<dict>
<key>begin</key>
2016-09-08 01:36:30 +03:00
<string>(?&lt;!=|:|of|in)\s*(\[)</string>
2016-08-19 21:29:26 +03:00
<key>beginCaptures</key>
<dict>
<key>1</key>
<dict>
<key>name</key>
<string>punctuation.definition.binding-pattern.array.ts</string>
</dict>
</dict>
<key>end</key>
2016-09-08 01:36:30 +03:00
<string>(?=$|[;,}]|(\s+(of|in)\s+))</string>
2016-08-19 21:29:26 +03:00
<key>name</key>
<string>meta.array-binding-pattern-variable.ts</string>
<key>patterns</key>
<array>
<dict>
<key>include</key>
<string>#variable-initializer</string>
</dict>
<dict>
<key>begin</key>
<string>\G</string>
<key>end</key>
2016-09-08 01:36:30 +03:00
<string>(?!\G)(?=$|[;,=}]|(\s+(of|in)\s+))</string>
2016-08-19 21:29:26 +03:00
<key>patterns</key>
<array>
<dict>
<key>begin</key>
<string>\G</string>
<key>end</key>
<string>\]</string>
<key>endCaptures</key>
<dict>
<key>0</key>
<dict>
<key>name</key>
<string>punctuation.definition.binding-pattern.array.ts</string>
</dict>
</dict>
<key>patterns</key>
<array>
<dict>
<key>include</key>
<string>#array-binding-element</string>
</dict>
</array>
</dict>
<dict>
<key>include</key>
<string>#type-annotation</string>
</dict>
<dict>
<key>include</key>
<string>#comment</string>
</dict>
</array>
</dict>
</array>
</dict>
</array>
</dict>
2016-08-11 21:57:16 +03:00
<key>docblock</key>
<dict>
<key>patterns</key>
<array>
<dict>
<key>match</key>
<string>(?&lt;!\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</string>
<key>name</key>
<string>storage.type.class.jsdoc</string>
</dict>
<dict>
<key>captures</key>
<dict>
<key>0</key>
<dict>
<key>name</key>
<string>other.meta.jsdoc</string>
</dict>
<key>1</key>
<dict>
<key>name</key>
<string>entity.name.type.instance.jsdoc</string>
</dict>
<key>2</key>
<dict>
<key>name</key>
<string>variable.other.jsdoc</string>
</dict>
<key>3</key>
<dict>
<key>name</key>
<string>other.description.jsdoc</string>
</dict>
</dict>
<key>match</key>
2016-08-27 01:38:13 +03:00
<string>({\b(?:[_$[:alpha:]][_$[:alnum:]]*)\b})\s\b([_$[:alpha:]][_$[:alnum:]]*)\b\s*((?:(?!\*\/).)*)</string>
2016-08-11 21:57:16 +03:00
</dict>
</array>
</dict>
2015-11-06 00:14:57 +03:00
<key>enum-declaration</key>
<dict>
<key>captures</key>
<dict>
<key>1</key>
<dict>
<key>name</key>
<string>keyword.control.export.ts</string>
2015-11-06 00:14:57 +03:00
</dict>
<key>2</key>
<dict>
<key>name</key>
<string>storage.modifier.ts</string>
2015-11-06 00:14:57 +03:00
</dict>
<key>3</key>
<dict>
<key>name</key>
<string>storage.type.enum.ts</string>
</dict>
<key>4</key>
2015-11-06 00:14:57 +03:00
<dict>
<key>name</key>
<string>entity.name.type.enum.ts</string>
2015-11-06 00:14:57 +03:00
</dict>
</dict>
<key>match</key>
<string>(?&lt;!\.|\$)(?:(\bexport)\s+)?(?:\b(const)\s+)?\b(enum)\s+([_$[:alpha:]][_$[:alnum:]]*)</string>
2015-11-06 00:14:57 +03:00
<key>name</key>
<string>meta.enum.declaration.ts</string>
</dict>
2016-08-19 21:29:26 +03:00
<key>export-declaration</key>
<dict>
<key>patterns</key>
<array>
<dict>
<key>captures</key>
<dict>
<key>1</key>
<dict>
<key>name</key>
<string>keyword.control.export.ts</string>
</dict>
<key>2</key>
<dict>
<key>name</key>
<string>keyword.control.as.ts</string>
</dict>
<key>3</key>
<dict>
<key>name</key>
<string>storage.type.namespace.ts</string>
</dict>
<key>4</key>
<dict>
<key>name</key>
<string>entity.name.type.module.ts</string>
</dict>
</dict>
<key>match</key>
<string>(?&lt;!\.|\$)\b(export)\s+(as)\s+(namespace)\s+([_$[:alpha:]][_$[:alnum:]]*)</string>
2016-08-19 21:29:26 +03:00
</dict>
<dict>
<key>begin</key>
<string>(?&lt;!\.|\$)\b(export)(?:(?:\s*(=))|(?:\s+(default)\s+))</string>
2016-08-19 21:29:26 +03:00
<key>beginCaptures</key>
<dict>
<key>1</key>
<dict>
<key>name</key>
<string>keyword.control.export.ts</string>
</dict>
<key>2</key>
<dict>
<key>name</key>
<string>keyword.operator.assignment.ts</string>
</dict>
<key>3</key>
<dict>
<key>name</key>
<string>keyword.control.default.ts</string>
</dict>
</dict>
<key>end</key>
<string>(?=;|\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|$)</string>
<key>name</key>
<string>meta.export.default.ts</string>
<key>patterns</key>
<array>
<dict>
<key>include</key>
<string>#expression</string>
</dict>
</array>
</dict>
<dict>
<key>begin</key>
<string>(?&lt;!\.|\$)\b(export)(?!(\s*:)|(\$))\b</string>
2016-08-19 21:29:26 +03:00
<key>beginCaptures</key>
<dict>
<key>0</key>
<dict>
<key>name</key>
<string>keyword.control.export.ts</string>
</dict>
</dict>
<key>end</key>
<string>(?=;|\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|$)</string>
<key>name</key>
<string>meta.export.ts</string>
<key>patterns</key>
<array>
<dict>
<key>include</key>
<string>#import-export-declaration</string>
</dict>
</array>
</dict>
</array>
</dict>
2015-11-06 00:14:57 +03:00
<key>expression</key>
<dict>
<key>name</key>
<string>meta.expression.ts</string>
<key>patterns</key>
<array>
<dict>
<key>include</key>
<string>#string</string>
</dict>
<dict>
<key>include</key>
<string>#regex</string>
</dict>
<dict>
<key>include</key>
<string>#template</string>
</dict>
<dict>
<key>include</key>
<string>#comment</string>
</dict>
<dict>
<key>include</key>
<string>#literal</string>
</dict>
<dict>
<key>include</key>
<string>#function-declaration</string>
2015-11-06 00:14:57 +03:00
</dict>
2016-08-19 21:29:26 +03:00
<dict>
<key>include</key>
<string>#class-or-interface-declaration</string>
</dict>
2015-11-06 00:14:57 +03:00
<dict>
<key>include</key>
2016-09-13 23:40:40 +03:00
<string>#arrow-function</string>
2015-11-06 00:14:57 +03:00
</dict>
<dict>
<key>include</key>
2016-09-13 23:40:40 +03:00
<string>#cast</string>
2015-11-06 00:14:57 +03:00
</dict>
<dict>
<key>include</key>
2016-08-30 22:27:34 +03:00
<string>#ternary-expression</string>
2015-11-06 00:14:57 +03:00
</dict>
<dict>
<key>include</key>
2016-08-30 22:27:34 +03:00
<string>#new-expr</string>
</dict>
2016-01-27 12:49:11 +03:00
<dict>
<key>include</key>
<string>#object-literal</string>
</dict>
2015-11-06 00:14:57 +03:00
<dict>
<key>include</key>
<string>#expression-operator</string>
</dict>
<dict>
<key>include</key>
<string>#operators</string>
2015-11-06 00:14:57 +03:00
</dict>
<dict>
<key>include</key>
2016-01-27 13:02:58 +03:00
<string>#function-call</string>
2015-11-06 00:14:57 +03:00
</dict>
<dict>
<key>include</key>
<string>#paren-expression</string>
</dict>
<dict>
<key>include</key>
<string>#punctuation-comma</string>
</dict>
2016-09-16 02:27:02 +03:00
<dict>
<key>include</key>
<string>#punctuation-accessor</string>
</dict>
2015-11-06 00:14:57 +03:00
</array>
</dict>
<key>expression-operator</key>
<dict>
<key>patterns</key>
<array>
<dict>
<key>match</key>
<string>(?&lt;!\.|\$)\bdelete\b(?!\$)</string>
<key>name</key>
<string>keyword.operator.delete.ts</string>
</dict>
<dict>
<key>match</key>
<string>(?&lt;!\.|\$)\bin\b(?!\$)</string>
<key>name</key>
<string>keyword.operator.in.ts</string>
</dict>
<dict>
<key>match</key>
<string>(?&lt;!\.|\$)\bof\b(?!\$)</string>
<key>name</key>
<string>keyword.operator.of.ts</string>
</dict>
<dict>
<key>match</key>
<string>(?&lt;!\.|\$)\binstanceof\b(?!\$)</string>
<key>name</key>
<string>keyword.operator.instanceof.ts</string>
</dict>
<dict>
<key>match</key>
<string>(?&lt;!\.|\$)\bnew\b(?!\$)</string>
<key>name</key>
<string>keyword.operator.new.ts</string>
</dict>
<dict>
<key>include</key>
<string>#typeof-operator</string>
</dict>
<dict>
<key>match</key>
<string>(?&lt;!\.|\$)\bvoid\b(?!\$)</string>
<key>name</key>
<string>keyword.operator.void.ts</string>
</dict>
<dict>
<key>begin</key>
<string>(?&lt;!\.|\$)\bas\b(?!\$)</string>
<key>beginCaptures</key>
<dict>
<key>0</key>
<dict>
<key>name</key>
<string>keyword.control.as.ts</string>
</dict>
</dict>
<key>end</key>
<string>(?=$|[;,})\]])</string>
<key>patterns</key>
<array>
<dict>
<key>include</key>
<string>#type</string>
</dict>
</array>
</dict>
</array>
2015-11-06 00:14:57 +03:00
</dict>
<key>field-declaration</key>
<dict>
<key>begin</key>
2016-09-10 02:26:56 +03:00
<string>(?&lt;!\()(?:(?&lt;!\.|\$)\b(readonly)\s+)?\s*((?:[_$[:alpha:]][_$[:alnum:]]*)|(?:\'[^']*\')|(?:\"[^"]*\"))\s*(\?\s*)?(?=(=|:))</string>
2015-11-06 00:14:57 +03:00
<key>beginCaptures</key>
<dict>
<key>1</key>
<dict>
<key>name</key>
2016-09-10 02:26:56 +03:00
<string>storage.modifier.ts</string>
2015-11-06 00:14:57 +03:00
</dict>
<key>2</key>
2016-09-10 02:26:56 +03:00
<dict>
<key>name</key>
<string>variable.object.property.ts</string>
</dict>
<key>3</key>
2015-11-06 00:14:57 +03:00
<dict>
<key>name</key>
<string>keyword.operator.optional.ts</string>
2015-11-06 00:14:57 +03:00
</dict>
</dict>
<key>end</key>
<string>(?=\}|;|,|$)|(?&lt;=\})</string>
2015-11-06 00:14:57 +03:00
<key>name</key>
<string>meta.field.declaration.ts</string>
<key>patterns</key>
<array>
<dict>
<key>include</key>
<string>#variable-initializer</string>
</dict>
2015-11-06 00:14:57 +03:00
<dict>
<key>begin</key>
<string>\G</string>
<key>end</key>
<string>(?!\G)(?=[};,=]|$)|(?&lt;=\})</string>
<key>patterns</key>
<array>
<dict>
<key>include</key>
<string>#type-annotation</string>
</dict>
<dict>
<key>include</key>
<string>#string</string>
</dict>
<dict>
<key>include</key>
<string>#comment</string>
</dict>
</array>
2015-11-06 00:14:57 +03:00
</dict>
</array>
</dict>
2016-08-19 21:29:26 +03:00
<key>for-loop</key>
<dict>
<key>begin</key>
<string>(?&lt;!\.|\$)\b(for)\s*(\()</string>
2016-08-19 21:29:26 +03:00
<key>beginCaptures</key>
<dict>
<key>1</key>
<dict>
<key>name</key>
<string>keyword.control.loop.ts</string>
</dict>
<key>2</key>
<dict>
<key>name</key>
<string>meta.brace.round.ts</string>
</dict>
</dict>
<key>end</key>
<string>\)</string>
<key>endCaptures</key>
<dict>
<key>0</key>
<dict>
<key>name</key>
<string>meta.brace.round.ts</string>
</dict>
</dict>
<key>patterns</key>
<array>
<dict>
<key>include</key>
<string>#var-expr</string>
</dict>
<dict>
<key>include</key>
<string>#expression</string>
</dict>
2016-09-16 02:16:35 +03:00
<dict>
<key>include</key>
<string>#punctuation-semicolon</string>
</dict>
2016-08-19 21:29:26 +03:00
</array>
</dict>
2015-11-06 00:14:57 +03:00
<key>function-call</key>
<dict>
<key>begin</key>
<string>([_$[:alpha:]][_$[:alnum:]]*)\s*(?=(&lt;[^&lt;&gt;]*(\&lt;[^&lt;&gt;]+\&gt;)*[^&lt;&gt;]*(\&lt;[^&lt;&gt;]+\&gt;)*[^&lt;&gt;]*&gt;\s*)?\()</string>
<key>beginCaptures</key>
<dict>
<key>1</key>
<dict>
<key>name</key>
<string>variable.function.ts</string>
</dict>
</dict>
<key>end</key>
<string>(?=\()</string>
2015-11-06 00:14:57 +03:00
<key>patterns</key>
<array>
<dict>
<key>include</key>
<string>#comment</string>
</dict>
2015-11-06 00:14:57 +03:00
<dict>
2016-09-01 03:09:03 +03:00
<key>begin</key>
<string>\&lt;</string>
2016-09-01 03:09:03 +03:00
<key>beginCaptures</key>
<dict>
<key>0</key>
2016-09-01 03:09:03 +03:00
<dict>
<key>name</key>
<string>punctuation.definition.typeparameters.begin.ts</string>
</dict>
</dict>
<key>end</key>
<string>\&gt;</string>
2016-09-01 03:09:03 +03:00
<key>endCaptures</key>
<dict>
<key>0</key>
2016-09-01 03:09:03 +03:00
<dict>
<key>name</key>
<string>punctuation.definition.typeparameters.end.ts</string>
</dict>
</dict>
<key>name</key>
<string>meta.type.parameters.ts</string>
<key>patterns</key>
<array>
<dict>
<key>include</key>
<string>#type</string>
</dict>
<dict>
<key>include</key>
<string>#punctuation-comma</string>
</dict>
2016-09-01 03:09:03 +03:00
</array>
2015-11-06 00:14:57 +03:00
</dict>
</array>
</dict>
<key>function-declaration</key>
<dict>
<key>begin</key>
<string>(?&lt;!\.|\$)\b(?:(export)\s+)?(?:(async)\s+)?(function\b)(?:\s*(\*))?(?:(?:\s+|(?&lt;=\*))([_$[:alpha:]][_$[:alnum:]]*))?\s*</string>
2015-11-06 00:14:57 +03:00
<key>beginCaptures</key>
<dict>
<key>1</key>
<dict>
<key>name</key>
<string>keyword.control.export.ts</string>
2015-11-06 00:14:57 +03:00
</dict>
<key>2</key>
<dict>
<key>name</key>
<string>storage.modifier.async.ts</string>
2015-11-06 00:14:57 +03:00
</dict>
<key>3</key>
<dict>
<key>name</key>
<string>storage.type.function.ts</string>
</dict>
<key>4</key>
<dict>
<key>name</key>
<string>keyword.generator.asterisk.ts</string>
</dict>
<key>5</key>
2015-11-06 00:14:57 +03:00
<dict>
<key>name</key>
<string>entity.name.function.ts</string>
</dict>
</dict>
<key>end</key>
<string>(?=;|\})|(?&lt;=\})</string>
<key>name</key>
<string>meta.function.ts</string>
<key>patterns</key>
<array>
<dict>
<key>include</key>
<string>#comment</string>
</dict>
<dict>
<key>include</key>
<string>#type-parameters</string>
</dict>
<dict>
<key>include</key>
<string>#function-parameters</string>
2015-11-06 00:14:57 +03:00
</dict>
<dict>
<key>include</key>
<string>#return-type</string>
</dict>
<dict>
<key>include</key>
<string>#function-overload-declaration</string>
</dict>
<dict>
<key>include</key>
<string>#decl-block</string>
</dict>
</array>
</dict>
<key>function-overload-declaration</key>
<dict>
<key>captures</key>
<dict>
<key>1</key>
<dict>
<key>name</key>
<string>keyword.control.export.ts</string>
2015-11-06 00:14:57 +03:00
</dict>
<key>2</key>
<dict>
<key>name</key>
<string>storage.modifier.async.ts</string>
2015-11-06 00:14:57 +03:00
</dict>
<key>3</key>
<dict>
<key>name</key>
<string>storage.type.function.ts</string>
</dict>
<key>4</key>
<dict>
<key>name</key>
<string>keyword.generator.asterisk.ts</string>
</dict>
<key>5</key>
2015-11-06 00:14:57 +03:00
<dict>
<key>name</key>
<string>entity.name.function.ts</string>
</dict>
</dict>
<key>match</key>
<string>(?&lt;!\.|\$)\b(?:(export)\s+)?(?:(async)\s+)?(function\b)(?:\s*(\*))?(?:(?:\s+|(?&lt;=\*))([_$[:alpha:]][_$[:alnum:]]*))?\s*</string>
2015-11-06 00:14:57 +03:00
<key>name</key>
<string>meta.function.overload.ts</string>
</dict>
<key>function-parameters</key>
2015-11-06 00:14:57 +03:00
<dict>
<key>begin</key>
<string>\(</string>
<key>beginCaptures</key>
<dict>
<key>0</key>
<dict>
<key>name</key>
<string>punctuation.definition.parameters.begin.ts</string>
2015-11-06 00:14:57 +03:00
</dict>
</dict>
<key>end</key>
<string>\)</string>
<key>endCaptures</key>
<dict>
<key>0</key>
<dict>
<key>name</key>
<string>punctuation.definition.parameters.end.ts</string>
2015-11-06 00:14:57 +03:00
</dict>
</dict>
<key>name</key>
<string>meta.parameters.ts</string>
2015-11-06 00:14:57 +03:00
<key>patterns</key>
<array>
<dict>
<key>include</key>
<string>#comment</string>
</dict>
2016-08-25 21:41:39 +03:00
<dict>
<key>include</key>
<string>#decorator</string>
</dict>
2016-08-19 21:29:26 +03:00
<dict>
<key>include</key>
<string>#destructuring-parameter</string>
</dict>
2015-11-06 00:14:57 +03:00
<dict>
<key>include</key>
<string>#parameter-name</string>
</dict>
<dict>
<key>include</key>
<string>#type-annotation</string>
</dict>
<dict>
<key>include</key>
<string>#variable-initializer</string>
</dict>
<dict>
<key>match</key>
<string>,</string>
<key>name</key>
<string>punctuation.separator.parameter.ts</string>
</dict>
2015-11-06 00:14:57 +03:00
</array>
</dict>
<key>import-declaration</key>
<dict>
<key>begin</key>
<string>(?&lt;!\.|\$)(?:(\bexport)\s+)?\b(import)(?!(\s*:)|(\$))\b</string>
<key>beginCaptures</key>
<dict>
<key>1</key>
<dict>
<key>name</key>
<string>keyword.control.export.ts</string>
</dict>
<key>2</key>
<dict>
<key>name</key>
<string>keyword.control.import.ts</string>
</dict>
</dict>
<key>end</key>
<string>(?=;|$)</string>
<key>name</key>
<string>meta.import.ts</string>
<key>patterns</key>
<array>
<dict>
<key>include</key>
2016-08-19 21:29:26 +03:00
<string>#import-export-declaration</string>
</dict>
</array>
</dict>
<key>import-equals-declaration</key>
<dict>
<key>patterns</key>
<array>
<dict>
<key>begin</key>
<string>(?&lt;!\.|\$)(?:(\bexport)\s+)?\b(import)\s+([_$[:alpha:]][_$[:alnum:]]*)\s*(=)\s*(require)\s*(\()</string>
<key>beginCaptures</key>
<dict>
<key>1</key>
<dict>
<key>name</key>
<string>keyword.control.export.ts</string>
</dict>
<key>2</key>
<dict>
<key>name</key>
<string>keyword.control.import.ts</string>
</dict>
<key>3</key>
<dict>
<key>name</key>
<string>variable.other.readwrite.alias.ts</string>
</dict>
<key>4</key>
<dict>
<key>name</key>
<string>keyword.operator.assignment.ts</string>
</dict>
<key>5</key>
<dict>
<key>name</key>
<string>keyword.control.require.ts</string>
</dict>
<key>6</key>
<dict>
<key>name</key>
<string>meta.brace.round.ts</string>
</dict>
</dict>
<key>end</key>
<string>\)</string>
<key>endCaptures</key>
<dict>
<key>0</key>
<dict>
<key>name</key>
<string>meta.brace.round.ts</string>
</dict>
</dict>
<key>name</key>
<string>meta.import-equals.external.ts</string>
<key>patterns</key>
<array>
<dict>
<key>include</key>
<string>#comment</string>
</dict>
<dict>
<key>include</key>
<string>#string</string>
</dict>
</array>
</dict>
<dict>
<key>begin</key>
<string>(?&lt;!\.|\$)(?:(\bexport)\s+)?\b(import)\s+([_$[:alpha:]][_$[:alnum:]]*)\s*(=)\s*(?!require\b)</string>
<key>beginCaptures</key>
<dict>
<key>1</key>
<dict>
<key>name</key>
<string>keyword.control.export.ts</string>
</dict>
<key>2</key>
<dict>
<key>name</key>
<string>keyword.control.import.ts</string>
</dict>
<key>3</key>
<dict>
<key>name</key>
<string>variable.other.readwrite.alias.ts</string>
</dict>
<key>4</key>
<dict>
<key>name</key>
<string>keyword.operator.assignment.ts</string>
</dict>
</dict>
<key>end</key>
<string>(?=;|$)</string>
<key>name</key>
<string>meta.import-equals.internal.ts</string>
<key>patterns</key>
<array>
<dict>
<key>include</key>
<string>#comment</string>
</dict>
<dict>
<key>captures</key>
<dict>
<key>1</key>
<dict>
<key>name</key>
2016-08-19 21:29:26 +03:00
<string>entity.name.type.module.ts</string>
</dict>
<key>2</key>
<dict>
<key>name</key>
<string>punctuation.accessor.ts</string>
</dict>
</dict>
<key>match</key>
<string>([_$[:alpha:]][_$[:alnum:]]*)\s*(\.)</string>
</dict>
<dict>
<key>match</key>
<string>([_$[:alpha:]][_$[:alnum:]]*)</string>
<key>name</key>
<string>variable.other.readwrite.ts</string>
</dict>
</array>
</dict>
</array>
</dict>
2016-08-19 21:29:26 +03:00
<key>import-export-block</key>
<dict>
<key>begin</key>
<string>\{</string>
<key>beginCaptures</key>
<dict>
<key>0</key>
<dict>
<key>name</key>
<string>punctuation.definition.block.ts</string>
</dict>
</dict>
<key>end</key>
<string>\}</string>
<key>endCaptures</key>
<dict>
<key>0</key>
<dict>
<key>name</key>
<string>punctuation.definition.block.ts</string>
</dict>
</dict>
<key>name</key>
<string>meta.block.ts</string>
<key>patterns</key>
<array>
<dict>
<key>include</key>
<string>#import-export-clause</string>
</dict>
</array>
</dict>
<key>import-export-clause</key>
<dict>
<key>patterns</key>
<array>
<dict>
<key>include</key>
<string>#comment</string>
</dict>
<dict>
<key>captures</key>
<dict>
<key>1</key>
<dict>
<key>name</key>
<string>keyword.control.default.ts</string>
</dict>
<key>2</key>
<dict>
<key>name</key>
<string>constant.language.import-export-all.ts</string>
</dict>
<key>3</key>
<dict>
<key>name</key>
<string>variable.other.readwrite.ts</string>
</dict>
<key>4</key>
<dict>
<key>name</key>
<string>keyword.control.as.ts</string>
</dict>
<key>5</key>
<dict>
<key>name</key>
<string>invalid.illegal.ts</string>
</dict>
<key>6</key>
<dict>
<key>name</key>
<string>variable.other.readwrite.alias.ts</string>
</dict>
</dict>
<key>comment</key>
<string>(default|*|name) as alias</string>
<key>match</key>
<string>(?x) (?: \b(default)\b | (\*) | ([_$[:alpha:]][_$[:alnum:]]*)) \s+ (as) \s+ (?: (\b default \b | \*) | ([_$[:alpha:]][_$[:alnum:]]*))</string>
2016-08-19 21:29:26 +03:00
</dict>
<dict>
<key>match</key>
<string>,</string>
<key>name</key>
<string>meta.delimiter.object.comma.ts</string>
</dict>
<dict>
<key>match</key>
<string>\*</string>
<key>name</key>
<string>constant.language.import-export-all.ts</string>
</dict>
<dict>
<key>match</key>
<string>\b(default)\b</string>
<key>name</key>
<string>keyword.control.default.ts</string>
</dict>
<dict>
<key>match</key>
<string>([_$[:alpha:]][_$[:alnum:]]*)</string>
2016-08-19 21:29:26 +03:00
<key>name</key>
<string>variable.other.readwrite.alias.ts</string>
</dict>
</array>
</dict>
<key>import-export-declaration</key>
<dict>
<key>patterns</key>
<array>
<dict>
<key>include</key>
<string>#comment</string>
</dict>
<dict>
<key>include</key>
<string>#string</string>
</dict>
<dict>
<key>include</key>
<string>#import-export-block</string>
</dict>
<dict>
<key>match</key>
<string>\bfrom\b</string>
<key>name</key>
<string>keyword.control.from.ts</string>
</dict>
<dict>
<key>include</key>
<string>#import-export-clause</string>
</dict>
</array>
</dict>
2015-11-06 00:14:57 +03:00
<key>indexer-declaration</key>
<dict>
<key>begin</key>
2016-09-10 02:26:56 +03:00
<string>(?:(?&lt;!\.|\$)\b(readonly)\s*)?(\[)</string>
2015-11-06 00:14:57 +03:00
<key>beginCaptures</key>
<dict>
2016-09-10 02:26:56 +03:00
<key>1</key>
<dict>
<key>name</key>
<string>storage.modifier.ts</string>
</dict>
<key>2</key>
2015-11-06 00:14:57 +03:00
<dict>
<key>name</key>
<string>meta.brace.square.ts</string>
</dict>
</dict>
<key>end</key>
<string>(\])\s*(\?\s*)?|$</string>
<key>endCaptures</key>
<dict>
<key>1</key>
<dict>
<key>name</key>
<string>meta.brace.square.ts</string>
</dict>
<key>2</key>
<dict>
<key>name</key>
<string>keyword.operator.optional.ts</string>
2015-11-06 00:14:57 +03:00
</dict>
</dict>
<key>name</key>
<string>meta.indexer.declaration.ts</string>
<key>patterns</key>
<array>
<dict>
<key>include</key>
<string>#type-annotation</string>
</dict>
<dict>
<key>include</key>
<string>#indexer-parameter</string>
2015-11-06 00:14:57 +03:00
</dict>
</array>
</dict>
<key>indexer-parameter</key>
<dict>
<key>captures</key>
<dict>
<key>1</key>
<dict>
<key>name</key>
<string>variable.parameter.ts</string>
</dict>
</dict>
<key>match</key>
2016-08-27 01:38:13 +03:00
<string>([_$[:alpha:]][_$[:alnum:]]*)(?=\:)</string>
2015-11-06 00:14:57 +03:00
<key>name</key>
<string>meta.indexer.parameter.ts</string>
</dict>
<key>literal</key>
<dict>
<key>name</key>
<string>literal.ts</string>
<key>patterns</key>
<array>
<dict>
<key>include</key>
<string>#numeric-literal</string>
</dict>
<dict>
<key>include</key>
<string>#boolean-literal</string>
</dict>
<dict>
<key>include</key>
<string>#null-literal</string>
</dict>
<dict>
<key>include</key>
<string>#undefined-literal</string>
</dict>
<dict>
<key>include</key>
<string>#numericConstant-literal</string>
</dict>
2015-11-06 00:14:57 +03:00
<dict>
<key>include</key>
<string>#array-literal</string>
</dict>
<dict>
<key>include</key>
<string>#this-literal</string>
</dict>
<dict>
<key>include</key>
<string>#super-literal</string>
</dict>
2015-11-06 00:14:57 +03:00
</array>
</dict>
<key>method-declaration</key>
<dict>
<key>begin</key>
<string>(?&lt;!\.|\$)(?:\b(abstract)\s+)?(?:\b(public|private|protected)\s+)?(?:\b(async)\s+)?(?:\b(get|set)\s+)?(?=((\bnew)|(?:\b(constructor)\b)|((?:(\*)\s*)?((?:[_$[:alpha:]][_$[:alnum:]]*)|(?:\'[^']*\')|(?:\"[^"]*\")|(?:\[[^\]]*\]))\s*(\??)))?\s*[\(\&lt;])</string>
2015-11-06 00:14:57 +03:00
<key>beginCaptures</key>
<dict>
<key>1</key>
<dict>
<key>name</key>
<string>storage.modifier.ts</string>
</dict>
<key>2</key>
<dict>
<key>name</key>
<string>storage.modifier.ts</string>
</dict>
<key>3</key>
<dict>
<key>name</key>
<string>storage.modifier.async.ts</string>
2015-11-06 00:14:57 +03:00
</dict>
<key>4</key>
<dict>
<key>name</key>
<string>storage.type.property.ts</string>
2015-11-06 00:14:57 +03:00
</dict>
</dict>
<key>end</key>
2016-01-27 12:49:11 +03:00
<string>(?=\}|;|,)|(?&lt;=\})</string>
2015-11-06 00:14:57 +03:00
<key>name</key>
<string>meta.method.declaration.ts</string>
<key>patterns</key>
<array>
<dict>
<key>include</key>
<string>#method-declaration-name</string>
</dict>
2015-11-06 00:14:57 +03:00
<dict>
<key>include</key>
<string>#comment</string>
</dict>
<dict>
<key>include</key>
<string>#type-parameters</string>
</dict>
<dict>
<key>include</key>
<string>#function-parameters</string>
2015-11-06 00:14:57 +03:00
</dict>
<dict>
<key>include</key>
<string>#return-type</string>
2015-11-06 00:14:57 +03:00
</dict>
<dict>
<key>include</key>
<string>#method-overload-declaration</string>
</dict>
<dict>
<key>include</key>
<string>#decl-block</string>
</dict>
</array>
</dict>
<key>method-declaration-name</key>
2015-11-06 00:14:57 +03:00
<dict>
<key>begin</key>
<string>\G(?!\(|\&lt;)</string>
<key>end</key>
<string>(?=\(|\&lt;)</string>
<key>patterns</key>
<array>
<dict>
<key>captures</key>
<dict>
<key>1</key>
<dict>
<key>name</key>
<string>keyword.generator.asterisk.ts</string>
</dict>
</dict>
<key>match</key>
<string>(\*)\s*</string>
</dict>
<dict>
<key>include</key>
<string>#string</string>
</dict>
<dict>
<key>include</key>
<string>#array-literal</string>
</dict>
2015-11-06 00:14:57 +03:00
<dict>
<key>match</key>
<string>\bnew(?=\s*[\(\&lt;])</string>
2015-11-06 00:14:57 +03:00
<key>name</key>
<string>keyword.operator.new.ts</string>
2015-11-06 00:14:57 +03:00
</dict>
<dict>
<key>match</key>
<string>\bconstructor\b(?=\s*[\(\&lt;])</string>
2015-11-06 00:14:57 +03:00
<key>name</key>
<string>storage.type.ts</string>
2015-11-06 00:14:57 +03:00
</dict>
<dict>
<key>match</key>
<string>[_$[:alpha:]][_$[:alnum:]]*</string>
2015-11-06 00:14:57 +03:00
<key>name</key>
<string>entity.name.function.ts</string>
2015-11-06 00:14:57 +03:00
</dict>
2016-01-30 00:54:27 +03:00
<dict>
<key>match</key>
<string>\?</string>
2016-01-30 00:54:27 +03:00
<key>name</key>
<string>keyword.operator.optional.ts</string>
2016-01-30 00:54:27 +03:00
</dict>
</array>
</dict>
<key>method-overload-declaration</key>
<dict>
<key>begin</key>
<string>(?&lt;!\.|\$)(?:\b(abstract)\s+)?(?:\b(public|private|protected)\s+)?(?:\b(async)\s+)?(?:\b(get|set)\s+)?(?=((\bnew)|(?:\b(constructor)\b)|((?:(\*)\s*)?((?:[_$[:alpha:]][_$[:alnum:]]*)|(?:\'[^']*\')|(?:\"[^"]*\")|(?:\[[^\]]*\]))\s*(\??)))?\s*[\(\&lt;])</string>
<key>beginCaptures</key>
<dict>
<key>1</key>
2016-01-30 00:54:27 +03:00
<dict>
<key>name</key>
<string>storage.modifier.ts</string>
2016-01-30 00:54:27 +03:00
</dict>
<key>2</key>
2016-01-30 00:54:27 +03:00
<dict>
<key>name</key>
<string>storage.modifier.ts</string>
2016-01-30 00:54:27 +03:00
</dict>
<key>3</key>
<dict>
<key>name</key>
<string>storage.modifier.ts</string>
</dict>
<key>4</key>
2015-11-06 00:14:57 +03:00
<dict>
<key>name</key>
<string>storage.type.property.ts</string>
2015-11-06 00:14:57 +03:00
</dict>
</dict>
<key>end</key>
<string>(?=\(|\&lt;)</string>
2015-11-06 00:14:57 +03:00
<key>name</key>
<string>meta.method.overload.declaration.ts</string>
<key>patterns</key>
<array>
<dict>
<key>include</key>
<string>#method-declaration-name</string>
</dict>
</array>
2015-11-06 00:14:57 +03:00
</dict>
2016-08-19 21:29:26 +03:00
<key>namespace-declaration</key>
<dict>
<key>begin</key>
<string>(?&lt;!\.|\$)(?:(\bexport)\s+)?\b(namespace|module)\s+</string>
2016-08-19 21:29:26 +03:00
<key>beginCaptures</key>
<dict>
<key>1</key>
<dict>
<key>name</key>
<string>keyword.control.export.ts</string>
</dict>
<key>2</key>
<dict>
<key>name</key>
<string>storage.type.namespace.ts</string>
</dict>
</dict>
<key>end</key>
<string>(?=$|\{)</string>
<key>name</key>
<string>meta.namespace.declaration.ts</string>
<key>patterns</key>
<array>
<dict>
<key>include</key>
<string>#comment</string>
</dict>
<dict>
<key>include</key>
<string>#string</string>
</dict>
<dict>
<key>match</key>
2016-09-08 01:36:30 +03:00
<string>([_$[:alpha:]][_$[:alnum:]]*)</string>
2016-08-19 21:29:26 +03:00
<key>name</key>
<string>entity.name.type.module.ts</string>
</dict>
<dict>
<key>match</key>
<string>\.</string>
<key>name</key>
<string>punctuation.accessor.ts</string>
</dict>
</array>
</dict>
2015-11-06 00:14:57 +03:00
<key>new-expr</key>
<dict>
<key>begin</key>
<string>(?&lt;!\.|\$)\b(new)\b(?!\$)</string>
2015-11-06 00:14:57 +03:00
<key>beginCaptures</key>
<dict>
<key>1</key>
<dict>
<key>name</key>
<string>keyword.operator.new.ts</string>
2015-11-06 00:14:57 +03:00
</dict>
</dict>
<key>end</key>
<string>(?=[(;),]|$|((?&lt;!\.|\$)\bnew\b(?!\$)))</string>
2015-11-06 00:14:57 +03:00
<key>name</key>
<string>new.expr.ts</string>
<key>patterns</key>
<array>
<dict>
<key>include</key>
<string>#type</string>
</dict>
</array>
</dict>
<key>null-literal</key>
<dict>
<key>match</key>
<string>(?&lt;!\.|\$)\bnull\b(?!\$)</string>
2015-11-06 00:14:57 +03:00
<key>name</key>
<string>constant.language.null.ts</string>
</dict>
<key>numeric-literal</key>
<dict>
2016-08-12 01:38:31 +03:00
<key>patterns</key>
<array>
<dict>
<key>match</key>
<string>\b(?&lt;!\$)0(x|X)[0-9a-fA-F]+\b(?!\$)</string>
<key>name</key>
<string>constant.numeric.hex.ts</string>
</dict>
<dict>
<key>match</key>
<string>\b(?&lt;!\$)0(b|B)[01]+\b(?!\$)</string>
<key>name</key>
<string>constant.numeric.binary.ts</string>
</dict>
<dict>
<key>match</key>
<string>\b(?&lt;!\$)0(o|O)?[0-7]+\b(?!\$)</string>
<key>name</key>
<string>constant.numeric.octal.ts</string>
</dict>
<dict>
<key>captures</key>
<dict>
<key>0</key>
<dict>
<key>name</key>
<string>constant.numeric.decimal.ts</string>
</dict>
<key>1</key>
<dict>
<key>name</key>
<string>meta.delimiter.decimal.period.ts</string>
</dict>
<key>2</key>
<dict>
<key>name</key>
<string>meta.delimiter.decimal.period.ts</string>
</dict>
<key>3</key>
<dict>
<key>name</key>
<string>meta.delimiter.decimal.period.ts</string>
</dict>
<key>4</key>
<dict>
<key>name</key>
<string>meta.delimiter.decimal.period.ts</string>
</dict>
<key>5</key>
<dict>
<key>name</key>
<string>meta.delimiter.decimal.period.ts</string>
</dict>
<key>6</key>
<dict>
<key>name</key>
<string>meta.delimiter.decimal.period.ts</string>
</dict>
</dict>
<key>match</key>
<string>(?x)
(?&lt;!\$)(?:
(?:\b[0-9]+(\.)[0-9]+[eE][+-]?[0-9]+\b)| # 1.1E+3
(?:\b[0-9]+(\.)[eE][+-]?[0-9]+\b)| # 1.E+3
(?:\B(\.)[0-9]+[eE][+-]?[0-9]+\b)| # .1E+3
(?:\b[0-9]+[eE][+-]?[0-9]+\b)| # 1E+3
(?:\b[0-9]+(\.)[0-9]+\b)| # 1.1
(?:\b[0-9]+(\.)\B)| # 1.
(?:\B(\.)[0-9]+\b)| # .1
(?:\b[0-9]+\b(?!\.)) # 1
)(?!\$)</string>
</dict>
</array>
2015-11-06 00:14:57 +03:00
</dict>
<key>numericConstant-literal</key>
<dict>
<key>patterns</key>
<array>
<dict>
<key>match</key>
<string>(?&lt;!\.|\$)\bNaN\b(?!\$)</string>
<key>name</key>
<string>constant.language.nan.ts</string>
</dict>
<dict>
<key>match</key>
<string>(?&lt;!\.|\$)\bInfinity\b(?!\$)</string>
<key>name</key>
<string>constant.language.infinity.ts</string>
</dict>
</array>
</dict>
2016-08-19 21:29:26 +03:00
<key>object-binding-element</key>
<dict>
<key>patterns</key>
<array>
<dict>
<key>include</key>
<string>#comment</string>
</dict>
<dict>
<key>begin</key>
<string>([_$[:alpha:]][_$[:alnum:]]*)\s*(:)</string>
2016-08-19 21:29:26 +03:00
<key>beginCaptures</key>
<dict>
<key>1</key>
<dict>
<key>name</key>
<string>variable.object.property.ts</string>
</dict>
<key>2</key>
<dict>
<key>name</key>
<string>punctuation.destructuring.ts</string>
</dict>
</dict>
<key>end</key>
<string>(?=,|\})</string>
<key>patterns</key>
<array>
<dict>
<key>include</key>
<string>#object-binding-pattern</string>
</dict>
<dict>
<key>include</key>
<string>#array-binding-pattern</string>
</dict>
<dict>
<key>match</key>
<string>([_$[:alpha:]][_$[:alnum:]]*)</string>
2016-08-19 21:29:26 +03:00
<key>name</key>
<string>variable.other.readwrite.ts</string>
</dict>
</array>
</dict>
<dict>
<key>match</key>
<string>([_$[:alpha:]][_$[:alnum:]]*)</string>
2016-08-19 21:29:26 +03:00
<key>name</key>
<string>variable.other.readwrite.ts</string>
</dict>
<dict>
<key>match</key>
<string>,</string>
<key>name</key>
<string>meta.delimiter.object.comma.ts</string>
</dict>
</array>
</dict>
<key>object-binding-pattern</key>
<dict>
<key>begin</key>
<string>\{</string>
<key>beginCaptures</key>
<dict>
<key>0</key>
<dict>
<key>name</key>
<string>punctuation.definition.binding-pattern.object.ts</string>
</dict>
</dict>
<key>end</key>
<string>\}</string>
<key>endCaptures</key>
<dict>
<key>0</key>
<dict>
<key>name</key>
<string>punctuation.definition.binding-pattern.object.ts</string>
</dict>
</dict>
<key>patterns</key>
<array>
<dict>
<key>include</key>
<string>#object-binding-element</string>
</dict>
</array>
</dict>
<key>object-literal</key>
2015-11-06 00:14:57 +03:00
<dict>
<key>begin</key>
<string>\{</string>
<key>beginCaptures</key>
<dict>
<key>0</key>
<dict>
<key>name</key>
<string>punctuation.definition.block.ts</string>
2015-11-06 00:14:57 +03:00
</dict>
</dict>
<key>end</key>
<string>\}</string>
<key>endCaptures</key>
<dict>
<key>0</key>
<dict>
<key>name</key>
<string>punctuation.definition.block.ts</string>
2015-11-06 00:14:57 +03:00
</dict>
</dict>
<key>name</key>
<string>meta.object-literal.ts</string>
2015-11-06 00:14:57 +03:00
<key>patterns</key>
<array>
<dict>
<key>include</key>
<string>#object-member</string>
2015-11-06 00:14:57 +03:00
</dict>
</array>
</dict>
<key>object-member</key>
<dict>
<key>patterns</key>
<array>
<dict>
<key>include</key>
<string>#comment</string>
</dict>
<dict>
<key>include</key>
<string>#method-declaration</string>
</dict>
<dict>
<key>begin</key>
<string>(?=(?:(?:\'[^']*\')|(?:\"[^"]*\")|(?:\[[^\]]*\]))\s*:)</string>
<key>end</key>
<string>(?=,|\})</string>
<key>name</key>
<string>meta.object.member.ts</string>
<key>patterns</key>
<array>
<dict>
<key>begin</key>
<string>\G(?&lt;!:)</string>
<key>end</key>
<string>:</string>
<key>endCaptures</key>
<dict>
<key>0</key>
<dict>
<key>name</key>
<string>punctuation.separator.key-value.ts</string>
</dict>
</dict>
<key>name</key>
<string>meta.object-literal.key.ts</string>
<key>patterns</key>
<array>
<dict>
<key>include</key>
<string>#string</string>
</dict>
<dict>
<key>include</key>
<string>#array-literal</string>
</dict>
</array>
</dict>
<dict>
<key>include</key>
<string>#expression</string>
</dict>
</array>
2015-11-06 00:14:57 +03:00
</dict>
<dict>
<key>begin</key>
2016-09-13 23:40:40 +03:00
<string>(?x)(?:([_$[:alpha:]][_$[:alnum:]]*)\s*(:)(?=\s*( (async\s+)|(function\s+)| ([_$[:alpha:]][_$[:alnum:]]*\s*=&gt;)| ((&lt;[^&lt;&gt;]*(\&lt;[^&lt;&gt;]+\&gt;)*[^&lt;&gt;]*(\&lt;[^&lt;&gt;]+\&gt;)*[^&lt;&gt;]*&gt;\s*)?\([^()]*(\([^()]*\))*[^()]*(\([^()]*\))*[^()]*\)(\s*:\s*(.)*)?\s*=&gt;))))</string>
<key>beginCaptures</key>
<dict>
<key>0</key>
<dict>
<key>name</key>
<string>meta.object-literal.key.ts</string>
</dict>
<key>1</key>
<dict>
<key>name</key>
<string>entity.name.function.ts</string>
</dict>
<key>2</key>
<dict>
<key>name</key>
<string>punctuation.separator.key-value.ts</string>
</dict>
</dict>
<key>end</key>
<string>(?=,|\})</string>
<key>name</key>
<string>meta.object.member.ts</string>
<key>patterns</key>
<array>
<dict>
<key>include</key>
<string>#expression</string>
</dict>
</array>
</dict>
<dict>
<key>begin</key>
<string>([_$[:alpha:]][_$[:alnum:]]*)\s*(:)</string>
<key>beginCaptures</key>
<dict>
<key>0</key>
<dict>
<key>name</key>
<string>meta.object-literal.key.ts</string>
</dict>
<key>1</key>
<dict>
<key>name</key>
<string>entity.name.type.attribute-name.ts</string>
</dict>
<key>2</key>
<dict>
<key>name</key>
<string>punctuation.separator.key-value.ts</string>
</dict>
</dict>
<key>end</key>
<string>(?=,|\})</string>
<key>name</key>
<string>meta.object.member.ts</string>
<key>patterns</key>
<array>
<dict>
<key>include</key>
<string>#expression</string>
</dict>
</array>
</dict>
<dict>
<key>captures</key>
<dict>
<key>1</key>
<dict>
<key>name</key>
<string>variable.other.readwrite.ts</string>
</dict>
</dict>
<key>match</key>
<string>([_$[:alpha:]][_$[:alnum:]]*)\s*(?=,|\})</string>
<key>name</key>
<string>meta.object.member.ts</string>
</dict>
<dict>
<key>include</key>
<string>#punctuation-comma</string>
</dict>
2015-11-06 00:14:57 +03:00
</array>
</dict>
<key>operators</key>
<dict>
<key>patterns</key>
<array>
<dict>
<key>match</key>
<string>\*=|(?&lt;!\()/=|%=|\+=|\-=</string>
<key>name</key>
<string>keyword.operator.assignment.compound.ts</string>
</dict>
<dict>
<key>match</key>
<string>\&amp;=|\^=|&lt;&lt;=|&gt;&gt;=|&gt;&gt;&gt;=|\|=</string>
<key>name</key>
<string>keyword.operator.assignment.compound.bitwise.ts</string>
</dict>
<dict>
<key>match</key>
<string>===|!==|==|!=</string>
<key>name</key>
<string>keyword.operator.comparison.ts</string>
</dict>
<dict>
<key>match</key>
<string>&lt;=|&gt;=|&lt;&gt;|&lt;|&gt;</string>
<key>name</key>
<string>keyword.operator.relational.ts</string>
</dict>
<dict>
<key>match</key>
<string>\!|&amp;&amp;|\|\|</string>
<key>name</key>
<string>keyword.operator.logical.ts</string>
</dict>
<dict>
<key>match</key>
<string>\&amp;|~|\^|\|</string>
<key>name</key>
<string>keyword.operator.bitwise.ts</string>
</dict>
<dict>
<key>match</key>
<string>\=</string>
<key>name</key>
<string>keyword.operator.assignment.ts</string>
</dict>
<dict>
<key>match</key>
<string>--</string>
<key>name</key>
<string>keyword.operator.decrement.ts</string>
</dict>
<dict>
<key>match</key>
<string>\+\+</string>
<key>name</key>
<string>keyword.operator.increment.ts</string>
</dict>
<dict>
<key>match</key>
<string>%|\*|/|-|\+</string>
<key>name</key>
<string>keyword.operator.arithmetic.ts</string>
</dict>
</array>
</dict>
2016-08-19 21:29:26 +03:00
<key>parameter-array-binding-element</key>
<dict>
<key>patterns</key>
<array>
<dict>
<key>include</key>
<string>#comment</string>
</dict>
<dict>
<key>include</key>
<string>#parameter-object-binding-pattern</string>
</dict>
<dict>
<key>include</key>
<string>#parameter-array-binding-pattern</string>
</dict>
<dict>
<key>match</key>
<string>([_$[:alpha:]][_$[:alnum:]]*)</string>
2016-08-19 21:29:26 +03:00
<key>name</key>
<string>variable.parameter.ts</string>
</dict>
<dict>
<key>match</key>
<string>,</string>
<key>name</key>
<string>meta.delimiter.object.comma.ts</string>
</dict>
</array>
</dict>
<key>parameter-array-binding-pattern</key>
<dict>
<key>begin</key>
<string>\[</string>
<key>beginCaptures</key>
<dict>
<key>0</key>
<dict>
<key>name</key>
<string>punctuation.definition.binding-pattern.array.ts</string>
</dict>
</dict>
<key>end</key>
<string>\]</string>
<key>endCaptures</key>
<dict>
<key>0</key>
<dict>
<key>name</key>
<string>punctuation.definition.binding-pattern.array.ts</string>
</dict>
</dict>
<key>patterns</key>
<array>
<dict>
<key>include</key>
<string>#parameter-array-binding-element</string>
</dict>
</array>
</dict>
2015-11-06 00:14:57 +03:00
<key>parameter-name</key>
<dict>
<key>captures</key>
<dict>
<key>1</key>
<dict>
<key>name</key>
<string>storage.modifier.ts</string>
</dict>
<key>2</key>
<dict>
<key>name</key>
<string>keyword.operator.spread.ts</string>
2015-11-06 00:14:57 +03:00
</dict>
<key>3</key>
<dict>
<key>name</key>
<string>variable.parameter.ts</string>
</dict>
<key>4</key>
<dict>
<key>name</key>
<string>keyword.operator.optional.ts</string>
2015-11-06 00:14:57 +03:00
</dict>
</dict>
<key>match</key>
2016-08-27 01:38:13 +03:00
<string>(?:\s*\b(public|private|protected)\b\s+)?(\.\.\.)?\s*(?&lt;!=|:)([_$[:alpha:]][_$[:alnum:]]*)\s*(\??)</string>
2016-08-19 21:29:26 +03:00
</dict>
<key>parameter-object-binding-element</key>
<dict>
<key>patterns</key>
<array>
<dict>
<key>include</key>
<string>#comment</string>
</dict>
<dict>
<key>begin</key>
<string>([_$[:alpha:]][_$[:alnum:]]*)\s*(:)</string>
2016-08-19 21:29:26 +03:00
<key>beginCaptures</key>
<dict>
<key>1</key>
<dict>
<key>name</key>
<string>variable.object.property.ts</string>
</dict>
<key>2</key>
<dict>
<key>name</key>
<string>punctuation.destructuring.ts</string>
</dict>
</dict>
<key>end</key>
<string>(?=,|\})</string>
<key>patterns</key>
<array>
<dict>
<key>include</key>
<string>#parameter-object-binding-pattern</string>
</dict>
<dict>
<key>include</key>
<string>#parameter-array-binding-pattern</string>
</dict>
<dict>
<key>match</key>
<string>([_$[:alpha:]][_$[:alnum:]]*)</string>
2016-08-19 21:29:26 +03:00
<key>name</key>
<string>variable.parameter.ts</string>
</dict>
</array>
</dict>
<dict>
<key>match</key>
<string>([_$[:alpha:]][_$[:alnum:]]*)</string>
2016-08-19 21:29:26 +03:00
<key>name</key>
<string>variable.parameter.ts</string>
</dict>
<dict>
<key>match</key>
<string>,</string>
<key>name</key>
<string>meta.delimiter.object.comma.ts</string>
</dict>
</array>
</dict>
<key>parameter-object-binding-pattern</key>
<dict>
<key>begin</key>
<string>\{</string>
<key>beginCaptures</key>
<dict>
<key>0</key>
<dict>
<key>name</key>
<string>punctuation.definition.binding-pattern.object.ts</string>
</dict>
</dict>
<key>end</key>
<string>\}</string>
<key>endCaptures</key>
<dict>
<key>0</key>
<dict>
<key>name</key>
<string>punctuation.definition.binding-pattern.object.ts</string>
</dict>
</dict>
<key>patterns</key>
<array>
<dict>
<key>include</key>
<string>#parameter-object-binding-element</string>
</dict>
</array>
2015-11-06 00:14:57 +03:00
</dict>
<key>paren-expression</key>
<dict>
<key>begin</key>
<string>\(</string>
<key>beginCaptures</key>
<dict>
<key>0</key>
<dict>
<key>name</key>
<string>meta.brace.round.ts</string>
2015-11-06 00:14:57 +03:00
</dict>
</dict>
<key>end</key>
<string>\)</string>
<key>endCaptures</key>
<dict>
<key>0</key>
<dict>
<key>name</key>
<string>meta.brace.round.ts</string>
2015-11-06 00:14:57 +03:00
</dict>
</dict>
<key>patterns</key>
<array>
<dict>
<key>include</key>
<string>#expression</string>
</dict>
<dict>
<key>include</key>
<string>#punctuation-comma</string>
</dict>
2015-11-06 00:14:57 +03:00
</array>
</dict>
<key>property-accessor</key>
<dict>
<key>match</key>
<string>(?&lt;!\.|\$)\b(get|set)\b(?!\$)</string>
2015-11-06 00:14:57 +03:00
<key>name</key>
<string>storage.type.property.ts</string>
</dict>
2016-09-16 02:27:02 +03:00
<key>punctuation-accessor</key>
<dict>
<key>match</key>
<string>\.</string>
<key>name</key>
<string>punctuation.accessor.ts</string>
</dict>
<key>punctuation-comma</key>
<dict>
<key>match</key>
<string>,</string>
<key>name</key>
<string>punctuation.separator.comma.ts</string>
</dict>
2016-09-16 02:16:35 +03:00
<key>punctuation-semicolon</key>
<dict>
<key>match</key>
<string>;</string>
<key>name</key>
<string>punctuation.terminator.statement.ts</string>
</dict>
2015-11-06 00:14:57 +03:00
<key>qstring-double</key>
<dict>
<key>begin</key>
<string>"</string>
2016-08-12 01:38:31 +03:00
<key>beginCaptures</key>
<dict>
<key>0</key>
<dict>
<key>name</key>
<string>punctuation.definition.string.begin.ts</string>
</dict>
</dict>
2015-11-06 00:14:57 +03:00
<key>end</key>
2016-08-12 01:38:31 +03:00
<string>(")|((?:[^\\\n])$)</string>
<key>endCaptures</key>
<dict>
<key>1</key>
<dict>
<key>name</key>
<string>punctuation.definition.string.end.ts</string>
</dict>
<key>2</key>
<dict>
<key>name</key>
<string>invalid.illegal.newline.ts</string>
</dict>
</dict>
2015-11-06 00:14:57 +03:00
<key>name</key>
2016-08-12 01:38:31 +03:00
<string>string.quoted.double.ts</string>
2015-11-06 00:14:57 +03:00
<key>patterns</key>
<array>
<dict>
<key>include</key>
<string>#string-character-escape</string>
</dict>
</array>
</dict>
<key>qstring-single</key>
<dict>
<key>begin</key>
<string>'</string>
2016-08-12 01:38:31 +03:00
<key>beginCaptures</key>
<dict>
<key>0</key>
<dict>
<key>name</key>
<string>punctuation.definition.string.begin.ts</string>
</dict>
</dict>
2015-11-06 00:14:57 +03:00
<key>end</key>
2016-08-12 01:38:31 +03:00
<string>(\')|((?:[^\\\n])$)</string>
<key>endCaptures</key>
<dict>
<key>1</key>
<dict>
<key>name</key>
<string>punctuation.definition.string.end.ts</string>
</dict>
<key>2</key>
<dict>
<key>name</key>
<string>invalid.illegal.newline.ts</string>
</dict>
</dict>
2015-11-06 00:14:57 +03:00
<key>name</key>
2016-08-12 01:38:31 +03:00
<string>string.quoted.single.ts</string>
2015-11-06 00:14:57 +03:00
<key>patterns</key>
<array>
<dict>
<key>include</key>
<string>#string-character-escape</string>
</dict>
</array>
</dict>
<key>regex</key>
<dict>
<key>begin</key>
<string>(?&lt;=[=(:,\[?+!]|return|case|=&gt;|&amp;&amp;|\|\||\*\/)\s*(/)(?![/*+{}?])(?=.*/)</string>
2016-08-12 01:38:31 +03:00
<key>beginCaptures</key>
<dict>
<key>1</key>
<dict>
<key>name</key>
<string>punctuation.definition.string.begin.ts</string>
</dict>
</dict>
2015-11-06 00:14:57 +03:00
<key>end</key>
2016-08-12 01:38:31 +03:00
<string>(/)([gimuy]*)</string>
<key>endCaptures</key>
<dict>
<key>1</key>
<dict>
<key>name</key>
<string>punctuation.definition.string.end.ts</string>
</dict>
<key>2</key>
<dict>
<key>name</key>
<string>keyword.other.ts</string>
</dict>
</dict>
2015-11-06 00:14:57 +03:00
<key>name</key>
<string>string.regex.ts</string>
<key>patterns</key>
<array>
2016-08-12 01:38:31 +03:00
<dict>
<key>include</key>
<string>#regexp</string>
</dict>
</array>
</dict>
<key>regex-character-class</key>
<dict>
<key>patterns</key>
<array>
<dict>
<key>match</key>
<string>\\[wWsSdD]|\.</string>
<key>name</key>
<string>constant.other.character-class.regexp</string>
</dict>
<dict>
<key>match</key>
<string>\\([0-7]{3}|x\h\h|u\h\h\h\h)</string>
<key>name</key>
<string>constant.character.numeric.regexp</string>
</dict>
<dict>
<key>match</key>
<string>\\c[A-Z]</string>
<key>name</key>
<string>constant.character.control.regexp</string>
</dict>
2015-11-06 00:14:57 +03:00
<dict>
<key>match</key>
<string>\\.</string>
<key>name</key>
2016-08-12 01:38:31 +03:00
<string>constant.character.escape.backslash.regexp</string>
</dict>
</array>
</dict>
<key>regexp</key>
<dict>
<key>patterns</key>
<array>
<dict>
<key>match</key>
<string>\\[bB]|\^|\$</string>
<key>name</key>
<string>keyword.control.anchor.regexp</string>
</dict>
<dict>
<key>match</key>
<string>\\[1-9]\d*</string>
<key>name</key>
<string>keyword.other.back-reference.regexp</string>
</dict>
<dict>
<key>match</key>
<string>[?+*]|\{(\d+,\d+|\d+,|,\d+|\d+)\}\??</string>
<key>name</key>
<string>keyword.operator.quantifier.regexp</string>
2015-11-06 00:14:57 +03:00
</dict>
<dict>
<key>match</key>
2016-08-12 01:38:31 +03:00
<string>\|</string>
<key>name</key>
<string>keyword.operator.or.regexp</string>
</dict>
<dict>
<key>begin</key>
<string>(\()((\?=)|(\?!))</string>
<key>beginCaptures</key>
<dict>
<key>1</key>
<dict>
<key>name</key>
<string>punctuation.definition.group.regexp</string>
</dict>
<key>2</key>
<dict>
<key>name</key>
<string>punctuation.definition.group.assertion.regexp</string>
</dict>
<key>3</key>
<dict>
<key>name</key>
<string>meta.assertion.look-ahead.regexp</string>
</dict>
<key>4</key>
<dict>
<key>name</key>
<string>meta.assertion.negative-look-ahead.regexp</string>
</dict>
</dict>
<key>end</key>
<string>(\))</string>
<key>endCaptures</key>
<dict>
<key>1</key>
<dict>
<key>name</key>
<string>punctuation.definition.group.regexp</string>
</dict>
</dict>
2015-11-06 00:14:57 +03:00
<key>name</key>
2016-08-12 01:38:31 +03:00
<string>meta.group.assertion.regexp</string>
<key>patterns</key>
<array>
<dict>
<key>include</key>
<string>#regexp</string>
</dict>
</array>
</dict>
<dict>
<key>begin</key>
<string>\((\?:)?</string>
<key>beginCaptures</key>
<dict>
<key>0</key>
<dict>
<key>name</key>
<string>punctuation.definition.group.regexp</string>
</dict>
<key>1</key>
<dict>
<key>name</key>
<string>punctuation.definition.group.capture.regexp</string>
</dict>
</dict>
<key>end</key>
<string>\)</string>
<key>endCaptures</key>
<dict>
<key>0</key>
<dict>
<key>name</key>
<string>punctuation.definition.group.regexp</string>
</dict>
</dict>
<key>name</key>
<string>meta.group.regexp</string>
<key>patterns</key>
<array>
<dict>
<key>include</key>
<string>#regexp</string>
</dict>
</array>
</dict>
<dict>
<key>begin</key>
<string>(\[)(\^)?</string>
<key>beginCaptures</key>
<dict>
<key>1</key>
<dict>
<key>name</key>
<string>punctuation.definition.character-class.regexp</string>
</dict>
<key>2</key>
<dict>
<key>name</key>
<string>keyword.operator.negation.regexp</string>
</dict>
</dict>
<key>end</key>
<string>(\])</string>
<key>endCaptures</key>
<dict>
<key>1</key>
<dict>
<key>name</key>
<string>punctuation.definition.character-class.regexp</string>
</dict>
</dict>
<key>name</key>
<string>constant.other.character-class.set.regexp</string>
<key>patterns</key>
<array>
<dict>
<key>captures</key>
<dict>
<key>1</key>
<dict>
<key>name</key>
<string>constant.character.numeric.regexp</string>
</dict>
<key>2</key>
<dict>
<key>name</key>
<string>constant.character.control.regexp</string>
</dict>
<key>3</key>
<dict>
<key>name</key>
<string>constant.character.escape.backslash.regexp</string>
</dict>
<key>4</key>
<dict>
<key>name</key>
<string>constant.character.numeric.regexp</string>
</dict>
<key>5</key>
<dict>
<key>name</key>
<string>constant.character.control.regexp</string>
</dict>
<key>6</key>
<dict>
<key>name</key>
<string>constant.character.escape.backslash.regexp</string>
</dict>
</dict>
<key>match</key>
<string>(?:.|(\\(?:[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])|(\\.))</string>
<key>name</key>
<string>constant.other.character-class.range.regexp</string>
</dict>
<dict>
<key>include</key>
<string>#regex-character-class</string>
</dict>
</array>
</dict>
<dict>
<key>include</key>
<string>#regex-character-class</string>
2015-11-06 00:14:57 +03:00
</dict>
</array>
</dict>
<key>return-type</key>
<dict>
<key>begin</key>
<string>(?&lt;=\))\s*:</string>
<key>end</key>
<string>(?&lt;!:)((?=$)|(?=\{|;|//))</string>
2015-11-06 00:14:57 +03:00
<key>name</key>
<string>meta.return.type.ts</string>
<key>patterns</key>
<array>
2016-09-08 20:56:06 +03:00
<dict>
<key>include</key>
<string>#comment</string>
</dict>
<dict>
<key>begin</key>
<string>(?&lt;=:)\s*(\{)</string>
<key>beginCaptures</key>
<dict>
<key>1</key>
<dict>
<key>name</key>
<string>punctuation.definition.block.ts</string>
</dict>
</dict>
<key>end</key>
<string>\}</string>
<key>endCaptures</key>
<dict>
<key>0</key>
<dict>
<key>name</key>
<string>punctuation.definition.block.ts</string>
</dict>
</dict>
<key>name</key>
<string>meta.object.type.ts</string>
<key>patterns</key>
<array>
<dict>
<key>include</key>
<string>#type-object-members</string>
</dict>
</array>
</dict>
<dict>
<key>include</key>
<string>#type-predicate-operator</string>
</dict>
2015-11-06 00:14:57 +03:00
<dict>
<key>include</key>
<string>#type</string>
</dict>
</array>
</dict>
<key>statements</key>
<dict>
<key>patterns</key>
<array>
<dict>
<key>include</key>
<string>#string</string>
</dict>
<dict>
<key>include</key>
<string>#regex</string>
</dict>
<dict>
<key>include</key>
<string>#template</string>
</dict>
<dict>
<key>include</key>
<string>#comment</string>
</dict>
<dict>
<key>include</key>
<string>#literal</string>
</dict>
<dict>
<key>include</key>
<string>#declaration</string>
</dict>
<dict>
<key>include</key>
<string>#switch-statement</string>
</dict>
2016-08-19 21:29:26 +03:00
<dict>
<key>include</key>
<string>#for-loop</string>
</dict>
<dict>
<key>include</key>
<string>#after-operator-block</string>
</dict>
<dict>
<key>include</key>
<string>#decl-block</string>
</dict>
<dict>
<key>include</key>
<string>#control-statement</string>
</dict>
<dict>
<key>include</key>
<string>#expression</string>
</dict>
2016-09-16 02:16:35 +03:00
<dict>
<key>include</key>
<string>#punctuation-semicolon</string>
</dict>
</array>
</dict>
2015-11-06 00:14:57 +03:00
<key>static-modifier</key>
<dict>
<key>match</key>
<string>(?&lt;!\.|\$)\b(static)\b(?!\$)</string>
2015-11-06 00:14:57 +03:00
<key>name</key>
<string>storage.modifier.ts</string>
2015-11-06 00:14:57 +03:00
</dict>
<key>string</key>
<dict>
<key>name</key>
<string>string.ts</string>
<key>patterns</key>
<array>
<dict>
<key>include</key>
<string>#qstring-single</string>
</dict>
<dict>
<key>include</key>
<string>#qstring-double</string>
</dict>
</array>
</dict>
<key>string-character-escape</key>
<dict>
<key>match</key>
2016-08-12 01:38:31 +03:00
<string>\\(x\h{2}|[0-2][0-7]{0,2}|3[0-6][0-7]?|37[0-7]?|[4-7][0-7]?|.|$)</string>
2015-11-06 00:14:57 +03:00
<key>name</key>
2016-08-12 01:38:31 +03:00
<string>constant.character.escape.ts</string>
2015-11-06 00:14:57 +03:00
</dict>
<key>super-literal</key>
<dict>
<key>match</key>
<string>(?&lt;!\.|\$)\bsuper\b(?!\$)</string>
<key>name</key>
<string>variable.language.super.ts</string>
</dict>
2016-01-27 12:49:11 +03:00
<key>switch-block</key>
<dict>
<key>begin</key>
<string>{</string>
<key>beginCaptures</key>
<dict>
<key>0</key>
<dict>
<key>name</key>
<string>punctuation.definition.block.ts</string>
</dict>
</dict>
2016-01-27 12:49:11 +03:00
<key>end</key>
<string>(?=\})</string>
<key>name</key>
<string>switch-block.expr.ts</string>
<key>patterns</key>
<array>
<dict>
<key>include</key>
<string>#case-clause</string>
</dict>
<dict>
<key>include</key>
<string>#statements</string>
2016-01-27 12:49:11 +03:00
</dict>
</array>
</dict>
2016-01-30 01:05:08 +03:00
<key>switch-expression</key>
2015-11-06 00:14:57 +03:00
<dict>
<key>begin</key>
<string>(?&lt;!\.|\$)\b(switch)\s*(\()</string>
2015-11-06 00:14:57 +03:00
<key>beginCaptures</key>
<dict>
<key>1</key>
<dict>
<key>name</key>
<string>keyword.control.switch.ts</string>
2015-11-06 00:14:57 +03:00
</dict>
2016-08-19 21:29:26 +03:00
<key>2</key>
<dict>
<key>name</key>
<string>meta.brace.round.ts</string>
</dict>
2015-11-06 00:14:57 +03:00
</dict>
<key>end</key>
2016-01-30 01:05:08 +03:00
<string>\)</string>
2016-08-19 21:29:26 +03:00
<key>endCaptures</key>
<dict>
<key>0</key>
<dict>
<key>name</key>
<string>meta.brace.round.ts</string>
</dict>
</dict>
2015-11-06 00:14:57 +03:00
<key>name</key>
2016-01-30 01:05:08 +03:00
<string>switch-expression.expr.ts</string>
2015-11-06 00:14:57 +03:00
<key>patterns</key>
<array>
<dict>
<key>include</key>
<string>#expression</string>
</dict>
</array>
</dict>
2016-01-30 01:05:08 +03:00
<key>switch-statement</key>
2016-01-27 12:49:11 +03:00
<dict>
<key>begin</key>
<string>(?&lt;!\.|\$)(?=\bswitch\s*\()</string>
2016-01-27 12:49:11 +03:00
<key>end</key>
<string>}</string>
<key>endCaptures</key>
<dict>
<key>0</key>
<dict>
<key>name</key>
<string>punctuation.definition.block.ts</string>
</dict>
</dict>
2016-01-27 12:49:11 +03:00
<key>name</key>
2016-01-30 01:05:08 +03:00
<string>switch-statement.expr.ts</string>
2016-01-27 12:49:11 +03:00
<key>patterns</key>
<array>
<dict>
<key>include</key>
2016-01-30 01:05:08 +03:00
<string>#switch-expression</string>
2016-01-27 12:49:11 +03:00
</dict>
<dict>
<key>include</key>
<string>#switch-block</string>
</dict>
</array>
</dict>
2015-11-06 00:14:57 +03:00
<key>template</key>
<dict>
<key>begin</key>
<string>([_$[:alpha:]][_$[:alnum:]]*)?(`)</string>
2015-11-06 00:14:57 +03:00
<key>beginCaptures</key>
<dict>
2016-08-12 01:38:31 +03:00
<key>1</key>
2015-11-06 00:14:57 +03:00
<dict>
<key>name</key>
<string>variable.function.tagged-template.ts</string>
2016-08-12 01:38:31 +03:00
</dict>
<key>2</key>
<dict>
<key>name</key>
<string>punctuation.definition.string.template.begin.ts</string>
2015-11-06 00:14:57 +03:00
</dict>
</dict>
<key>end</key>
<string>`</string>
<key>endCaptures</key>
<dict>
<key>0</key>
<dict>
<key>name</key>
2016-08-12 01:38:31 +03:00
<string>punctuation.definition.string.template.end.ts</string>
2015-11-06 00:14:57 +03:00
</dict>
</dict>
<key>name</key>
2016-08-12 01:38:31 +03:00
<string>string.template.ts</string>
2015-11-06 00:14:57 +03:00
<key>patterns</key>
<array>
<dict>
<key>include</key>
<string>#template-substitution-element</string>
</dict>
<dict>
<key>include</key>
<string>#string-character-escape</string>
</dict>
</array>
</dict>
<key>template-substitution-element</key>
<dict>
<key>begin</key>
<string>\$\{</string>
<key>beginCaptures</key>
<dict>
<key>0</key>
<dict>
<key>name</key>
2016-08-12 01:38:31 +03:00
<string>punctuation.definition.template-expression.begin.ts</string>
2015-11-06 00:14:57 +03:00
</dict>
</dict>
<key>end</key>
<string>\}</string>
<key>endCaptures</key>
<dict>
<key>0</key>
<dict>
<key>name</key>
2016-08-12 01:38:31 +03:00
<string>punctuation.definition.template-expression.end.ts</string>
2015-11-06 00:14:57 +03:00
</dict>
</dict>
<key>name</key>
2016-08-12 01:38:31 +03:00
<string>meta.template.expression.ts</string>
2015-11-06 00:14:57 +03:00
<key>patterns</key>
<array>
<dict>
<key>include</key>
<string>#expression</string>
</dict>
</array>
</dict>
<key>ternary-expression</key>
<dict>
<key>begin</key>
<string>(?=\?)</string>
<key>end</key>
<string>(?=$|[;,})\]])</string>
<key>patterns</key>
<array>
<dict>
<key>include</key>
<string>#ternary-operator</string>
</dict>
<dict>
<key>include</key>
<string>#expression</string>
</dict>
</array>
</dict>
2016-03-17 20:49:23 +03:00
<key>ternary-operator</key>
<dict>
<key>begin</key>
<string>(\?)</string>
<key>beginCaptures</key>
<dict>
<key>0</key>
<dict>
<key>name</key>
<string>keyword.operator.ternary.ts</string>
</dict>
</dict>
2016-03-17 20:49:23 +03:00
<key>end</key>
<string>(:)</string>
<key>endCaptures</key>
<dict>
<key>0</key>
<dict>
<key>name</key>
<string>keyword.operator.ternary.ts</string>
</dict>
</dict>
2016-03-17 20:49:23 +03:00
<key>patterns</key>
<array>
<dict>
<key>include</key>
<string>#expression</string>
2016-03-17 20:49:23 +03:00
</dict>
</array>
</dict>
2015-11-06 00:14:57 +03:00
<key>this-literal</key>
<dict>
<key>match</key>
<string>(?&lt;!\.|\$)\bthis\b(?!\$)</string>
2015-11-06 00:14:57 +03:00
<key>name</key>
<string>variable.language.this.ts</string>
2015-11-06 00:14:57 +03:00
</dict>
<key>type</key>
<dict>
<key>name</key>
<string>meta.type.ts</string>
<key>patterns</key>
<array>
2016-09-08 20:56:06 +03:00
<dict>
<key>include</key>
<string>#comment</string>
</dict>
2016-09-01 03:09:03 +03:00
<dict>
<key>include</key>
<string>#string</string>
</dict>
2015-11-06 00:14:57 +03:00
<dict>
<key>include</key>
<string>#type-primitive</string>
</dict>
<dict>
<key>include</key>
<string>#type-builtin-literals</string>
</dict>
<dict>
<key>include</key>
<string>#typeof-operator</string>
</dict>
2015-11-06 00:14:57 +03:00
<dict>
<key>include</key>
<string>#type-parameters</string>
</dict>
<dict>
<key>include</key>
<string>#type-tuple</string>
</dict>
<dict>
<key>include</key>
<string>#type-object</string>
</dict>
<dict>
<key>include</key>
<string>#type-operator</string>
</dict>
<dict>
<key>include</key>
<string>#type-paren-or-function-parameters</string>
2015-11-06 00:14:57 +03:00
</dict>
<dict>
<key>include</key>
<string>#type-function-return-type</string>
</dict>
<dict>
<key>include</key>
<string>#type-name</string>
</dict>
</array>
</dict>
<key>type-annotation</key>
<dict>
<key>begin</key>
<string>:</string>
<key>end</key>
2016-08-27 01:38:13 +03:00
<string>(?=$|[,);\}\]]|//)|(?==[^&gt;])|(?&lt;=[\}&gt;\]\)]|[_$[:alpha:]])\s*(?=\{)</string>
2015-11-06 00:14:57 +03:00
<key>name</key>
<string>meta.type.annotation.ts</string>
<key>patterns</key>
<array>
<dict>
<key>include</key>
2016-09-08 20:56:06 +03:00
<string>#comment</string>
</dict>
2015-11-06 00:14:57 +03:00
<dict>
<key>include</key>
2016-09-08 20:56:06 +03:00
<string>#type</string>
2015-11-06 00:14:57 +03:00
</dict>
</array>
</dict>
<key>type-builtin-literals</key>
<dict>
<key>match</key>
<string>(?&lt;!\.|\$)\b(this|true|false|undefined|null)\b(?!\$)</string>
<key>name</key>
<string>support.type.builtin.ts</string>
</dict>
2015-11-06 00:14:57 +03:00
<key>type-declaration</key>
<dict>
<key>begin</key>
<string>(?&lt;!\.|\$)(?:(\bexport)\s+)?\b(type)\b\s+([_$[:alpha:]][_$[:alnum:]]*)\s*</string>
2015-11-06 00:14:57 +03:00
<key>beginCaptures</key>
<dict>
<key>1</key>
<dict>
<key>name</key>
<string>keyword.control.export.ts</string>
2015-11-06 00:14:57 +03:00
</dict>
<key>2</key>
<dict>
<key>name</key>
<string>storage.type.type.ts</string>
</dict>
<key>3</key>
2015-11-06 00:14:57 +03:00
<dict>
<key>name</key>
<string>entity.name.type.ts</string>
2015-11-06 00:14:57 +03:00
</dict>
</dict>
<key>end</key>
2016-08-19 21:29:26 +03:00
<string>(?=$|[,);&gt;]|\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)</string>
2015-11-06 00:14:57 +03:00
<key>name</key>
<string>meta.type.declaration.ts</string>
<key>patterns</key>
<array>
2016-08-18 02:17:57 +03:00
<dict>
<key>include</key>
<string>#comment</string>
</dict>
2016-02-23 04:23:08 +03:00
<dict>
<key>include</key>
<string>#type-parameters</string>
</dict>
2015-11-06 00:14:57 +03:00
<dict>
<key>include</key>
<string>#type</string>
</dict>
2016-02-23 04:23:08 +03:00
<dict>
<key>match</key>
<string>=\s*</string>
<key>name</key>
<string>keyword.operator.assignment.ts</string>
2016-02-23 04:23:08 +03:00
</dict>
2015-11-06 00:14:57 +03:00
</array>
</dict>
<key>type-function-return-type</key>
<dict>
<key>begin</key>
<string>=&gt;</string>
<key>beginCaptures</key>
<dict>
<key>0</key>
<dict>
<key>name</key>
<string>storage.type.function.arrow.ts</string>
2015-11-06 00:14:57 +03:00
</dict>
</dict>
<key>end</key>
<string>(?&lt;!=&gt;)(?=[,\]\)\{\}=;&gt;]|//|$)</string>
2015-11-06 00:14:57 +03:00
<key>name</key>
<string>meta.type.function.return.ts</string>
<key>patterns</key>
<array>
2016-09-08 20:56:06 +03:00
<dict>
<key>include</key>
<string>#comment</string>
</dict>
<dict>
<key>begin</key>
<string>(?&lt;==&gt;)\s*(\{)</string>
<key>beginCaptures</key>
<dict>
<key>1</key>
<dict>
<key>name</key>
<string>punctuation.definition.block.ts</string>
</dict>
</dict>
<key>end</key>
<string>\}</string>
<key>endCaptures</key>
<dict>
<key>0</key>
<dict>
<key>name</key>
<string>punctuation.definition.block.ts</string>
</dict>
</dict>
<key>name</key>
<string>meta.object.type.ts</string>
<key>patterns</key>
<array>
<dict>
<key>include</key>
<string>#type-object-members</string>
</dict>
</array>
</dict>
<dict>
<key>include</key>
<string>#type-predicate-operator</string>
</dict>
2015-11-06 00:14:57 +03:00
<dict>
<key>include</key>
<string>#type</string>
</dict>
</array>
</dict>
<key>type-name</key>
<dict>
2016-08-27 01:38:13 +03:00
<key>patterns</key>
<array>
<dict>
<key>captures</key>
<dict>
<key>1</key>
<dict>
<key>name</key>
<string>entity.name.type.module.ts</string>
</dict>
<key>2</key>
<dict>
<key>name</key>
<string>punctuation.accessor.ts</string>
</dict>
</dict>
<key>match</key>
<string>([_$[:alpha:]][_$[:alnum:]]*)\s*(\.)</string>
2016-08-27 01:38:13 +03:00
</dict>
<dict>
<key>match</key>
<string>[_$[:alpha:]][_$[:alnum:]]*</string>
<key>name</key>
<string>entity.name.type.ts</string>
</dict>
</array>
2015-11-06 00:14:57 +03:00
</dict>
<key>type-object</key>
<dict>
<key>begin</key>
<string>\{</string>
<key>beginCaptures</key>
<dict>
<key>0</key>
<dict>
<key>name</key>
<string>punctuation.definition.block.ts</string>
2015-11-06 00:14:57 +03:00
</dict>
</dict>
<key>end</key>
<string>\}</string>
<key>endCaptures</key>
<dict>
<key>0</key>
<dict>
<key>name</key>
<string>punctuation.definition.block.ts</string>
2015-11-06 00:14:57 +03:00
</dict>
</dict>
<key>name</key>
<string>meta.object.type.ts</string>
<key>patterns</key>
<array>
<dict>
<key>include</key>
<string>#type-object-members</string>
</dict>
</array>
</dict>
<key>type-object-members</key>
<dict>
2015-11-06 00:14:57 +03:00
<key>patterns</key>
<array>
<dict>
<key>include</key>
<string>#comment</string>
</dict>
<dict>
<key>include</key>
<string>#field-declaration</string>
</dict>
<dict>
<key>include</key>
<string>#method-declaration</string>
</dict>
<dict>
<key>include</key>
<string>#indexer-declaration</string>
</dict>
<dict>
<key>include</key>
<string>#type-annotation</string>
</dict>
<dict>
<key>include</key>
<string>#punctuation-comma</string>
</dict>
2016-09-16 02:16:35 +03:00
<dict>
<key>include</key>
<string>#punctuation-semicolon</string>
</dict>
2015-11-06 00:14:57 +03:00
</array>
</dict>
<key>type-operator</key>
<dict>
<key>match</key>
2016-08-19 21:29:26 +03:00
<string>[&amp;|]</string>
2015-11-06 00:14:57 +03:00
<key>name</key>
<string>keyword.operator.type.ts</string>
</dict>
<key>type-parameters</key>
<dict>
<key>begin</key>
2016-09-01 03:09:03 +03:00
<string>(&lt;)</string>
2015-11-06 00:14:57 +03:00
<key>beginCaptures</key>
<dict>
<key>1</key>
<dict>
<key>name</key>
<string>punctuation.definition.typeparameters.begin.ts</string>
2015-11-06 00:14:57 +03:00
</dict>
</dict>
<key>end</key>
<string>(?=$)|(&gt;)</string>
<key>endCaptures</key>
<dict>
<key>1</key>
2015-11-06 00:14:57 +03:00
<dict>
<key>name</key>
<string>punctuation.definition.typeparameters.end.ts</string>
2015-11-06 00:14:57 +03:00
</dict>
</dict>
<key>name</key>
<string>meta.type.parameters.ts</string>
<key>patterns</key>
<array>
2016-09-08 20:56:06 +03:00
<dict>
<key>include</key>
<string>#comment</string>
</dict>
2015-11-06 00:14:57 +03:00
<dict>
<key>match</key>
<string>(?&lt;!\.|\$)\b(extends)\b(?!\$)</string>
2015-11-06 00:14:57 +03:00
<key>name</key>
<string>storage.modifier.ts</string>
2015-11-06 00:14:57 +03:00
</dict>
<dict>
<key>include</key>
<string>#type</string>
</dict>
<dict>
<key>include</key>
<string>#punctuation-comma</string>
</dict>
2015-11-06 00:14:57 +03:00
</array>
</dict>
<key>type-paren-or-function-parameters</key>
2015-11-06 00:14:57 +03:00
<dict>
<key>begin</key>
<string>(?:(?&lt;!\.|\$)\b(new)\b)?\s*(\()</string>
2015-11-06 00:14:57 +03:00
<key>beginCaptures</key>
<dict>
<key>1</key>
<dict>
<key>name</key>
<string>keyword.control.new.ts</string>
</dict>
<key>2</key>
<dict>
<key>name</key>
<string>meta.brace.round.ts</string>
2015-11-06 00:14:57 +03:00
</dict>
</dict>
<key>end</key>
<string>\)</string>
<key>endCaptures</key>
<dict>
<key>0</key>
<dict>
<key>name</key>
<string>meta.brace.round.ts</string>
</dict>
</dict>
2015-11-06 00:14:57 +03:00
<key>name</key>
<string>meta.type.paren.cover.ts</string>
<key>patterns</key>
<array>
<dict>
<key>include</key>
<string>#type</string>
</dict>
<dict>
<key>include</key>
<string>#function-parameters</string>
2015-11-06 00:14:57 +03:00
</dict>
</array>
</dict>
<key>type-predicate-operator</key>
<dict>
<key>match</key>
<string>(?&lt;!\.|\$)\bis\b(?!\$)</string>
<key>name</key>
<string>keyword.operator.is.ts</string>
</dict>
2015-11-06 00:14:57 +03:00
<key>type-primitive</key>
<dict>
<key>match</key>
<string>(?&lt;!\.|\$)\b(string|number|boolean|symbol|any|void|never)\b(?!\$)</string>
2015-11-06 00:14:57 +03:00
<key>name</key>
<string>support.type.primitive.ts</string>
2015-11-06 00:14:57 +03:00
</dict>
<key>type-tuple</key>
<dict>
<key>begin</key>
<string>\[</string>
<key>beginCaptures</key>
<dict>
<key>0</key>
<dict>
<key>name</key>
<string>meta.brace.square.ts</string>
</dict>
</dict>
<key>end</key>
<string>\]</string>
<key>endCaptures</key>
<dict>
<key>0</key>
<dict>
<key>name</key>
<string>meta.brace.square.ts</string>
</dict>
</dict>
<key>name</key>
<string>meta.type.tuple.ts</string>
<key>patterns</key>
<array>
<dict>
<key>include</key>
<string>#type</string>
</dict>
<dict>
<key>include</key>
<string>#punctuation-comma</string>
</dict>
2015-11-06 00:14:57 +03:00
</array>
</dict>
<key>typeof-operator</key>
<dict>
<key>match</key>
<string>(?&lt;!\.|\$)\btypeof\b(?!\$)</string>
<key>name</key>
<string>keyword.operator.typeof.ts</string>
</dict>
2015-11-06 00:14:57 +03:00
<key>undefined-literal</key>
<dict>
<key>match</key>
<string>(?&lt;!\.|\$)\bundefined\b(?!\$)</string>
2015-11-06 00:14:57 +03:00
<key>name</key>
<string>constant.language.undefined.ts</string>
2015-11-06 00:14:57 +03:00
</dict>
<key>var-expr</key>
<dict>
<key>begin</key>
<string>(?&lt;!\.|\$)(?:(\bexport)\s+)?\b(var|let|const(?!\s+enum\b))\b(?!\$)</string>
2015-11-06 00:14:57 +03:00
<key>beginCaptures</key>
<dict>
<key>1</key>
<dict>
<key>name</key>
<string>keyword.control.export.ts</string>
</dict>
<key>2</key>
2015-11-06 00:14:57 +03:00
<dict>
<key>name</key>
<string>storage.type.ts</string>
</dict>
2016-01-27 13:36:55 +03:00
</dict>
<key>end</key>
2016-09-08 01:36:30 +03:00
<string>(?=$|;|}|(\s+(of|in)\s+))</string>
2016-01-27 13:36:55 +03:00
<key>name</key>
<string>meta.var.expr.ts</string>
<key>patterns</key>
<array>
2016-08-19 21:29:26 +03:00
<dict>
<key>include</key>
<string>#destructuring-variable</string>
</dict>
2016-01-27 13:36:55 +03:00
<dict>
<key>include</key>
2016-01-28 01:54:53 +03:00
<string>#var-single-variable</string>
2016-01-27 13:36:55 +03:00
</dict>
<dict>
<key>include</key>
<string>#comment</string>
</dict>
<dict>
<key>include</key>
<string>#punctuation-comma</string>
</dict>
2016-01-27 13:36:55 +03:00
</array>
</dict>
2016-01-28 01:54:53 +03:00
<key>var-single-variable</key>
2016-01-27 13:36:55 +03:00
<dict>
<key>begin</key>
<string>([_$[:alpha:]][_$[:alnum:]]*)</string>
2016-01-27 13:36:55 +03:00
<key>beginCaptures</key>
<dict>
<key>1</key>
2015-11-06 00:14:57 +03:00
<dict>
<key>name</key>
<string>variable.other.readwrite.ts</string>
2015-11-06 00:14:57 +03:00
</dict>
</dict>
<key>end</key>
2016-09-08 01:36:30 +03:00
<string>(?=$|[;,}]|(\s+(of|in)\s+))</string>
2015-11-06 00:14:57 +03:00
<key>name</key>
2016-01-28 01:54:53 +03:00
<string>meta.var-single-variable.expr.ts</string>
2015-11-06 00:14:57 +03:00
<key>patterns</key>
<array>
2016-03-17 20:49:23 +03:00
<dict>
<key>include</key>
<string>#variable-initializer</string>
2015-11-06 00:14:57 +03:00
</dict>
2016-01-28 01:54:53 +03:00
<dict>
<key>begin</key>
<string>\G</string>
<key>end</key>
2016-09-08 01:36:30 +03:00
<string>(?!\G)(?=$|[;,=}]|(\s+(of|in)\s+))</string>
<key>patterns</key>
<array>
<dict>
<key>include</key>
<string>#type-annotation</string>
</dict>
<dict>
<key>include</key>
<string>#string</string>
</dict>
<dict>
<key>include</key>
<string>#comment</string>
</dict>
</array>
2016-01-28 01:54:53 +03:00
</dict>
2015-11-06 00:14:57 +03:00
</array>
</dict>
<key>variable-initializer</key>
<dict>
<key>begin</key>
<string>(?&lt;!=|!)(=)(?!=)</string>
2015-11-06 00:14:57 +03:00
<key>beginCaptures</key>
<dict>
<key>1</key>
<dict>
<key>name</key>
<string>keyword.operator.assignment.ts</string>
2015-11-06 00:14:57 +03:00
</dict>
</dict>
<key>end</key>
<string>(?=$|[,);}])</string>
2015-11-06 00:14:57 +03:00
<key>patterns</key>
<array>
<dict>
<key>include</key>
<string>#expression</string>
</dict>
</array>
</dict>
</dict>
<key>scopeName</key>
<string>source.ts</string>
<key>uuid</key>
<string>ef98eb90-bf9b-11e4-bb52-0800200c9a66</string>
</dict>
</plist>