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>
|
2016-08-19 21:29:26 +03:00
|
|
|
<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>
|
Make sure the identifiers are handled with . and $
Fixes #43, #64, #87, #112, #131, #133, #157, #175, #212, #214, #229
2016-09-01 03:09:03 +03:00
|
|
|
<string>(?<!\.|\$)\b(public|protected|private)\b(?!\$)</string>
|
2015-11-06 00:14:57 +03:00
|
|
|
<key>name</key>
|
|
|
|
<string>storage.modifier.ts</string>
|
|
|
|
</dict>
|
2016-08-19 21:29:26 +03:00
|
|
|
<key>after-operator-block</key>
|
|
|
|
<dict>
|
|
|
|
<key>begin</key>
|
2016-09-01 03:09:03 +03:00
|
|
|
<string>(?<=[=(:,\[?+!]|await|return|yield|throw|in|of|typeof|&&|\|\||\*)\s*(\{)</string>
|
2016-08-19 21:29:26 +03:00
|
|
|
<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>
|
2016-08-19 21:29:26 +03:00
|
|
|
<string>meta.object-literal.ts</string>
|
2016-08-19 21:29:26 +03:00
|
|
|
<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>
|
Make sure the identifiers are handled with . and $
Fixes #43, #64, #87, #112, #131, #133, #157, #175, #212, #214, #229
2016-09-01 03:09:03 +03:00
|
|
|
<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>
|
|
|
|
</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>
|
Make sure the identifiers are handled with . and $
Fixes #43, #64, #87, #112, #131, #133, #157, #175, #212, #214, #229
2016-09-01 03:09:03 +03:00
|
|
|
<string>(?<!\.|\$)(\basync)(?=\s*[<(])</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>
|
|
|
|
<dict>
|
|
|
|
<key>name</key>
|
|
|
|
<string>variable.parameter.ts</string>
|
|
|
|
</dict>
|
|
|
|
</dict>
|
|
|
|
<key>match</key>
|
2016-08-31 02:13:37 +03:00
|
|
|
<string>([_$[:alpha:]][_$[:alnum:]]*)\s*(?==>)</string>
|
2016-08-30 22:27:34 +03:00
|
|
|
<key>name</key>
|
|
|
|
<string>meta.arrow.ts</string>
|
|
|
|
</dict>
|
|
|
|
<dict>
|
|
|
|
<key>begin</key>
|
2016-09-01 02:48:13 +03:00
|
|
|
<string>(?x)(?<=return|throw|yield|await|async|[=(\[,:>*])\s*(?=\(([^()]+|\([^()]*\))*\)(\s*:\s*(.)*)?\s*=>)</string>
|
2016-08-30 22:27:34 +03:00
|
|
|
<key>end</key>
|
2016-08-31 02:13:37 +03:00
|
|
|
<string>(?==>)</string>
|
|
|
|
<key>name</key>
|
|
|
|
<string>meta.arrow.ts</string>
|
|
|
|
<key>patterns</key>
|
|
|
|
<array>
|
|
|
|
<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>=></string>
|
2016-08-31 02:13:37 +03:00
|
|
|
<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>
|
2016-08-31 02:13:37 +03:00
|
|
|
<key>end</key>
|
|
|
|
<string>(?<=\})|((?!\{)(?=\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>
|
2016-08-31 02:13:37 +03:00
|
|
|
<string>#decl-block</string>
|
|
|
|
</dict>
|
|
|
|
<dict>
|
|
|
|
<key>include</key>
|
|
|
|
<string>#expression</string>
|
2016-08-30 22:27:34 +03:00
|
|
|
</dict>
|
|
|
|
</array>
|
|
|
|
</dict>
|
2016-08-31 02:13:37 +03:00
|
|
|
</array>
|
|
|
|
</dict>
|
|
|
|
<key>arrow-return-type</key>
|
|
|
|
<dict>
|
|
|
|
<key>begin</key>
|
|
|
|
<string>(?<=\))\s*:</string>
|
|
|
|
<key>end</key>
|
|
|
|
<string>(?<!:)((?=$)|(?==>|;|//))</string>
|
|
|
|
<key>name</key>
|
|
|
|
<string>meta.return.type.arrow.ts</string>
|
|
|
|
<key>patterns</key>
|
|
|
|
<array>
|
2016-08-30 22:27:34 +03:00
|
|
|
<dict>
|
|
|
|
<key>include</key>
|
2016-08-31 02:13:37 +03:00
|
|
|
<string>#type</string>
|
2016-08-30 22:27:34 +03:00
|
|
|
</dict>
|
|
|
|
</array>
|
|
|
|
</dict>
|
2016-08-19 21:29:26 +03:00
|
|
|
<key>boolean-literal</key>
|
|
|
|
<dict>
|
|
|
|
<key>patterns</key>
|
|
|
|
<array>
|
|
|
|
<dict>
|
|
|
|
<key>match</key>
|
Make sure the identifiers are handled with . and $
Fixes #43, #64, #87, #112, #131, #133, #157, #175, #212, #214, #229
2016-09-01 03:09:03 +03:00
|
|
|
<string>(?<!\.|\$)\btrue\b(?!\$)</string>
|
2016-08-19 21:29:26 +03:00
|
|
|
<key>name</key>
|
|
|
|
<string>constant.language.boolean.true.ts</string>
|
|
|
|
</dict>
|
|
|
|
<dict>
|
|
|
|
<key>match</key>
|
Make sure the identifiers are handled with . and $
Fixes #43, #64, #87, #112, #131, #133, #157, #175, #212, #214, #229
2016-09-01 03:09:03 +03:00
|
|
|
<string>(?<!\.|\$)\bfalse\b(?!\$)</string>
|
2016-08-19 21:29:26 +03:00
|
|
|
<key>name</key>
|
|
|
|
<string>constant.language.boolean.false.ts</string>
|
|
|
|
</dict>
|
|
|
|
</array>
|
|
|
|
</dict>
|
|
|
|
<key>case-clause</key>
|
|
|
|
<dict>
|
|
|
|
<key>begin</key>
|
Make sure the identifiers are handled with . and $
Fixes #43, #64, #87, #112, #131, #133, #157, #175, #212, #214, #229
2016-09-01 03:09:03 +03:00
|
|
|
<string>(?<!\.|\$)\b(case|default(?=:))\b(?!\$)</string>
|
2016-08-19 21:29:26 +03:00
|
|
|
<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>
|
2016-08-31 21:21:34 +03:00
|
|
|
<string>(?:(?<=return|throw|yield|await|[=(,:>*]))\s*(<)(?!<?\=)</string>
|
2016-08-19 21:29:26 +03:00
|
|
|
<key>beginCaptures</key>
|
|
|
|
<dict>
|
|
|
|
<key>1</key>
|
|
|
|
<dict>
|
|
|
|
<key>name</key>
|
|
|
|
<string>meta.brace.angle.ts</string>
|
|
|
|
</dict>
|
|
|
|
</dict>
|
|
|
|
<key>end</key>
|
|
|
|
<string>></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>
|
2016-08-16 23:07:17 +03:00
|
|
|
<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>
|
2016-08-16 23:07:17 +03:00
|
|
|
<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.object.body.ts</string>
|
2015-11-06 00:14:57 +03:00
|
|
|
<key>patterns</key>
|
|
|
|
<array>
|
|
|
|
<dict>
|
|
|
|
<key>include</key>
|
2016-08-19 21:29:26 +03:00
|
|
|
<string>#string</string>
|
2015-11-06 00:14:57 +03:00
|
|
|
</dict>
|
|
|
|
<dict>
|
|
|
|
<key>include</key>
|
2016-08-19 21:29:26 +03:00
|
|
|
<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>
|
2016-08-12 01:38:31 +03:00
|
|
|
<dict>
|
2016-08-19 21:29:26 +03:00
|
|
|
<key>include</key>
|
|
|
|
<string>#field-declaration</string>
|
2016-08-12 01:38:31 +03:00
|
|
|
</dict>
|
|
|
|
<dict>
|
2016-08-19 21:29:26 +03:00
|
|
|
<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>
|
2016-08-12 01:38:31 +03:00
|
|
|
</dict>
|
|
|
|
</array>
|
2015-11-06 00:14:57 +03:00
|
|
|
</dict>
|
2016-08-19 21:29:26 +03:00
|
|
|
<key>class-or-interface-declaration</key>
|
2016-01-30 01:05:08 +03:00
|
|
|
<dict>
|
|
|
|
<key>begin</key>
|
Make sure the identifiers are handled with . and $
Fixes #43, #64, #87, #112, #131, #133, #157, #175, #212, #214, #229
2016-09-01 03:09:03 +03:00
|
|
|
<string>(?<!\.|\$)\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>
|
2016-08-19 21:29:26 +03:00
|
|
|
<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>
|
2016-08-19 21:29:26 +03:00
|
|
|
<string>(?<=\})</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>
|
2016-08-19 21:29:26 +03:00
|
|
|
<string>meta.declaration.object.ts</string>
|
2016-01-30 01:05:08 +03:00
|
|
|
<key>patterns</key>
|
|
|
|
<array>
|
|
|
|
<dict>
|
|
|
|
<key>include</key>
|
2016-08-19 21:29:26 +03:00
|
|
|
<string>#comment</string>
|
|
|
|
</dict>
|
|
|
|
<dict>
|
|
|
|
<key>include</key>
|
|
|
|
<string>#class-or-interface-heritage</string>
|
|
|
|
</dict>
|
|
|
|
<dict>
|
|
|
|
<key>include</key>
|
|
|
|
<string>#class-or-interface-name</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>
|
2016-08-19 21:29:26 +03:00
|
|
|
<key>class-or-interface-heritage</key>
|
2015-11-06 00:14:57 +03:00
|
|
|
<dict>
|
|
|
|
<key>begin</key>
|
Make sure the identifiers are handled with . and $
Fixes #43, #64, #87, #112, #131, #133, #157, #175, #212, #214, #229
2016-09-01 03:09:03 +03:00
|
|
|
<string>(?<!\.|\$)(?:\b(extends|implements)\b)(?!\$)</string>
|
2015-11-06 00:14:57 +03:00
|
|
|
<key>beginCaptures</key>
|
|
|
|
<dict>
|
|
|
|
<key>1</key>
|
|
|
|
<dict>
|
|
|
|
<key>name</key>
|
2016-08-19 21:29:26 +03:00
|
|
|
<string>storage.modifier.ts</string>
|
2015-11-06 00:14:57 +03:00
|
|
|
</dict>
|
|
|
|
</dict>
|
|
|
|
<key>end</key>
|
2016-08-19 21:29:26 +03:00
|
|
|
<string>(?=\{)</string>
|
2015-11-06 00:14:57 +03:00
|
|
|
<key>endCaptures</key>
|
|
|
|
<dict>
|
2016-08-19 21:29:26 +03:00
|
|
|
<key>1</key>
|
2015-11-06 00:14:57 +03:00
|
|
|
<dict>
|
|
|
|
<key>name</key>
|
2016-08-19 21:29:26 +03:00
|
|
|
<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.object.heritage.ts</string>
|
2015-11-06 00:14:57 +03:00
|
|
|
<key>patterns</key>
|
|
|
|
<array>
|
|
|
|
<dict>
|
|
|
|
<key>include</key>
|
2016-08-19 21:29:26 +03:00
|
|
|
<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>
|
|
|
|
<key>include</key>
|
|
|
|
<string>#class-or-interface-heritage-type</string>
|
2015-11-06 00:14:57 +03:00
|
|
|
</dict>
|
|
|
|
</array>
|
|
|
|
</dict>
|
2016-08-19 21:29:26 +03:00
|
|
|
<key>class-or-interface-heritage-type</key>
|
|
|
|
<dict>
|
2016-09-01 03:09:03 +03:00
|
|
|
<key>patterns</key>
|
|
|
|
<array>
|
2016-08-19 21:29:26 +03:00
|
|
|
<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>
|
Make sure the identifiers are handled with . and $
Fixes #43, #64, #87, #112, #131, #133, #157, #175, #212, #214, #229
2016-09-01 03:09:03 +03:00
|
|
|
<string>([_$[:alpha:]][_$[:alnum:]]*)\s*(\.)</string>
|
2016-08-19 21:29:26 +03:00
|
|
|
<key>name</key>
|
2016-09-01 03:09:03 +03:00
|
|
|
<string>meta.object.heritage.parent.ts</string>
|
2016-08-19 21:29:26 +03:00
|
|
|
</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>
|
Make sure the identifiers are handled with . and $
Fixes #43, #64, #87, #112, #131, #133, #157, #175, #212, #214, #229
2016-09-01 03:09:03 +03:00
|
|
|
<string>([_$[:alpha:]][_$[:alnum:]]*)</string>
|
2016-09-01 03:09:03 +03:00
|
|
|
<key>name</key>
|
|
|
|
<string>meta.object.heritage.parent.ts</string>
|
|
|
|
</dict>
|
|
|
|
</array>
|
2016-08-19 21:29:26 +03:00
|
|
|
</dict>
|
|
|
|
<key>class-or-interface-name</key>
|
|
|
|
<dict>
|
|
|
|
<key>captures</key>
|
|
|
|
<dict>
|
|
|
|
<key>0</key>
|
|
|
|
<dict>
|
|
|
|
<key>name</key>
|
|
|
|
<string>entity.name.class.ts</string>
|
|
|
|
</dict>
|
|
|
|
</dict>
|
|
|
|
<key>match</key>
|
2016-08-27 01:38:13 +03:00
|
|
|
<string>[_$[:alpha:]][_$[:alnum:]]*</string>
|
2016-08-19 21:29:26 +03:00
|
|
|
<key>name</key>
|
|
|
|
<string>meta.object.name.ts</string>
|
|
|
|
</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>(?!\G)</string>
|
|
|
|
<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>
|
|
|
|
<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>
|
2016-08-16 23:07:17 +03:00
|
|
|
<key>patterns</key>
|
|
|
|
<array>
|
|
|
|
<dict>
|
|
|
|
<key>match</key>
|
Make sure the identifiers are handled with . and $
Fixes #43, #64, #87, #112, #131, #133, #157, #175, #212, #214, #229
2016-09-01 03:09:03 +03:00
|
|
|
<string>(?<!\.|\$)\b(catch|finally|throw|try)\b(?!\$)</string>
|
2016-08-16 23:07:17 +03:00
|
|
|
<key>name</key>
|
|
|
|
<string>keyword.control.trycatch.ts</string>
|
|
|
|
</dict>
|
|
|
|
<dict>
|
|
|
|
<key>match</key>
|
Make sure the identifiers are handled with . and $
Fixes #43, #64, #87, #112, #131, #133, #157, #175, #212, #214, #229
2016-09-01 03:09:03 +03:00
|
|
|
<string>(?<!\.|\$)\b(break|continue|do|goto|while)\b(?!\$)</string>
|
2016-08-16 23:07:17 +03:00
|
|
|
<key>name</key>
|
|
|
|
<string>keyword.control.loop.ts</string>
|
|
|
|
</dict>
|
|
|
|
<dict>
|
|
|
|
<key>match</key>
|
Make sure the identifiers are handled with . and $
Fixes #43, #64, #87, #112, #131, #133, #157, #175, #212, #214, #229
2016-09-01 03:09:03 +03:00
|
|
|
<string>(?<!\.|\$)\b(await|return)\b(?!\$)</string>
|
2016-08-16 23:07:17 +03:00
|
|
|
<key>name</key>
|
|
|
|
<string>keyword.control.flow.ts</string>
|
|
|
|
</dict>
|
2016-08-31 21:21:34 +03:00
|
|
|
<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>
|
Make sure the identifiers are handled with . and $
Fixes #43, #64, #87, #112, #131, #133, #157, #175, #212, #214, #229
2016-09-01 03:09:03 +03:00
|
|
|
<string>(?<!\.|\$)\b(yield)\b(?!\$)(?:\s*(\*))?</string>
|
2016-08-31 21:21:34 +03:00
|
|
|
</dict>
|
2016-08-16 23:07:17 +03:00
|
|
|
<dict>
|
|
|
|
<key>match</key>
|
Make sure the identifiers are handled with . and $
Fixes #43, #64, #87, #112, #131, #133, #157, #175, #212, #214, #229
2016-09-01 03:09:03 +03:00
|
|
|
<string>(?<!\.|\$)\b(case|default|switch)\b(?!\$)</string>
|
2016-08-16 23:07:17 +03:00
|
|
|
<key>name</key>
|
|
|
|
<string>keyword.control.switch.ts</string>
|
|
|
|
</dict>
|
|
|
|
<dict>
|
|
|
|
<key>match</key>
|
Make sure the identifiers are handled with . and $
Fixes #43, #64, #87, #112, #131, #133, #157, #175, #212, #214, #229
2016-09-01 03:09:03 +03:00
|
|
|
<string>(?<!\.|\$)\b(else|if)\b(?!\$)</string>
|
2016-08-16 23:07:17 +03:00
|
|
|
<key>name</key>
|
|
|
|
<string>keyword.control.conditional.ts</string>
|
|
|
|
</dict>
|
|
|
|
<dict>
|
|
|
|
<key>match</key>
|
Make sure the identifiers are handled with . and $
Fixes #43, #64, #87, #112, #131, #133, #157, #175, #212, #214, #229
2016-09-01 03:09:03 +03:00
|
|
|
<string>(?<!\.|\$)\b(with)\b(?!\$)</string>
|
2016-08-16 23:07:17 +03:00
|
|
|
<key>name</key>
|
|
|
|
<string>keyword.control.with.ts</string>
|
|
|
|
</dict>
|
|
|
|
<dict>
|
|
|
|
<key>match</key>
|
Make sure the identifiers are handled with . and $
Fixes #43, #64, #87, #112, #131, #133, #157, #175, #212, #214, #229
2016-09-01 03:09:03 +03:00
|
|
|
<string>(?<!\.|\$)\b(debugger)\b(?!\$)</string>
|
2016-08-16 23:07:17 +03:00
|
|
|
<key>name</key>
|
|
|
|
<string>keyword.other.ts</string>
|
|
|
|
</dict>
|
|
|
|
<dict>
|
|
|
|
<key>match</key>
|
Make sure the identifiers are handled with . and $
Fixes #43, #64, #87, #112, #131, #133, #157, #175, #212, #214, #229
2016-09-01 03:09:03 +03:00
|
|
|
<string>(?<!\.|\$)\b(declare)\b(?!\$)</string>
|
2016-08-16 23:07:17 +03:00
|
|
|
<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>
|
2016-08-16 23:07:17 +03:00
|
|
|
<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>
|
2016-08-16 23:07:17 +03:00
|
|
|
<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>
|
2016-08-19 21:29:26 +03:00
|
|
|
<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>
|
2016-08-19 21:29:26 +03:00
|
|
|
<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>
|
2016-08-19 21:29:26 +03:00
|
|
|
<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>
|
2016-08-19 21:29:26 +03:00
|
|
|
<dict>
|
|
|
|
<key>include</key>
|
2016-08-19 21:29:26 +03:00
|
|
|
<string>#namespace-declaration</string>
|
2016-08-19 21:29:26 +03:00
|
|
|
</dict>
|
|
|
|
<dict>
|
|
|
|
<key>include</key>
|
2016-08-19 21:29:26 +03:00
|
|
|
<string>#import-equals-declaration</string>
|
2016-08-19 21:29:26 +03:00
|
|
|
</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>
|
2016-08-19 21:29:26 +03:00
|
|
|
<dict>
|
|
|
|
<key>include</key>
|
2016-08-19 21:29:26 +03:00
|
|
|
<string>#export-declaration</string>
|
2016-08-19 21:29:26 +03:00
|
|
|
</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>
|
Make sure the identifiers are handled with . and $
Fixes #43, #64, #87, #112, #131, #133, #157, #175, #212, #214, #229
2016-09-01 03:09:03 +03:00
|
|
|
<string>(?<!\.|\$)\@</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>(?<!=|:)\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>(?<!=|:)\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>
|
|
|
|
<string>(?<!=|:)\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>
|
2016-08-31 23:06:52 +03:00
|
|
|
<string>(?=$|[;,}])</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-08-31 23:06:52 +03:00
|
|
|
<string>(?!\G)(?=$|[;,=}])</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>
|
|
|
|
<string>(?<!=|:)\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>
|
2016-08-31 23:06:52 +03:00
|
|
|
<string>(?=$|[;,}])</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-08-31 23:06:52 +03:00
|
|
|
<string>(?!\G)(?=$|[;,=}])</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>(?<!\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>
|
2016-08-19 21:29:26 +03:00
|
|
|
<string>keyword.control.export.ts</string>
|
2015-11-06 00:14:57 +03:00
|
|
|
</dict>
|
|
|
|
<key>2</key>
|
|
|
|
<dict>
|
|
|
|
<key>name</key>
|
2016-08-19 21:29:26 +03:00
|
|
|
<string>storage.modifier.ts</string>
|
2015-11-06 00:14:57 +03:00
|
|
|
</dict>
|
|
|
|
<key>3</key>
|
2016-08-19 21:29:26 +03:00
|
|
|
<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>
|
2016-08-16 23:07:17 +03:00
|
|
|
<string>entity.name.type.enum.ts</string>
|
2015-11-06 00:14:57 +03:00
|
|
|
</dict>
|
|
|
|
</dict>
|
|
|
|
<key>match</key>
|
Make sure the identifiers are handled with . and $
Fixes #43, #64, #87, #112, #131, #133, #157, #175, #212, #214, #229
2016-09-01 03:09:03 +03:00
|
|
|
<string>(?<!\.|\$)(?:(\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>
|
Make sure the identifiers are handled with . and $
Fixes #43, #64, #87, #112, #131, #133, #157, #175, #212, #214, #229
2016-09-01 03:09:03 +03:00
|
|
|
<string>(?<!\.|\$)\b(export)\s+(as)\s+(namespace)\s+([_$[:alpha:]][_$[:alnum:]]*)</string>
|
2016-08-19 21:29:26 +03:00
|
|
|
</dict>
|
|
|
|
<dict>
|
|
|
|
<key>begin</key>
|
Make sure the identifiers are handled with . and $
Fixes #43, #64, #87, #112, #131, #133, #157, #175, #212, #214, #229
2016-09-01 03:09:03 +03:00
|
|
|
<string>(?<!\.|\$)\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>
|
Make sure the identifiers are handled with . and $
Fixes #43, #64, #87, #112, #131, #133, #157, #175, #212, #214, #229
2016-09-01 03:09:03 +03:00
|
|
|
<string>(?<!\.|\$)\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>
|
2016-08-19 21:29:26 +03:00
|
|
|
<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-08-30 22:27:34 +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>#arrow-function</string>
|
2015-11-06 00:14:57 +03:00
|
|
|
</dict>
|
|
|
|
<dict>
|
|
|
|
<key>include</key>
|
2016-08-30 22:27:34 +03:00
|
|
|
<string>#paren-expression</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>
|
2016-08-19 21:29:26 +03:00
|
|
|
<dict>
|
|
|
|
<key>include</key>
|
2016-08-30 22:27:34 +03:00
|
|
|
<string>#new-expr</string>
|
2016-08-19 21:29:26 +03:00
|
|
|
</dict>
|
2016-01-27 12:49:11 +03:00
|
|
|
<dict>
|
|
|
|
<key>include</key>
|
2016-08-19 21:29:26 +03:00
|
|
|
<string>#object-literal</string>
|
2016-03-02 02:20:23 +03:00
|
|
|
</dict>
|
2015-11-06 00:14:57 +03:00
|
|
|
<dict>
|
|
|
|
<key>include</key>
|
|
|
|
<string>#expression-operator</string>
|
|
|
|
</dict>
|
|
|
|
<dict>
|
|
|
|
<key>include</key>
|
2016-08-16 23:07:17 +03:00
|
|
|
<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>
|
|
|
|
</array>
|
|
|
|
</dict>
|
|
|
|
<key>expression-operator</key>
|
|
|
|
<dict>
|
2016-08-16 23:07:17 +03:00
|
|
|
<key>patterns</key>
|
|
|
|
<array>
|
|
|
|
<dict>
|
|
|
|
<key>match</key>
|
Make sure the identifiers are handled with . and $
Fixes #43, #64, #87, #112, #131, #133, #157, #175, #212, #214, #229
2016-09-01 03:09:03 +03:00
|
|
|
<string>(?<!\.|\$)\bdelete\b(?!\$)</string>
|
2016-08-16 23:07:17 +03:00
|
|
|
<key>name</key>
|
|
|
|
<string>keyword.operator.delete.ts</string>
|
|
|
|
</dict>
|
|
|
|
<dict>
|
|
|
|
<key>match</key>
|
Make sure the identifiers are handled with . and $
Fixes #43, #64, #87, #112, #131, #133, #157, #175, #212, #214, #229
2016-09-01 03:09:03 +03:00
|
|
|
<string>(?<!\.|\$)\bin\b(?!\$)</string>
|
2016-08-16 23:07:17 +03:00
|
|
|
<key>name</key>
|
|
|
|
<string>keyword.operator.in.ts</string>
|
|
|
|
</dict>
|
|
|
|
<dict>
|
|
|
|
<key>match</key>
|
Make sure the identifiers are handled with . and $
Fixes #43, #64, #87, #112, #131, #133, #157, #175, #212, #214, #229
2016-09-01 03:09:03 +03:00
|
|
|
<string>(?<!\.|\$)\bof\b(?!\$)</string>
|
2016-08-16 23:07:17 +03:00
|
|
|
<key>name</key>
|
|
|
|
<string>keyword.operator.of.ts</string>
|
|
|
|
</dict>
|
|
|
|
<dict>
|
|
|
|
<key>match</key>
|
Make sure the identifiers are handled with . and $
Fixes #43, #64, #87, #112, #131, #133, #157, #175, #212, #214, #229
2016-09-01 03:09:03 +03:00
|
|
|
<string>(?<!\.|\$)\binstanceof\b(?!\$)</string>
|
2016-08-16 23:07:17 +03:00
|
|
|
<key>name</key>
|
|
|
|
<string>keyword.operator.instanceof.ts</string>
|
|
|
|
</dict>
|
|
|
|
<dict>
|
|
|
|
<key>match</key>
|
Make sure the identifiers are handled with . and $
Fixes #43, #64, #87, #112, #131, #133, #157, #175, #212, #214, #229
2016-09-01 03:09:03 +03:00
|
|
|
<string>(?<!\.|\$)\bnew\b(?!\$)</string>
|
2016-08-16 23:07:17 +03:00
|
|
|
<key>name</key>
|
|
|
|
<string>keyword.operator.new.ts</string>
|
|
|
|
</dict>
|
|
|
|
<dict>
|
|
|
|
<key>match</key>
|
Make sure the identifiers are handled with . and $
Fixes #43, #64, #87, #112, #131, #133, #157, #175, #212, #214, #229
2016-09-01 03:09:03 +03:00
|
|
|
<string>(?<!\.|\$)\btypeof\b(?!\$)</string>
|
2016-08-16 23:07:17 +03:00
|
|
|
<key>name</key>
|
|
|
|
<string>keyword.operator.typeof.ts</string>
|
|
|
|
</dict>
|
|
|
|
<dict>
|
|
|
|
<key>match</key>
|
Make sure the identifiers are handled with . and $
Fixes #43, #64, #87, #112, #131, #133, #157, #175, #212, #214, #229
2016-09-01 03:09:03 +03:00
|
|
|
<string>(?<!\.|\$)\bvoid\b(?!\$)</string>
|
2016-08-16 23:07:17 +03:00
|
|
|
<key>name</key>
|
|
|
|
<string>keyword.operator.void.ts</string>
|
|
|
|
</dict>
|
|
|
|
<dict>
|
|
|
|
<key>match</key>
|
Make sure the identifiers are handled with . and $
Fixes #43, #64, #87, #112, #131, #133, #157, #175, #212, #214, #229
2016-09-01 03:09:03 +03:00
|
|
|
<string>(?<!\.|\$)\bas\b(?!\$)</string>
|
2016-08-16 23:07:17 +03:00
|
|
|
<key>name</key>
|
|
|
|
<string>keyword.control.as.ts</string>
|
|
|
|
</dict>
|
|
|
|
<dict>
|
|
|
|
<key>match</key>
|
Make sure the identifiers are handled with . and $
Fixes #43, #64, #87, #112, #131, #133, #157, #175, #212, #214, #229
2016-09-01 03:09:03 +03:00
|
|
|
<string>(?<!\.|\$)\bis\b(?!\$)</string>
|
2016-08-16 23:07:17 +03:00
|
|
|
<key>name</key>
|
|
|
|
<string>keyword.operator.is.ts</string>
|
|
|
|
</dict>
|
|
|
|
</array>
|
2015-11-06 00:14:57 +03:00
|
|
|
</dict>
|
|
|
|
<key>field-declaration</key>
|
|
|
|
<dict>
|
|
|
|
<key>begin</key>
|
Make sure the identifiers are handled with . and $
Fixes #43, #64, #87, #112, #131, #133, #157, #175, #212, #214, #229
2016-09-01 03:09:03 +03:00
|
|
|
<string>(?<!\()\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-08-16 23:07:17 +03:00
|
|
|
<string>variable.object.property.ts</string>
|
2015-11-06 00:14:57 +03:00
|
|
|
</dict>
|
|
|
|
<key>2</key>
|
|
|
|
<dict>
|
|
|
|
<key>name</key>
|
2016-08-16 23:07:17 +03:00
|
|
|
<string>keyword.operator.optional.ts</string>
|
2015-11-06 00:14:57 +03:00
|
|
|
</dict>
|
|
|
|
</dict>
|
|
|
|
<key>end</key>
|
2016-01-16 01:35:46 +03:00
|
|
|
<string>(?=\}|;|,|$)|(?<=\})</string>
|
2015-11-06 00:14:57 +03:00
|
|
|
<key>name</key>
|
|
|
|
<string>meta.field.declaration.ts</string>
|
|
|
|
<key>patterns</key>
|
|
|
|
<array>
|
2016-08-18 01:00:09 +03:00
|
|
|
<dict>
|
|
|
|
<key>include</key>
|
2016-08-31 02:13:37 +03:00
|
|
|
<string>#variable-initializer</string>
|
2016-08-18 01:00:09 +03:00
|
|
|
</dict>
|
2015-11-06 00:14:57 +03:00
|
|
|
<dict>
|
2016-08-31 02:13:37 +03:00
|
|
|
<key>begin</key>
|
|
|
|
<string>\G</string>
|
|
|
|
<key>end</key>
|
|
|
|
<string>(?!\G)(?=[};,=]|$)|(?<=\})</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>
|
|
|
|
<key>for-in-simple</key>
|
|
|
|
<dict>
|
|
|
|
<key>captures</key>
|
|
|
|
<dict>
|
|
|
|
<key>1</key>
|
|
|
|
<dict>
|
|
|
|
<key>name</key>
|
|
|
|
<string>storage.type.ts</string>
|
|
|
|
</dict>
|
2016-08-16 23:07:17 +03:00
|
|
|
<key>2</key>
|
|
|
|
<dict>
|
|
|
|
<key>name</key>
|
|
|
|
<string>variable.other.readwrite.ts</string>
|
|
|
|
</dict>
|
2015-11-06 00:14:57 +03:00
|
|
|
<key>3</key>
|
|
|
|
<dict>
|
|
|
|
<key>name</key>
|
2016-08-16 23:07:17 +03:00
|
|
|
<string>keyword.operator.in.ts</string>
|
|
|
|
</dict>
|
|
|
|
<key>4</key>
|
|
|
|
<dict>
|
|
|
|
<key>name</key>
|
|
|
|
<string>keyword.operator.of.ts</string>
|
2015-11-06 00:14:57 +03:00
|
|
|
</dict>
|
|
|
|
</dict>
|
|
|
|
<key>match</key>
|
Make sure the identifiers are handled with . and $
Fixes #43, #64, #87, #112, #131, #133, #157, #175, #212, #214, #229
2016-09-01 03:09:03 +03:00
|
|
|
<string>(?<=\()\s*\b(var|let|const)\s+([_$[:alpha:]][_$[:alnum:]]*)\s+(?:(in)|(of))\b(?!\$)</string>
|
2015-11-06 00:14:57 +03:00
|
|
|
<key>name</key>
|
|
|
|
<string>forin.expr.ts</string>
|
|
|
|
</dict>
|
2016-08-19 21:29:26 +03:00
|
|
|
<key>for-loop</key>
|
|
|
|
<dict>
|
|
|
|
<key>begin</key>
|
Make sure the identifiers are handled with . and $
Fixes #43, #64, #87, #112, #131, #133, #157, #175, #212, #214, #229
2016-09-01 03:09:03 +03:00
|
|
|
<string>(?<!\.|\$)\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>
|
|
|
|
</array>
|
|
|
|
</dict>
|
2015-11-06 00:14:57 +03:00
|
|
|
<key>function-call</key>
|
|
|
|
<dict>
|
|
|
|
<key>name</key>
|
|
|
|
<string>functioncall.expr.ts</string>
|
|
|
|
<key>patterns</key>
|
|
|
|
<array>
|
|
|
|
<dict>
|
2016-09-01 03:09:03 +03:00
|
|
|
<key>begin</key>
|
2016-09-01 03:09:03 +03:00
|
|
|
<string>([_$[:alpha:]][_$[:alnum:]]*)\s*(<)(?=[^<>]*(\<[^<>]+\>)*[^<>]*(\<[^<>]+\>)*[^<>]*>\s*\()</string>
|
2016-09-01 03:09:03 +03:00
|
|
|
<key>beginCaptures</key>
|
|
|
|
<dict>
|
|
|
|
<key>1</key>
|
|
|
|
<dict>
|
|
|
|
<key>name</key>
|
|
|
|
<string>entity.name.function.ts</string>
|
|
|
|
</dict>
|
|
|
|
<key>2</key>
|
|
|
|
<dict>
|
|
|
|
<key>name</key>
|
|
|
|
<string>punctuation.definition.typeparameters.begin.ts</string>
|
|
|
|
</dict>
|
|
|
|
</dict>
|
|
|
|
<key>end</key>
|
|
|
|
<string>(>)</string>
|
|
|
|
<key>endCaptures</key>
|
|
|
|
<dict>
|
|
|
|
<key>1</key>
|
|
|
|
<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>#comment</string>
|
|
|
|
</dict>
|
|
|
|
<dict>
|
|
|
|
<key>include</key>
|
|
|
|
<string>#type</string>
|
|
|
|
</dict>
|
|
|
|
</array>
|
2015-11-06 00:14:57 +03:00
|
|
|
</dict>
|
|
|
|
<dict>
|
|
|
|
<key>include</key>
|
|
|
|
<string>#paren-expression</string>
|
|
|
|
</dict>
|
|
|
|
</array>
|
|
|
|
</dict>
|
|
|
|
<key>function-declaration</key>
|
|
|
|
<dict>
|
|
|
|
<key>begin</key>
|
Make sure the identifiers are handled with . and $
Fixes #43, #64, #87, #112, #131, #133, #157, #175, #212, #214, #229
2016-09-01 03:09:03 +03:00
|
|
|
<string>(?<!\.|\$)\b(?:(export)\s+)?(?:(async)\s+)?(function\b)(?:\s*(\*))?(?:(?:\s+|(?<=\*))([_$[:alpha:]][_$[:alnum:]]*))?\s*</string>
|
2015-11-06 00:14:57 +03:00
|
|
|
<key>beginCaptures</key>
|
|
|
|
<dict>
|
|
|
|
<key>1</key>
|
|
|
|
<dict>
|
|
|
|
<key>name</key>
|
2016-08-16 23:07:17 +03:00
|
|
|
<string>keyword.control.export.ts</string>
|
2015-11-06 00:14:57 +03:00
|
|
|
</dict>
|
|
|
|
<key>2</key>
|
|
|
|
<dict>
|
|
|
|
<key>name</key>
|
2016-08-16 23:07:17 +03:00
|
|
|
<string>storage.modifier.async.ts</string>
|
2015-11-06 00:14:57 +03:00
|
|
|
</dict>
|
|
|
|
<key>3</key>
|
2015-12-03 19:55:17 +03:00
|
|
|
<dict>
|
|
|
|
<key>name</key>
|
|
|
|
<string>storage.type.function.ts</string>
|
|
|
|
</dict>
|
|
|
|
<key>4</key>
|
2016-08-31 21:21:34 +03:00
|
|
|
<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>(?=;|\})|(?<=\})</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>
|
2016-08-29 21:28:15 +03:00
|
|
|
<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>
|
2016-08-16 23:07:17 +03:00
|
|
|
<string>keyword.control.export.ts</string>
|
2015-11-06 00:14:57 +03:00
|
|
|
</dict>
|
|
|
|
<key>2</key>
|
|
|
|
<dict>
|
|
|
|
<key>name</key>
|
2016-08-31 21:21:34 +03:00
|
|
|
<string>storage.modifier.async.ts</string>
|
2015-11-06 00:14:57 +03:00
|
|
|
</dict>
|
|
|
|
<key>3</key>
|
2016-08-31 21:21:34 +03:00
|
|
|
<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>
|
Make sure the identifiers are handled with . and $
Fixes #43, #64, #87, #112, #131, #133, #157, #175, #212, #214, #229
2016-09-01 03:09:03 +03:00
|
|
|
<string>(?<!\.|\$)\b(?:(export)\s+)?(?:(async)\s+)?(function\b)(?:\s*(\*))?(?:(?:\s+|(?<=\*))([_$[:alpha:]][_$[:alnum:]]*))?\s*</string>
|
2015-11-06 00:14:57 +03:00
|
|
|
<key>name</key>
|
|
|
|
<string>meta.function.overload.ts</string>
|
|
|
|
</dict>
|
2016-08-29 21:28:15 +03:00
|
|
|
<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>
|
2016-08-16 23:07:17 +03:00
|
|
|
<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>
|
2016-08-16 23:07:17 +03:00
|
|
|
<string>punctuation.definition.parameters.end.ts</string>
|
2015-11-06 00:14:57 +03:00
|
|
|
</dict>
|
|
|
|
</dict>
|
|
|
|
<key>name</key>
|
2016-08-29 21:28:15 +03:00
|
|
|
<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>
|
|
|
|
</array>
|
|
|
|
</dict>
|
2016-08-19 21:29:26 +03:00
|
|
|
<key>import-declaration</key>
|
|
|
|
<dict>
|
|
|
|
<key>begin</key>
|
Make sure the identifiers are handled with . and $
Fixes #43, #64, #87, #112, #131, #133, #157, #175, #212, #214, #229
2016-09-01 03:09:03 +03:00
|
|
|
<string>(?<!\.|\$)(?:(\bexport)\s+)?\b(import)(?!(\s*:)|(\$))\b</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>
|
2016-08-16 23:07:17 +03:00
|
|
|
<key>name</key>
|
|
|
|
<string>keyword.control.import.ts</string>
|
|
|
|
</dict>
|
2016-08-19 21:29:26 +03:00
|
|
|
</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>
|
2016-08-19 21:29:26 +03:00
|
|
|
</dict>
|
|
|
|
</array>
|
|
|
|
</dict>
|
|
|
|
<key>import-equals-declaration</key>
|
|
|
|
<dict>
|
|
|
|
<key>patterns</key>
|
|
|
|
<array>
|
|
|
|
<dict>
|
|
|
|
<key>begin</key>
|
Make sure the identifiers are handled with . and $
Fixes #43, #64, #87, #112, #131, #133, #157, #175, #212, #214, #229
2016-09-01 03:09:03 +03:00
|
|
|
<string>(?<!\.|\$)(?:(\bexport)\s+)?\b(import)\s+([_$[:alpha:]][_$[:alnum:]]*)\s*(=)\s*(require)\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.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>
|
Make sure the identifiers are handled with . and $
Fixes #43, #64, #87, #112, #131, #133, #157, #175, #212, #214, #229
2016-09-01 03:09:03 +03:00
|
|
|
<string>(?<!\.|\$)(?:(\bexport)\s+)?\b(import)\s+([_$[:alpha:]][_$[:alnum:]]*)\s*(=)\s*(?!require\b)</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.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>
|
2016-08-19 21:29:26 +03:00
|
|
|
</dict>
|
|
|
|
<key>2</key>
|
|
|
|
<dict>
|
|
|
|
<key>name</key>
|
|
|
|
<string>punctuation.accessor.ts</string>
|
|
|
|
</dict>
|
|
|
|
</dict>
|
|
|
|
<key>match</key>
|
Make sure the identifiers are handled with . and $
Fixes #43, #64, #87, #112, #131, #133, #157, #175, #212, #214, #229
2016-09-01 03:09:03 +03:00
|
|
|
<string>([_$[:alpha:]][_$[:alnum:]]*)\s*(\.)</string>
|
2016-08-19 21:29:26 +03:00
|
|
|
</dict>
|
|
|
|
<dict>
|
|
|
|
<key>match</key>
|
Make sure the identifiers are handled with . and $
Fixes #43, #64, #87, #112, #131, #133, #157, #175, #212, #214, #229
2016-09-01 03:09:03 +03:00
|
|
|
<string>([_$[:alpha:]][_$[:alnum:]]*)</string>
|
2016-08-19 21:29:26 +03:00
|
|
|
<key>name</key>
|
|
|
|
<string>variable.other.readwrite.ts</string>
|
|
|
|
</dict>
|
|
|
|
</array>
|
|
|
|
</dict>
|
2016-08-16 23:07:17 +03:00
|
|
|
</array>
|
2016-03-02 02:20:23 +03:00
|
|
|
</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>
|
Make sure the identifiers are handled with . and $
Fixes #43, #64, #87, #112, #131, #133, #157, #175, #212, #214, #229
2016-09-01 03:09:03 +03:00
|
|
|
<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>
|
Make sure the identifiers are handled with . and $
Fixes #43, #64, #87, #112, #131, #133, #157, #175, #212, #214, #229
2016-09-01 03:09:03 +03:00
|
|
|
<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>
|
|
|
|
<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>(\])\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>
|
2016-08-16 23:07:17 +03:00
|
|
|
<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>
|
2016-08-19 21:29:26 +03:00
|
|
|
<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>
|
2016-08-12 01:38:31 +03:00
|
|
|
<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>
|
2016-08-16 23:07:17 +03:00
|
|
|
<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>
|
Make sure the identifiers are handled with . and $
Fixes #43, #64, #87, #112, #131, #133, #157, #175, #212, #214, #229
2016-09-01 03:09:03 +03:00
|
|
|
<string>(?<!\.|\$)(?:\b(abstract)\s+)?(?:\b(public|private|protected)\s+)?(?:\b(async)\s+)?(?:\b(get|set)\s+)?(?=((\bnew)|(?:\b(constructor)\b)|((?:(\*)\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>
|
|
|
|
<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>
|
2016-08-16 23:07:17 +03:00
|
|
|
<string>storage.modifier.async.ts</string>
|
2015-11-06 00:14:57 +03:00
|
|
|
</dict>
|
|
|
|
<key>4</key>
|
|
|
|
<dict>
|
|
|
|
<key>name</key>
|
2015-12-03 19:55:17 +03:00
|
|
|
<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>(?=\}|;|,)|(?<=\})</string>
|
2015-11-06 00:14:57 +03:00
|
|
|
<key>name</key>
|
|
|
|
<string>meta.method.declaration.ts</string>
|
|
|
|
<key>patterns</key>
|
|
|
|
<array>
|
2016-08-27 01:38:13 +03:00
|
|
|
<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>
|
2016-08-29 21:28:15 +03:00
|
|
|
<string>#function-parameters</string>
|
2015-11-06 00:14:57 +03:00
|
|
|
</dict>
|
|
|
|
<dict>
|
|
|
|
<key>include</key>
|
2016-08-18 01:00:09 +03:00
|
|
|
<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>
|
2016-08-27 01:38:13 +03:00
|
|
|
<key>method-declaration-name</key>
|
2015-11-06 00:14:57 +03:00
|
|
|
<dict>
|
2016-08-27 01:38:13 +03:00
|
|
|
<key>begin</key>
|
|
|
|
<string>\G</string>
|
|
|
|
<key>end</key>
|
|
|
|
<string>(?=\(|\<)</string>
|
|
|
|
<key>patterns</key>
|
|
|
|
<array>
|
2016-08-31 21:21:34 +03:00
|
|
|
<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>
|
2016-08-27 01:38:13 +03:00
|
|
|
<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>
|
2016-08-27 01:38:13 +03:00
|
|
|
<key>match</key>
|
|
|
|
<string>\bnew(?=\s*[\(\<])</string>
|
2015-11-06 00:14:57 +03:00
|
|
|
<key>name</key>
|
2016-08-27 01:38:13 +03:00
|
|
|
<string>keyword.operator.new.ts</string>
|
2015-11-06 00:14:57 +03:00
|
|
|
</dict>
|
|
|
|
<dict>
|
2016-08-27 01:38:13 +03:00
|
|
|
<key>match</key>
|
|
|
|
<string>\bconstructor\b(?=\s*[\(\<])</string>
|
2015-11-06 00:14:57 +03:00
|
|
|
<key>name</key>
|
2016-08-27 01:38:13 +03:00
|
|
|
<string>storage.type.ts</string>
|
2015-11-06 00:14:57 +03:00
|
|
|
</dict>
|
|
|
|
<dict>
|
2016-08-27 01:38:13 +03:00
|
|
|
<key>match</key>
|
Make sure the identifiers are handled with . and $
Fixes #43, #64, #87, #112, #131, #133, #157, #175, #212, #214, #229
2016-09-01 03:09:03 +03:00
|
|
|
<string>[_$[:alpha:]][_$[:alnum:]]*</string>
|
2015-11-06 00:14:57 +03:00
|
|
|
<key>name</key>
|
2016-08-27 01:38:13 +03:00
|
|
|
<string>entity.name.function.ts</string>
|
2015-11-06 00:14:57 +03:00
|
|
|
</dict>
|
2016-01-30 00:54:27 +03:00
|
|
|
<dict>
|
2016-08-27 01:38:13 +03:00
|
|
|
<key>match</key>
|
|
|
|
<string>\?</string>
|
2016-01-30 00:54:27 +03:00
|
|
|
<key>name</key>
|
2016-08-27 01:38:13 +03:00
|
|
|
<string>keyword.operator.optional.ts</string>
|
2016-01-30 00:54:27 +03:00
|
|
|
</dict>
|
2016-08-27 01:38:13 +03:00
|
|
|
</array>
|
|
|
|
</dict>
|
|
|
|
<key>method-overload-declaration</key>
|
|
|
|
<dict>
|
|
|
|
<key>begin</key>
|
Make sure the identifiers are handled with . and $
Fixes #43, #64, #87, #112, #131, #133, #157, #175, #212, #214, #229
2016-09-01 03:09:03 +03:00
|
|
|
<string>(?<!\.|\$)(?:\b(abstract)\s+)?(?:\b(public|private|protected)\s+)?(?:\b(async)\s+)?(?:\b(get|set)\s+)?(?=((\bnew)|(?:\b(constructor)\b)|((?:(\*)\s*)?((?:[_$[:alpha:]][_$[:alnum:]]*)|(?:\'[^']*\')|(?:\"[^"]*\")|(?:\[[^\]]*\]))\s*(\??)))?\s*[\(\<])</string>
|
2016-08-27 01:38:13 +03:00
|
|
|
<key>beginCaptures</key>
|
|
|
|
<dict>
|
|
|
|
<key>1</key>
|
2016-01-30 00:54:27 +03:00
|
|
|
<dict>
|
|
|
|
<key>name</key>
|
2016-08-27 01:38:13 +03:00
|
|
|
<string>storage.modifier.ts</string>
|
2016-01-30 00:54:27 +03:00
|
|
|
</dict>
|
2016-08-27 01:38:13 +03:00
|
|
|
<key>2</key>
|
2016-01-30 00:54:27 +03:00
|
|
|
<dict>
|
|
|
|
<key>name</key>
|
2016-08-27 01:38:13 +03:00
|
|
|
<string>storage.modifier.ts</string>
|
2016-01-30 00:54:27 +03:00
|
|
|
</dict>
|
2016-08-27 01:38:13 +03:00
|
|
|
<key>3</key>
|
2016-03-02 23:14:38 +03:00
|
|
|
<dict>
|
|
|
|
<key>name</key>
|
2016-08-27 01:38:13 +03:00
|
|
|
<string>storage.modifier.ts</string>
|
2016-03-02 23:14:38 +03:00
|
|
|
</dict>
|
2016-08-27 01:38:13 +03:00
|
|
|
<key>4</key>
|
2015-11-06 00:14:57 +03:00
|
|
|
<dict>
|
|
|
|
<key>name</key>
|
2016-08-27 01:38:13 +03:00
|
|
|
<string>storage.type.property.ts</string>
|
2015-11-06 00:14:57 +03:00
|
|
|
</dict>
|
|
|
|
</dict>
|
2016-08-27 01:38:13 +03:00
|
|
|
<key>end</key>
|
|
|
|
<string>(?=\(|\<)</string>
|
2015-11-06 00:14:57 +03:00
|
|
|
<key>name</key>
|
|
|
|
<string>meta.method.overload.declaration.ts</string>
|
2016-08-27 01:38:13 +03:00
|
|
|
<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>
|
Make sure the identifiers are handled with . and $
Fixes #43, #64, #87, #112, #131, #133, #157, #175, #212, #214, #229
2016-09-01 03:09:03 +03:00
|
|
|
<string>(?<!\.|\$)(?:(\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-08-27 01:38:13 +03:00
|
|
|
<string>\b([_$[:alpha:]][_$[:alnum:]]*)\b</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>
|
Make sure the identifiers are handled with . and $
Fixes #43, #64, #87, #112, #131, #133, #157, #175, #212, #214, #229
2016-09-01 03:09:03 +03:00
|
|
|
<string>(?<!\.|\$)\b(new)\b(?!\$)</string>
|
2015-11-06 00:14:57 +03:00
|
|
|
<key>beginCaptures</key>
|
|
|
|
<dict>
|
|
|
|
<key>1</key>
|
|
|
|
<dict>
|
|
|
|
<key>name</key>
|
2016-08-16 23:07:17 +03:00
|
|
|
<string>keyword.operator.new.ts</string>
|
2015-11-06 00:14:57 +03:00
|
|
|
</dict>
|
|
|
|
</dict>
|
|
|
|
<key>end</key>
|
2016-09-01 02:48:13 +03:00
|
|
|
<string>(?=[(;),]|$)</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>
|
|
|
|
<dict>
|
|
|
|
<key>include</key>
|
|
|
|
<string>#comment</string>
|
|
|
|
</dict>
|
|
|
|
</array>
|
|
|
|
</dict>
|
|
|
|
<key>null-literal</key>
|
|
|
|
<dict>
|
|
|
|
<key>match</key>
|
Make sure the identifiers are handled with . and $
Fixes #43, #64, #87, #112, #131, #133, #157, #175, #212, #214, #229
2016-09-01 03:09:03 +03:00
|
|
|
<string>(?<!\.|\$)\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(?<!\$)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(?<!\$)0(b|B)[01]+\b(?!\$)</string>
|
|
|
|
<key>name</key>
|
|
|
|
<string>constant.numeric.binary.ts</string>
|
|
|
|
</dict>
|
|
|
|
<dict>
|
|
|
|
<key>match</key>
|
|
|
|
<string>\b(?<!\$)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)
|
|
|
|
(?<!\$)(?:
|
|
|
|
(?:\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>
|
2016-08-12 01:38:31 +03:00
|
|
|
<key>numericConstant-literal</key>
|
|
|
|
<dict>
|
|
|
|
<key>patterns</key>
|
|
|
|
<array>
|
|
|
|
<dict>
|
|
|
|
<key>match</key>
|
Make sure the identifiers are handled with . and $
Fixes #43, #64, #87, #112, #131, #133, #157, #175, #212, #214, #229
2016-09-01 03:09:03 +03:00
|
|
|
<string>(?<!\.|\$)\bNaN\b(?!\$)</string>
|
2016-08-12 01:38:31 +03:00
|
|
|
<key>name</key>
|
|
|
|
<string>constant.language.nan.ts</string>
|
|
|
|
</dict>
|
|
|
|
<dict>
|
|
|
|
<key>match</key>
|
Make sure the identifiers are handled with . and $
Fixes #43, #64, #87, #112, #131, #133, #157, #175, #212, #214, #229
2016-09-01 03:09:03 +03:00
|
|
|
<string>(?<!\.|\$)\bInfinity\b(?!\$)</string>
|
2016-08-12 01:38:31 +03:00
|
|
|
<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>
|
Make sure the identifiers are handled with . and $
Fixes #43, #64, #87, #112, #131, #133, #157, #175, #212, #214, #229
2016-09-01 03:09:03 +03:00
|
|
|
<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>
|
Make sure the identifiers are handled with . and $
Fixes #43, #64, #87, #112, #131, #133, #157, #175, #212, #214, #229
2016-09-01 03:09:03 +03:00
|
|
|
<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>
|
Make sure the identifiers are handled with . and $
Fixes #43, #64, #87, #112, #131, #133, #157, #175, #212, #214, #229
2016-09-01 03:09:03 +03:00
|
|
|
<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>
|
2016-08-19 21:29:26 +03:00
|
|
|
<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>
|
2016-08-16 23:07:17 +03:00
|
|
|
<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>
|
2016-08-16 23:07:17 +03:00
|
|
|
<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.object-literal.ts</string>
|
2015-11-06 00:14:57 +03:00
|
|
|
<key>patterns</key>
|
|
|
|
<array>
|
|
|
|
<dict>
|
|
|
|
<key>include</key>
|
2016-08-19 21:29:26 +03:00
|
|
|
<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>
|
2016-08-19 21:29:26 +03:00
|
|
|
<string>#comment</string>
|
|
|
|
</dict>
|
|
|
|
<dict>
|
|
|
|
<key>include</key>
|
|
|
|
<string>#method-declaration</string>
|
|
|
|
</dict>
|
|
|
|
<dict>
|
|
|
|
<key>begin</key>
|
2016-08-27 01:38:13 +03:00
|
|
|
<string>[_$[:alpha:]][_$[:alnum:]]*\s*:</string>
|
2016-08-19 21:29:26 +03:00
|
|
|
<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>
|
2015-11-06 00:14:57 +03:00
|
|
|
</dict>
|
|
|
|
</array>
|
|
|
|
</dict>
|
2016-08-16 23:07:17 +03:00
|
|
|
<key>operators</key>
|
|
|
|
<dict>
|
|
|
|
<key>patterns</key>
|
|
|
|
<array>
|
|
|
|
<dict>
|
|
|
|
<key>match</key>
|
|
|
|
<string>\*=|(?<!\()/=|%=|\+=|\-=</string>
|
|
|
|
<key>name</key>
|
|
|
|
<string>keyword.operator.assignment.compound.ts</string>
|
|
|
|
</dict>
|
|
|
|
<dict>
|
|
|
|
<key>match</key>
|
|
|
|
<string>\&=|\^=|<<=|>>=|>>>=|\|=</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>
|
2016-08-18 02:29:15 +03:00
|
|
|
<string><=|>=|<>|<|></string>
|
2016-08-16 23:07:17 +03:00
|
|
|
<key>name</key>
|
|
|
|
<string>keyword.operator.relational.ts</string>
|
|
|
|
</dict>
|
|
|
|
<dict>
|
|
|
|
<key>match</key>
|
|
|
|
<string>\!|&&|\|\|</string>
|
|
|
|
<key>name</key>
|
|
|
|
<string>keyword.operator.logical.ts</string>
|
|
|
|
</dict>
|
|
|
|
<dict>
|
|
|
|
<key>match</key>
|
|
|
|
<string>\&|~|\^|\|</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>
|
Make sure the identifiers are handled with . and $
Fixes #43, #64, #87, #112, #131, #133, #157, #175, #212, #214, #229
2016-09-01 03:09:03 +03:00
|
|
|
<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>
|
2016-08-16 23:07:17 +03:00
|
|
|
<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>
|
2016-08-16 23:07:17 +03:00
|
|
|
<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*(?<!=|:)([_$[: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>
|
Make sure the identifiers are handled with . and $
Fixes #43, #64, #87, #112, #131, #133, #157, #175, #212, #214, #229
2016-09-01 03:09:03 +03:00
|
|
|
<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>
|
Make sure the identifiers are handled with . and $
Fixes #43, #64, #87, #112, #131, #133, #157, #175, #212, #214, #229
2016-09-01 03:09:03 +03:00
|
|
|
<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>
|
Make sure the identifiers are handled with . and $
Fixes #43, #64, #87, #112, #131, #133, #157, #175, #212, #214, #229
2016-09-01 03:09:03 +03:00
|
|
|
<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>
|
2016-08-16 23:07:17 +03:00
|
|
|
<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>
|
2016-08-16 23:07:17 +03:00
|
|
|
<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>
|
|
|
|
</array>
|
|
|
|
</dict>
|
|
|
|
<key>property-accessor</key>
|
|
|
|
<dict>
|
|
|
|
<key>match</key>
|
Make sure the identifiers are handled with . and $
Fixes #43, #64, #87, #112, #131, #133, #157, #175, #212, #214, #229
2016-09-01 03:09:03 +03:00
|
|
|
<string>(?<!\.|\$)\b(get|set)\b(?!\$)</string>
|
2015-11-06 00:14:57 +03:00
|
|
|
<key>name</key>
|
|
|
|
<string>storage.type.property.ts</string>
|
|
|
|
</dict>
|
|
|
|
<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>
|
2016-08-12 01:38:31 +03:00
|
|
|
<string>(?<=[=(:,\[?+!]|^|return|=>|&&|\|\|)\s*(/)(?![/*+{}?])(?=.*/)</string>
|
|
|
|
<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>(?<=\))\s*:</string>
|
|
|
|
<key>end</key>
|
2016-08-18 03:51:40 +03:00
|
|
|
<string>(?<!:)((?=$)|(?=\{|;|//))</string>
|
2015-11-06 00:14:57 +03:00
|
|
|
<key>name</key>
|
|
|
|
<string>meta.return.type.ts</string>
|
|
|
|
<key>patterns</key>
|
|
|
|
<array>
|
2016-08-18 01:00:09 +03:00
|
|
|
<dict>
|
|
|
|
<key>begin</key>
|
|
|
|
<string>(?<=:)\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>
|
2015-11-06 00:14:57 +03:00
|
|
|
<dict>
|
|
|
|
<key>include</key>
|
|
|
|
<string>#type</string>
|
|
|
|
</dict>
|
|
|
|
</array>
|
|
|
|
</dict>
|
2016-08-19 21:29:26 +03:00
|
|
|
<key>statements</key>
|
|
|
|
<dict>
|
|
|
|
<key>patterns</key>
|
|
|
|
<array>
|
|
|
|
<dict>
|
|
|
|
<key>include</key>
|
|
|
|
<string>#for-in-simple</string>
|
|
|
|
</dict>
|
|
|
|
<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>
|
2016-08-19 21:29:26 +03:00
|
|
|
<dict>
|
|
|
|
<key>include</key>
|
|
|
|
<string>#after-operator-block</string>
|
|
|
|
</dict>
|
2016-08-19 21:29:26 +03:00
|
|
|
<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>
|
|
|
|
</array>
|
|
|
|
</dict>
|
2015-11-06 00:14:57 +03:00
|
|
|
<key>static-modifier</key>
|
|
|
|
<dict>
|
|
|
|
<key>match</key>
|
Make sure the identifiers are handled with . and $
Fixes #43, #64, #87, #112, #131, #133, #157, #175, #212, #214, #229
2016-09-01 03:09:03 +03:00
|
|
|
<string>(?<!\.|\$)\b(static)\b(?!\$)</string>
|
2015-11-06 00:14:57 +03:00
|
|
|
<key>name</key>
|
2016-08-16 23:07:17 +03:00
|
|
|
<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>
|
2016-08-16 23:07:17 +03:00
|
|
|
<key>super-literal</key>
|
|
|
|
<dict>
|
|
|
|
<key>match</key>
|
Make sure the identifiers are handled with . and $
Fixes #43, #64, #87, #112, #131, #133, #157, #175, #212, #214, #229
2016-09-01 03:09:03 +03:00
|
|
|
<string>(?<!\.|\$)\bsuper\b(?!\$)</string>
|
2016-08-16 23:07:17 +03:00
|
|
|
<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>
|
2016-08-16 23:07:17 +03:00
|
|
|
<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>
|
2016-08-19 21:29:26 +03:00
|
|
|
<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>
|
Make sure the identifiers are handled with . and $
Fixes #43, #64, #87, #112, #131, #133, #157, #175, #212, #214, #229
2016-09-01 03:09:03 +03:00
|
|
|
<string>(?<!\.|\$)\b(switch)\s*(\()</string>
|
2015-11-06 00:14:57 +03:00
|
|
|
<key>beginCaptures</key>
|
|
|
|
<dict>
|
|
|
|
<key>1</key>
|
|
|
|
<dict>
|
|
|
|
<key>name</key>
|
2016-08-16 23:07:17 +03:00
|
|
|
<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>
|
Make sure the identifiers are handled with . and $
Fixes #43, #64, #87, #112, #131, #133, #157, #175, #212, #214, #229
2016-09-01 03:09:03 +03:00
|
|
|
<string>(?<!\.|\$)(?=\bswitch\s*\()</string>
|
2016-01-27 12:49:11 +03:00
|
|
|
<key>end</key>
|
|
|
|
<string>}</string>
|
2016-08-16 23:07:17 +03:00
|
|
|
<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>
|
Make sure the identifiers are handled with . and $
Fixes #43, #64, #87, #112, #131, #133, #157, #175, #212, #214, #229
2016-09-01 03:09:03 +03:00
|
|
|
<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>
|
2016-08-12 01:38:31 +03:00
|
|
|
<string>entity.name.function.tagged-template.ts</string>
|
|
|
|
</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>
|
2016-04-27 19:36:09 +03:00
|
|
|
<key>ternary-expression</key>
|
|
|
|
<dict>
|
|
|
|
<key>begin</key>
|
|
|
|
<string>(?=\?)</string>
|
|
|
|
<key>end</key>
|
2016-08-19 21:29:26 +03:00
|
|
|
<string>(?=$|[;,}])</string>
|
2016-04-27 19:36:09 +03:00
|
|
|
<key>patterns</key>
|
|
|
|
<array>
|
|
|
|
<dict>
|
|
|
|
<key>include</key>
|
|
|
|
<string>#ternary-operator</string>
|
|
|
|
</dict>
|
|
|
|
<dict>
|
|
|
|
<key>include</key>
|
2016-08-19 21:29:26 +03:00
|
|
|
<string>#expression</string>
|
2016-04-27 19:36:09 +03:00
|
|
|
</dict>
|
|
|
|
</array>
|
|
|
|
</dict>
|
2016-03-17 20:49:23 +03:00
|
|
|
<key>ternary-operator</key>
|
|
|
|
<dict>
|
|
|
|
<key>begin</key>
|
|
|
|
<string>(\?)</string>
|
2016-08-18 02:08:00 +03:00
|
|
|
<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>
|
2016-08-18 02:08:00 +03:00
|
|
|
<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>
|
2016-08-19 21:29:26 +03:00
|
|
|
<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>
|
Make sure the identifiers are handled with . and $
Fixes #43, #64, #87, #112, #131, #133, #157, #175, #212, #214, #229
2016-09-01 03:09:03 +03:00
|
|
|
<string>(?<!\.|\$)\bthis\b(?!\$)</string>
|
2015-11-06 00:14:57 +03:00
|
|
|
<key>name</key>
|
2016-08-16 23:07:17 +03:00
|
|
|
<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-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-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>
|
2016-08-29 21:28:15 +03:00
|
|
|
<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>(?=$|[,);\}\]]|//)|(?==[^>])|(?<=[\}>\]\)]|[_$[:alpha:]])\s*(?=\{)</string>
|
2015-11-06 00:14:57 +03:00
|
|
|
<key>name</key>
|
|
|
|
<string>meta.type.annotation.ts</string>
|
|
|
|
<key>patterns</key>
|
|
|
|
<array>
|
2016-03-02 02:20:23 +03:00
|
|
|
<dict>
|
|
|
|
<key>include</key>
|
|
|
|
<string>#expression-operator</string>
|
|
|
|
</dict>
|
2015-11-06 00:14:57 +03:00
|
|
|
<dict>
|
|
|
|
<key>include</key>
|
|
|
|
<string>#type</string>
|
|
|
|
</dict>
|
|
|
|
<dict>
|
|
|
|
<key>include</key>
|
|
|
|
<string>#comment</string>
|
|
|
|
</dict>
|
|
|
|
</array>
|
|
|
|
</dict>
|
|
|
|
<key>type-declaration</key>
|
|
|
|
<dict>
|
|
|
|
<key>begin</key>
|
Make sure the identifiers are handled with . and $
Fixes #43, #64, #87, #112, #131, #133, #157, #175, #212, #214, #229
2016-09-01 03:09:03 +03:00
|
|
|
<string>(?<!\.|\$)(?:(\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>
|
2016-08-19 21:29:26 +03:00
|
|
|
<string>keyword.control.export.ts</string>
|
2015-11-06 00:14:57 +03:00
|
|
|
</dict>
|
|
|
|
<key>2</key>
|
2016-08-19 21:29:26 +03:00
|
|
|
<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>
|
2016-08-16 23:07:17 +03:00
|
|
|
<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>(?=$|[,);>]|\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>
|
2016-08-16 23:07:17 +03:00
|
|
|
<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>=></string>
|
|
|
|
<key>beginCaptures</key>
|
|
|
|
<dict>
|
|
|
|
<key>0</key>
|
|
|
|
<dict>
|
|
|
|
<key>name</key>
|
2016-08-16 23:07:17 +03:00
|
|
|
<string>storage.type.function.arrow.ts</string>
|
2015-11-06 00:14:57 +03:00
|
|
|
</dict>
|
|
|
|
</dict>
|
|
|
|
<key>end</key>
|
2016-08-18 03:51:40 +03:00
|
|
|
<string>(?<!=>)(?=[,\]\)\{\}=;>]|//|$)</string>
|
2015-11-06 00:14:57 +03:00
|
|
|
<key>name</key>
|
|
|
|
<string>meta.type.function.return.ts</string>
|
|
|
|
<key>patterns</key>
|
|
|
|
<array>
|
2016-08-18 01:56:00 +03:00
|
|
|
<dict>
|
|
|
|
<key>begin</key>
|
|
|
|
<string>(?<==>)\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>
|
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>
|
Make sure the identifiers are handled with . and $
Fixes #43, #64, #87, #112, #131, #133, #157, #175, #212, #214, #229
2016-09-01 03:09:03 +03:00
|
|
|
<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>
|
2016-08-16 23:07:17 +03:00
|
|
|
<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>
|
2016-08-16 23:07:17 +03:00
|
|
|
<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>
|
2016-08-18 01:00:09 +03:00
|
|
|
<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>
|
|
|
|
</array>
|
|
|
|
</dict>
|
|
|
|
<key>type-operator</key>
|
|
|
|
<dict>
|
|
|
|
<key>match</key>
|
2016-08-19 21:29:26 +03:00
|
|
|
<string>[&|]</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>(<)</string>
|
2015-11-06 00:14:57 +03:00
|
|
|
<key>beginCaptures</key>
|
|
|
|
<dict>
|
|
|
|
<key>1</key>
|
|
|
|
<dict>
|
|
|
|
<key>name</key>
|
2016-08-16 23:07:17 +03:00
|
|
|
<string>punctuation.definition.typeparameters.begin.ts</string>
|
2015-11-06 00:14:57 +03:00
|
|
|
</dict>
|
|
|
|
</dict>
|
|
|
|
<key>end</key>
|
|
|
|
<string>(?=$)|(>)</string>
|
|
|
|
<key>endCaptures</key>
|
|
|
|
<dict>
|
2016-08-31 21:21:34 +03:00
|
|
|
<key>1</key>
|
2015-11-06 00:14:57 +03:00
|
|
|
<dict>
|
|
|
|
<key>name</key>
|
2016-08-16 23:07:17 +03:00
|
|
|
<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>
|
|
|
|
<dict>
|
|
|
|
<key>match</key>
|
Make sure the identifiers are handled with . and $
Fixes #43, #64, #87, #112, #131, #133, #157, #175, #212, #214, #229
2016-09-01 03:09:03 +03:00
|
|
|
<string>(?<!\.|\$)\b(extends)\b(?!\$)</string>
|
2015-11-06 00:14:57 +03:00
|
|
|
<key>name</key>
|
2016-08-16 23:07:17 +03:00
|
|
|
<string>storage.modifier.ts</string>
|
2015-11-06 00:14:57 +03:00
|
|
|
</dict>
|
|
|
|
<dict>
|
|
|
|
<key>include</key>
|
|
|
|
<string>#comment</string>
|
|
|
|
</dict>
|
|
|
|
<dict>
|
|
|
|
<key>include</key>
|
|
|
|
<string>#type</string>
|
|
|
|
</dict>
|
|
|
|
</array>
|
|
|
|
</dict>
|
2016-08-29 21:28:15 +03:00
|
|
|
<key>type-paren-or-function-parameters</key>
|
2015-11-06 00:14:57 +03:00
|
|
|
<dict>
|
|
|
|
<key>begin</key>
|
Make sure the identifiers are handled with . and $
Fixes #43, #64, #87, #112, #131, #133, #157, #175, #212, #214, #229
2016-09-01 03:09:03 +03:00
|
|
|
<string>(?:(?<!\.|\$)\b(new)\b)?\s*(\()</string>
|
2015-11-06 00:14:57 +03:00
|
|
|
<key>beginCaptures</key>
|
|
|
|
<dict>
|
|
|
|
<key>1</key>
|
|
|
|
<dict>
|
|
|
|
<key>name</key>
|
2016-08-16 23:07:17 +03:00
|
|
|
<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>
|
2016-08-16 23:07:17 +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>
|
|
|
|
<string>meta.type.paren.cover.ts</string>
|
|
|
|
<key>patterns</key>
|
|
|
|
<array>
|
|
|
|
<dict>
|
|
|
|
<key>include</key>
|
|
|
|
<string>#comment</string>
|
|
|
|
</dict>
|
|
|
|
<dict>
|
|
|
|
<key>include</key>
|
|
|
|
<string>#type</string>
|
|
|
|
</dict>
|
|
|
|
<dict>
|
|
|
|
<key>include</key>
|
2016-08-29 21:28:15 +03:00
|
|
|
<string>#function-parameters</string>
|
2015-11-06 00:14:57 +03:00
|
|
|
</dict>
|
|
|
|
</array>
|
|
|
|
</dict>
|
|
|
|
<key>type-primitive</key>
|
|
|
|
<dict>
|
|
|
|
<key>match</key>
|
Make sure the identifiers are handled with . and $
Fixes #43, #64, #87, #112, #131, #133, #157, #175, #212, #214, #229
2016-09-01 03:09:03 +03:00
|
|
|
<string>(?<!\.|\$)\b(string|number|boolean|symbol|any|void|never)\b(?!\$)</string>
|
2015-11-06 00:14:57 +03:00
|
|
|
<key>name</key>
|
2016-08-17 21:09:38 +03:00
|
|
|
<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>#comment</string>
|
|
|
|
</dict>
|
|
|
|
</array>
|
|
|
|
</dict>
|
|
|
|
<key>undefined-literal</key>
|
|
|
|
<dict>
|
|
|
|
<key>match</key>
|
Make sure the identifiers are handled with . and $
Fixes #43, #64, #87, #112, #131, #133, #157, #175, #212, #214, #229
2016-09-01 03:09:03 +03:00
|
|
|
<string>(?<!\.|\$)\bundefined\b(?!\$)</string>
|
2015-11-06 00:14:57 +03:00
|
|
|
<key>name</key>
|
2016-08-12 01:38:31 +03:00
|
|
|
<string>constant.language.undefined.ts</string>
|
2015-11-06 00:14:57 +03:00
|
|
|
</dict>
|
|
|
|
<key>var-expr</key>
|
|
|
|
<dict>
|
|
|
|
<key>begin</key>
|
Make sure the identifiers are handled with . and $
Fixes #43, #64, #87, #112, #131, #133, #157, #175, #212, #214, #229
2016-09-01 03:09:03 +03:00
|
|
|
<string>(?<!\.|\$)(?:(\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>
|
2016-08-19 21:29:26 +03:00
|
|
|
<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-08-31 23:06:52 +03:00
|
|
|
<string>(?=$|;|})</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>
|
|
|
|
</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>
|
Make sure the identifiers are handled with . and $
Fixes #43, #64, #87, #112, #131, #133, #157, #175, #212, #214, #229
2016-09-01 03:09:03 +03:00
|
|
|
<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>
|
2016-08-16 23:07:17 +03:00
|
|
|
<string>variable.other.readwrite.ts</string>
|
2015-11-06 00:14:57 +03:00
|
|
|
</dict>
|
|
|
|
</dict>
|
|
|
|
<key>end</key>
|
2016-08-31 23:06:52 +03:00
|
|
|
<string>(?=$|[;,}])</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>
|
2016-08-19 21:29:26 +03:00
|
|
|
<string>#variable-initializer</string>
|
2015-11-06 00:14:57 +03:00
|
|
|
</dict>
|
2016-01-28 01:54:53 +03:00
|
|
|
<dict>
|
2016-08-19 21:29:26 +03:00
|
|
|
<key>begin</key>
|
|
|
|
<string>\G</string>
|
|
|
|
<key>end</key>
|
2016-08-31 23:06:52 +03:00
|
|
|
<string>(?!\G)(?=$|[;,=}])</string>
|
2016-08-19 21:29:26 +03:00
|
|
|
<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>
|
2016-08-19 21:29:26 +03:00
|
|
|
<string>(?<!=|!)(=)(?!=)</string>
|
2015-11-06 00:14:57 +03:00
|
|
|
<key>beginCaptures</key>
|
|
|
|
<dict>
|
|
|
|
<key>1</key>
|
|
|
|
<dict>
|
|
|
|
<key>name</key>
|
2016-08-16 23:07:17 +03:00
|
|
|
<string>keyword.operator.assignment.ts</string>
|
2015-11-06 00:14:57 +03:00
|
|
|
</dict>
|
|
|
|
</dict>
|
|
|
|
<key>end</key>
|
2016-08-31 23:06:52 +03:00
|
|
|
<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>
|