5609 строки
177 KiB
Plaintext
5609 строки
177 KiB
Plaintext
<?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>name</key>
|
|
<string>TypeScriptReact</string>
|
|
<key>scopeName</key>
|
|
<string>source.tsx</string>
|
|
<key>fileTypes</key>
|
|
<array>
|
|
<string>tsx</string>
|
|
</array>
|
|
<key>uuid</key>
|
|
<string>805375ec-d614-41f5-8993-5843fe63ea82</string>
|
|
<key>patterns</key>
|
|
<array>
|
|
<dict>
|
|
<key>include</key>
|
|
<string>#statements</string>
|
|
</dict>
|
|
</array>
|
|
<key>repository</key>
|
|
<dict>
|
|
<key>statements</key>
|
|
<dict>
|
|
<key>patterns</key>
|
|
<array>
|
|
<dict>
|
|
<key>include</key>
|
|
<string>#string</string>
|
|
</dict>
|
|
<dict>
|
|
<key>include</key>
|
|
<string>#regex</string>
|
|
</dict>
|
|
<dict>
|
|
<key>include</key>
|
|
<string>#template</string>
|
|
</dict>
|
|
<dict>
|
|
<key>include</key>
|
|
<string>#comment</string>
|
|
</dict>
|
|
<dict>
|
|
<key>include</key>
|
|
<string>#literal</string>
|
|
</dict>
|
|
<dict>
|
|
<key>include</key>
|
|
<string>#declaration</string>
|
|
</dict>
|
|
<dict>
|
|
<key>include</key>
|
|
<string>#switch-statement</string>
|
|
</dict>
|
|
<dict>
|
|
<key>include</key>
|
|
<string>#for-loop</string>
|
|
</dict>
|
|
<dict>
|
|
<key>include</key>
|
|
<string>#after-operator-block</string>
|
|
</dict>
|
|
<dict>
|
|
<key>include</key>
|
|
<string>#decl-block</string>
|
|
</dict>
|
|
<dict>
|
|
<key>include</key>
|
|
<string>#control-statement</string>
|
|
</dict>
|
|
<dict>
|
|
<key>include</key>
|
|
<string>#expression</string>
|
|
</dict>
|
|
<dict>
|
|
<key>include</key>
|
|
<string>#punctuation-semicolon</string>
|
|
</dict>
|
|
</array>
|
|
</dict>
|
|
<key>var-expr</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>meta.var.expr.tsx</string>
|
|
<key>begin</key>
|
|
<string>(?<!\.|\$)(?:(\bexport)\s+)?\b(var|let|const(?!\s+enum\b))\b(?!\$)</string>
|
|
<key>beginCaptures</key>
|
|
<dict>
|
|
<key>1</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>keyword.control.export.tsx</string>
|
|
</dict>
|
|
<key>2</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>storage.type.tsx</string>
|
|
</dict>
|
|
</dict>
|
|
<key>end</key>
|
|
<string>(?=$|;|}|(\s+(of|in)\s+))</string>
|
|
<key>patterns</key>
|
|
<array>
|
|
<dict>
|
|
<key>include</key>
|
|
<string>#destructuring-variable</string>
|
|
</dict>
|
|
<dict>
|
|
<key>include</key>
|
|
<string>#var-single-variable</string>
|
|
</dict>
|
|
<dict>
|
|
<key>include</key>
|
|
<string>#comment</string>
|
|
</dict>
|
|
<dict>
|
|
<key>include</key>
|
|
<string>#punctuation-comma</string>
|
|
</dict>
|
|
</array>
|
|
</dict>
|
|
<key>var-single-variable</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>meta.var-single-variable.expr.tsx</string>
|
|
<key>begin</key>
|
|
<string>([_$[:alpha:]][_$[:alnum:]]*)</string>
|
|
<key>beginCaptures</key>
|
|
<dict>
|
|
<key>1</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>variable.other.readwrite.tsx</string>
|
|
</dict>
|
|
</dict>
|
|
<key>end</key>
|
|
<string>(?=$|[;,}]|(\s+(of|in)\s+))</string>
|
|
<key>patterns</key>
|
|
<array>
|
|
<dict>
|
|
<key>include</key>
|
|
<string>#variable-initializer</string>
|
|
</dict>
|
|
<dict>
|
|
<key>begin</key>
|
|
<string>\G</string>
|
|
<key>end</key>
|
|
<string>(?!\G)(?=$|[;,=}]|(\s+(of|in)\s+))</string>
|
|
<key>patterns</key>
|
|
<array>
|
|
<dict>
|
|
<key>include</key>
|
|
<string>#type-annotation</string>
|
|
</dict>
|
|
<dict>
|
|
<key>include</key>
|
|
<string>#string</string>
|
|
</dict>
|
|
<dict>
|
|
<key>include</key>
|
|
<string>#comment</string>
|
|
</dict>
|
|
</array>
|
|
</dict>
|
|
</array>
|
|
</dict>
|
|
<key>destructuring-variable</key>
|
|
<dict>
|
|
<key>patterns</key>
|
|
<array>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>meta.object-binding-pattern-variable.tsx</string>
|
|
<key>begin</key>
|
|
<string>(?<!=|:|of|in)\s*(\{)</string>
|
|
<key>beginCaptures</key>
|
|
<dict>
|
|
<key>1</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>punctuation.definition.binding-pattern.object.tsx</string>
|
|
</dict>
|
|
</dict>
|
|
<key>end</key>
|
|
<string>(?=$|[;,}]|(\s+(of|in)\s+))</string>
|
|
<key>patterns</key>
|
|
<array>
|
|
<dict>
|
|
<key>include</key>
|
|
<string>#variable-initializer</string>
|
|
</dict>
|
|
<dict>
|
|
<key>begin</key>
|
|
<string>(?<=\{)</string>
|
|
<key>end</key>
|
|
<string>(?=$|[;,=}]|(\s+(of|in)\s+))</string>
|
|
<key>patterns</key>
|
|
<array>
|
|
<dict>
|
|
<key>begin</key>
|
|
<string>(?<=\{)</string>
|
|
<key>end</key>
|
|
<string>\}</string>
|
|
<key>endCaptures</key>
|
|
<dict>
|
|
<key>0</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>punctuation.definition.binding-pattern.object.tsx</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>name</key>
|
|
<string>meta.array-binding-pattern-variable.tsx</string>
|
|
<key>begin</key>
|
|
<string>(?<!=|:|of|in)\s*(\[)</string>
|
|
<key>beginCaptures</key>
|
|
<dict>
|
|
<key>1</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>punctuation.definition.binding-pattern.array.tsx</string>
|
|
</dict>
|
|
</dict>
|
|
<key>end</key>
|
|
<string>(?=$|[;,}]|(\s+(of|in)\s+))</string>
|
|
<key>patterns</key>
|
|
<array>
|
|
<dict>
|
|
<key>include</key>
|
|
<string>#variable-initializer</string>
|
|
</dict>
|
|
<dict>
|
|
<key>begin</key>
|
|
<string>(?<=\[)</string>
|
|
<key>end</key>
|
|
<string>(?=$|[;,=}]|(\s+(of|in)\s+))</string>
|
|
<key>patterns</key>
|
|
<array>
|
|
<dict>
|
|
<key>begin</key>
|
|
<string>(?<=\[)</string>
|
|
<key>end</key>
|
|
<string>\]</string>
|
|
<key>endCaptures</key>
|
|
<dict>
|
|
<key>0</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>punctuation.definition.binding-pattern.array.tsx</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>
|
|
<key>object-binding-element</key>
|
|
<dict>
|
|
<key>patterns</key>
|
|
<array>
|
|
<dict>
|
|
<key>include</key>
|
|
<string>#comment</string>
|
|
</dict>
|
|
<dict>
|
|
<key>begin</key>
|
|
<string>([_$[:alpha:]][_$[:alnum:]]*)\s*(:)</string>
|
|
<key>beginCaptures</key>
|
|
<dict>
|
|
<key>1</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>variable.object.property.tsx</string>
|
|
</dict>
|
|
<key>2</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>punctuation.destructuring.tsx</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>name</key>
|
|
<string>variable.other.readwrite.tsx</string>
|
|
<key>match</key>
|
|
<string>([_$[:alpha:]][_$[:alnum:]]*)</string>
|
|
</dict>
|
|
<dict>
|
|
<key>include</key>
|
|
<string>#variable-initializer</string>
|
|
</dict>
|
|
</array>
|
|
</dict>
|
|
<dict>
|
|
<key>include</key>
|
|
<string>#object-binding-pattern</string>
|
|
</dict>
|
|
<dict>
|
|
<key>include</key>
|
|
<string>#destructuring-variable-rest</string>
|
|
</dict>
|
|
<dict>
|
|
<key>include</key>
|
|
<string>#variable-initializer</string>
|
|
</dict>
|
|
<dict>
|
|
<key>include</key>
|
|
<string>#punctuation-comma</string>
|
|
</dict>
|
|
</array>
|
|
</dict>
|
|
<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>include</key>
|
|
<string>#destructuring-variable-rest</string>
|
|
</dict>
|
|
<dict>
|
|
<key>include</key>
|
|
<string>#variable-initializer</string>
|
|
</dict>
|
|
<dict>
|
|
<key>include</key>
|
|
<string>#punctuation-comma</string>
|
|
</dict>
|
|
</array>
|
|
</dict>
|
|
<key>destructuring-variable-rest</key>
|
|
<dict>
|
|
<key>match</key>
|
|
<string>(?:(\.\.\.)\s*)?([_$[:alpha:]][_$[:alnum:]]*)</string>
|
|
<key>captures</key>
|
|
<dict>
|
|
<key>1</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>keyword.operator.rest.tsx</string>
|
|
</dict>
|
|
<key>2</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>variable.other.readwrite.tsx</string>
|
|
</dict>
|
|
</dict>
|
|
</dict>
|
|
<key>object-binding-pattern</key>
|
|
<dict>
|
|
<key>begin</key>
|
|
<string>(?:(\.\.\.)\s*)?(\{)</string>
|
|
<key>beginCaptures</key>
|
|
<dict>
|
|
<key>1</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>keyword.operator.rest.tsx</string>
|
|
</dict>
|
|
<key>2</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>punctuation.definition.binding-pattern.object.tsx</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.tsx</string>
|
|
</dict>
|
|
</dict>
|
|
<key>patterns</key>
|
|
<array>
|
|
<dict>
|
|
<key>include</key>
|
|
<string>#object-binding-element</string>
|
|
</dict>
|
|
</array>
|
|
</dict>
|
|
<key>array-binding-pattern</key>
|
|
<dict>
|
|
<key>begin</key>
|
|
<string>(?:(\.\.\.)\s*)?(\[)</string>
|
|
<key>beginCaptures</key>
|
|
<dict>
|
|
<key>1</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>keyword.operator.rest.tsx</string>
|
|
</dict>
|
|
<key>2</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>punctuation.definition.binding-pattern.array.tsx</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.tsx</string>
|
|
</dict>
|
|
</dict>
|
|
<key>patterns</key>
|
|
<array>
|
|
<dict>
|
|
<key>include</key>
|
|
<string>#array-binding-element</string>
|
|
</dict>
|
|
</array>
|
|
</dict>
|
|
<key>ternary-expression</key>
|
|
<dict>
|
|
<key>begin</key>
|
|
<string>(?=\?)</string>
|
|
<key>end</key>
|
|
<string>(?=$|[;,})\]])</string>
|
|
<key>patterns</key>
|
|
<array>
|
|
<dict>
|
|
<key>include</key>
|
|
<string>#ternary-operator</string>
|
|
</dict>
|
|
<dict>
|
|
<key>include</key>
|
|
<string>#expression</string>
|
|
</dict>
|
|
</array>
|
|
</dict>
|
|
<key>ternary-operator</key>
|
|
<dict>
|
|
<key>begin</key>
|
|
<string>(\?)</string>
|
|
<key>beginCaptures</key>
|
|
<dict>
|
|
<key>0</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>keyword.operator.ternary.tsx</string>
|
|
</dict>
|
|
</dict>
|
|
<key>end</key>
|
|
<string>(:)</string>
|
|
<key>endCaptures</key>
|
|
<dict>
|
|
<key>0</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>keyword.operator.ternary.tsx</string>
|
|
</dict>
|
|
</dict>
|
|
<key>patterns</key>
|
|
<array>
|
|
<dict>
|
|
<key>include</key>
|
|
<string>#expression</string>
|
|
</dict>
|
|
</array>
|
|
</dict>
|
|
<key>expression</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>meta.expression.tsx</string>
|
|
<key>patterns</key>
|
|
<array>
|
|
<dict>
|
|
<key>include</key>
|
|
<string>#jsx</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>#function-declaration</string>
|
|
</dict>
|
|
<dict>
|
|
<key>include</key>
|
|
<string>#class-or-interface-declaration</string>
|
|
</dict>
|
|
<dict>
|
|
<key>include</key>
|
|
<string>#arrow-function</string>
|
|
</dict>
|
|
<dict>
|
|
<key>include</key>
|
|
<string>#cast</string>
|
|
</dict>
|
|
<dict>
|
|
<key>include</key>
|
|
<string>#ternary-expression</string>
|
|
</dict>
|
|
<dict>
|
|
<key>include</key>
|
|
<string>#new-expr</string>
|
|
</dict>
|
|
<dict>
|
|
<key>include</key>
|
|
<string>#object-literal</string>
|
|
</dict>
|
|
<dict>
|
|
<key>include</key>
|
|
<string>#expression-operators</string>
|
|
</dict>
|
|
<dict>
|
|
<key>include</key>
|
|
<string>#support-objects</string>
|
|
</dict>
|
|
<dict>
|
|
<key>include</key>
|
|
<string>#function-call</string>
|
|
</dict>
|
|
<dict>
|
|
<key>include</key>
|
|
<string>#identifiers</string>
|
|
</dict>
|
|
<dict>
|
|
<key>include</key>
|
|
<string>#paren-expression</string>
|
|
</dict>
|
|
<dict>
|
|
<key>include</key>
|
|
<string>#punctuation-comma</string>
|
|
</dict>
|
|
<dict>
|
|
<key>include</key>
|
|
<string>#punctuation-accessor</string>
|
|
</dict>
|
|
</array>
|
|
</dict>
|
|
<key>control-statement</key>
|
|
<dict>
|
|
<key>patterns</key>
|
|
<array>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>keyword.control.trycatch.tsx</string>
|
|
<key>match</key>
|
|
<string>(?<!\.|\$)\b(catch|finally|throw|try)\b(?!\$)</string>
|
|
</dict>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>keyword.control.loop.tsx</string>
|
|
<key>match</key>
|
|
<string>(?<!\.|\$)\b(break|continue|do|goto|while)\b(?!\$)</string>
|
|
</dict>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>keyword.control.flow.tsx</string>
|
|
<key>match</key>
|
|
<string>(?<!\.|\$)\b(return)\b(?!\$)</string>
|
|
</dict>
|
|
<dict>
|
|
<key>match</key>
|
|
<string>(?<!\.|\$)\b(yield)\b(?!\$)(?:\s*(\*))?</string>
|
|
<key>captures</key>
|
|
<dict>
|
|
<key>1</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>keyword.control.flow.tsx</string>
|
|
</dict>
|
|
<key>2</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>keyword.generator.asterisk.tsx</string>
|
|
</dict>
|
|
</dict>
|
|
</dict>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>keyword.control.switch.tsx</string>
|
|
<key>match</key>
|
|
<string>(?<!\.|\$)\b(case|default|switch)\b(?!\$)</string>
|
|
</dict>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>keyword.control.conditional.tsx</string>
|
|
<key>match</key>
|
|
<string>(?<!\.|\$)\b(else|if)\b(?!\$)</string>
|
|
</dict>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>keyword.control.with.tsx</string>
|
|
<key>match</key>
|
|
<string>(?<!\.|\$)\b(with)\b(?!\$)</string>
|
|
</dict>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>keyword.other.debugger.tsx</string>
|
|
<key>match</key>
|
|
<string>(?<!\.|\$)\b(debugger)\b(?!\$)</string>
|
|
</dict>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>storage.modifier.tsx</string>
|
|
<key>match</key>
|
|
<string>(?<!\.|\$)\b(declare)\b(?!\$)</string>
|
|
</dict>
|
|
</array>
|
|
</dict>
|
|
<key>declaration</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>meta.declaration.tsx</string>
|
|
<key>patterns</key>
|
|
<array>
|
|
<dict>
|
|
<key>include</key>
|
|
<string>#decorator</string>
|
|
</dict>
|
|
<dict>
|
|
<key>include</key>
|
|
<string>#var-expr</string>
|
|
</dict>
|
|
<dict>
|
|
<key>include</key>
|
|
<string>#function-declaration</string>
|
|
</dict>
|
|
<dict>
|
|
<key>include</key>
|
|
<string>#class-or-interface-declaration</string>
|
|
</dict>
|
|
<dict>
|
|
<key>include</key>
|
|
<string>#type-declaration</string>
|
|
</dict>
|
|
<dict>
|
|
<key>include</key>
|
|
<string>#enum-declaration</string>
|
|
</dict>
|
|
<dict>
|
|
<key>include</key>
|
|
<string>#namespace-declaration</string>
|
|
</dict>
|
|
<dict>
|
|
<key>include</key>
|
|
<string>#import-equals-declaration</string>
|
|
</dict>
|
|
<dict>
|
|
<key>include</key>
|
|
<string>#import-declaration</string>
|
|
</dict>
|
|
<dict>
|
|
<key>include</key>
|
|
<string>#export-declaration</string>
|
|
</dict>
|
|
</array>
|
|
</dict>
|
|
<key>decorator</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>meta.decorator.tsx</string>
|
|
<key>begin</key>
|
|
<string>(?<!\.|\$)\@</string>
|
|
<key>beginCaptures</key>
|
|
<dict>
|
|
<key>0</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>punctuation.decorator.tsx</string>
|
|
</dict>
|
|
</dict>
|
|
<key>end</key>
|
|
<string>(?=\s)</string>
|
|
<key>patterns</key>
|
|
<array>
|
|
<dict>
|
|
<key>include</key>
|
|
<string>#expression</string>
|
|
</dict>
|
|
</array>
|
|
</dict>
|
|
<key>type-declaration</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>meta.type.declaration.tsx</string>
|
|
<key>begin</key>
|
|
<string>(?<!\.|\$)(?:(\bexport)\s+)?\b(type)\b\s+([_$[:alpha:]][_$[:alnum:]]*)\s*</string>
|
|
<key>beginCaptures</key>
|
|
<dict>
|
|
<key>1</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>keyword.control.export.tsx</string>
|
|
</dict>
|
|
<key>2</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>storage.type.type.tsx</string>
|
|
</dict>
|
|
<key>3</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>entity.name.type.tsx</string>
|
|
</dict>
|
|
</dict>
|
|
<key>end</key>
|
|
<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>
|
|
<key>patterns</key>
|
|
<array>
|
|
<dict>
|
|
<key>include</key>
|
|
<string>#comment</string>
|
|
</dict>
|
|
<dict>
|
|
<key>include</key>
|
|
<string>#type-parameters</string>
|
|
</dict>
|
|
<dict>
|
|
<key>include</key>
|
|
<string>#type</string>
|
|
</dict>
|
|
<dict>
|
|
<key>match</key>
|
|
<string>(=)\s*</string>
|
|
<key>captures</key>
|
|
<dict>
|
|
<key>1</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>keyword.operator.assignment.tsx</string>
|
|
</dict>
|
|
</dict>
|
|
</dict>
|
|
</array>
|
|
</dict>
|
|
<key>enum-declaration</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>meta.enum.declaration.tsx</string>
|
|
<key>match</key>
|
|
<string>(?<!\.|\$)(?:(\bexport)\s+)?(?:\b(const)\s+)?\b(enum)\s+([_$[:alpha:]][_$[:alnum:]]*)</string>
|
|
<key>captures</key>
|
|
<dict>
|
|
<key>1</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>keyword.control.export.tsx</string>
|
|
</dict>
|
|
<key>2</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>storage.modifier.tsx</string>
|
|
</dict>
|
|
<key>3</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>storage.type.enum.tsx</string>
|
|
</dict>
|
|
<key>4</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>entity.name.type.enum.tsx</string>
|
|
</dict>
|
|
</dict>
|
|
</dict>
|
|
<key>namespace-declaration</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>meta.namespace.declaration.tsx</string>
|
|
<key>begin</key>
|
|
<string>(?<!\.|\$)(?:(\bexport)\s+)?\b(namespace|module)\s+</string>
|
|
<key>beginCaptures</key>
|
|
<dict>
|
|
<key>1</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>keyword.control.export.tsx</string>
|
|
</dict>
|
|
<key>2</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>storage.type.namespace.tsx</string>
|
|
</dict>
|
|
</dict>
|
|
<key>end</key>
|
|
<string>(?=$|\{)</string>
|
|
<key>patterns</key>
|
|
<array>
|
|
<dict>
|
|
<key>include</key>
|
|
<string>#comment</string>
|
|
</dict>
|
|
<dict>
|
|
<key>include</key>
|
|
<string>#string</string>
|
|
</dict>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>entity.name.type.module.tsx</string>
|
|
<key>match</key>
|
|
<string>([_$[:alpha:]][_$[:alnum:]]*)</string>
|
|
</dict>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>punctuation.accessor.tsx</string>
|
|
<key>match</key>
|
|
<string>\.</string>
|
|
</dict>
|
|
</array>
|
|
</dict>
|
|
<key>import-equals-declaration</key>
|
|
<dict>
|
|
<key>patterns</key>
|
|
<array>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>meta.import-equals.external.tsx</string>
|
|
<key>begin</key>
|
|
<string>(?<!\.|\$)(?:(\bexport)\s+)?\b(import)\s+([_$[:alpha:]][_$[:alnum:]]*)\s*(=)\s*(require)\s*(\()</string>
|
|
<key>beginCaptures</key>
|
|
<dict>
|
|
<key>1</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>keyword.control.export.tsx</string>
|
|
</dict>
|
|
<key>2</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>keyword.control.import.tsx</string>
|
|
</dict>
|
|
<key>3</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>variable.other.readwrite.alias.tsx</string>
|
|
</dict>
|
|
<key>4</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>keyword.operator.assignment.tsx</string>
|
|
</dict>
|
|
<key>5</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>keyword.control.require.tsx</string>
|
|
</dict>
|
|
<key>6</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>meta.brace.round.tsx</string>
|
|
</dict>
|
|
</dict>
|
|
<key>end</key>
|
|
<string>\)</string>
|
|
<key>endCaptures</key>
|
|
<dict>
|
|
<key>0</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>meta.brace.round.tsx</string>
|
|
</dict>
|
|
</dict>
|
|
<key>patterns</key>
|
|
<array>
|
|
<dict>
|
|
<key>include</key>
|
|
<string>#comment</string>
|
|
</dict>
|
|
<dict>
|
|
<key>include</key>
|
|
<string>#string</string>
|
|
</dict>
|
|
</array>
|
|
</dict>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>meta.import-equals.internal.tsx</string>
|
|
<key>begin</key>
|
|
<string>(?<!\.|\$)(?:(\bexport)\s+)?\b(import)\s+([_$[:alpha:]][_$[:alnum:]]*)\s*(=)\s*(?!require\b)</string>
|
|
<key>beginCaptures</key>
|
|
<dict>
|
|
<key>1</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>keyword.control.export.tsx</string>
|
|
</dict>
|
|
<key>2</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>keyword.control.import.tsx</string>
|
|
</dict>
|
|
<key>3</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>variable.other.readwrite.alias.tsx</string>
|
|
</dict>
|
|
<key>4</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>keyword.operator.assignment.tsx</string>
|
|
</dict>
|
|
</dict>
|
|
<key>end</key>
|
|
<string>(?=;|$)</string>
|
|
<key>patterns</key>
|
|
<array>
|
|
<dict>
|
|
<key>include</key>
|
|
<string>#comment</string>
|
|
</dict>
|
|
<dict>
|
|
<key>match</key>
|
|
<string>([_$[:alpha:]][_$[:alnum:]]*)\s*(\.)</string>
|
|
<key>captures</key>
|
|
<dict>
|
|
<key>1</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>entity.name.type.module.tsx</string>
|
|
</dict>
|
|
<key>2</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>punctuation.accessor.tsx</string>
|
|
</dict>
|
|
</dict>
|
|
</dict>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>variable.other.readwrite.tsx</string>
|
|
<key>match</key>
|
|
<string>([_$[:alpha:]][_$[:alnum:]]*)</string>
|
|
</dict>
|
|
</array>
|
|
</dict>
|
|
</array>
|
|
</dict>
|
|
<key>import-declaration</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>meta.import.tsx</string>
|
|
<key>begin</key>
|
|
<string>(?<!\.|\$)(?:(\bexport)\s+)?\b(import)(?!(\s*:)|(\$))\b</string>
|
|
<key>beginCaptures</key>
|
|
<dict>
|
|
<key>1</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>keyword.control.export.tsx</string>
|
|
</dict>
|
|
<key>2</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>keyword.control.import.tsx</string>
|
|
</dict>
|
|
</dict>
|
|
<key>end</key>
|
|
<string>(?=;|$)</string>
|
|
<key>patterns</key>
|
|
<array>
|
|
<dict>
|
|
<key>include</key>
|
|
<string>#import-export-declaration</string>
|
|
</dict>
|
|
</array>
|
|
</dict>
|
|
<key>export-declaration</key>
|
|
<dict>
|
|
<key>patterns</key>
|
|
<array>
|
|
<dict>
|
|
<key>match</key>
|
|
<string>(?<!\.|\$)\b(export)\s+(as)\s+(namespace)\s+([_$[:alpha:]][_$[:alnum:]]*)</string>
|
|
<key>captures</key>
|
|
<dict>
|
|
<key>1</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>keyword.control.export.tsx</string>
|
|
</dict>
|
|
<key>2</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>keyword.control.as.tsx</string>
|
|
</dict>
|
|
<key>3</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>storage.type.namespace.tsx</string>
|
|
</dict>
|
|
<key>4</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>entity.name.type.module.tsx</string>
|
|
</dict>
|
|
</dict>
|
|
</dict>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>meta.export.default.tsx</string>
|
|
<key>begin</key>
|
|
<string>(?<!\.|\$)\b(export)(?:(?:\s*(=))|(?:\s+(default)(?=\s+)))</string>
|
|
<key>beginCaptures</key>
|
|
<dict>
|
|
<key>1</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>keyword.control.export.tsx</string>
|
|
</dict>
|
|
<key>2</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>keyword.operator.assignment.tsx</string>
|
|
</dict>
|
|
<key>3</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>keyword.control.default.tsx</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>patterns</key>
|
|
<array>
|
|
<dict>
|
|
<key>include</key>
|
|
<string>#expression</string>
|
|
</dict>
|
|
</array>
|
|
</dict>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>meta.export.tsx</string>
|
|
<key>begin</key>
|
|
<string>(?<!\.|\$)\b(export)(?!(\s*:)|(\$))\b</string>
|
|
<key>beginCaptures</key>
|
|
<dict>
|
|
<key>0</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>keyword.control.export.tsx</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>patterns</key>
|
|
<array>
|
|
<dict>
|
|
<key>include</key>
|
|
<string>#import-export-declaration</string>
|
|
</dict>
|
|
</array>
|
|
</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>name</key>
|
|
<string>keyword.control.from.tsx</string>
|
|
<key>match</key>
|
|
<string>\bfrom\b</string>
|
|
</dict>
|
|
<dict>
|
|
<key>include</key>
|
|
<string>#import-export-clause</string>
|
|
</dict>
|
|
</array>
|
|
</dict>
|
|
<key>import-export-block</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>meta.block.tsx</string>
|
|
<key>begin</key>
|
|
<string>\{</string>
|
|
<key>beginCaptures</key>
|
|
<dict>
|
|
<key>0</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>punctuation.definition.block.tsx</string>
|
|
</dict>
|
|
</dict>
|
|
<key>end</key>
|
|
<string>\}</string>
|
|
<key>endCaptures</key>
|
|
<dict>
|
|
<key>0</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>punctuation.definition.block.tsx</string>
|
|
</dict>
|
|
</dict>
|
|
<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>comment</key>
|
|
<string>(default|*|name) as alias</string>
|
|
<key>match</key>
|
|
<string>(?x) (?: \b(default)\b | (\*) | ([_$[:alpha:]][_$[:alnum:]]*)) \s+ (as) \s+ (?: (\b default \b | \*) | ([_$[:alpha:]][_$[:alnum:]]*))</string>
|
|
<key>captures</key>
|
|
<dict>
|
|
<key>1</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>keyword.control.default.tsx</string>
|
|
</dict>
|
|
<key>2</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>constant.language.import-export-all.tsx</string>
|
|
</dict>
|
|
<key>3</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>variable.other.readwrite.tsx</string>
|
|
</dict>
|
|
<key>4</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>keyword.control.as.tsx</string>
|
|
</dict>
|
|
<key>5</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>invalid.illegal.tsx</string>
|
|
</dict>
|
|
<key>6</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>variable.other.readwrite.alias.tsx</string>
|
|
</dict>
|
|
</dict>
|
|
</dict>
|
|
<dict>
|
|
<key>include</key>
|
|
<string>#punctuation-comma</string>
|
|
</dict>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>constant.language.import-export-all.tsx</string>
|
|
<key>match</key>
|
|
<string>\*</string>
|
|
</dict>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>keyword.control.default.tsx</string>
|
|
<key>match</key>
|
|
<string>\b(default)\b</string>
|
|
</dict>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>variable.other.readwrite.alias.tsx</string>
|
|
<key>match</key>
|
|
<string>([_$[:alpha:]][_$[:alnum:]]*)</string>
|
|
</dict>
|
|
</array>
|
|
</dict>
|
|
<key>class-or-interface-declaration</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>meta.class.tsx</string>
|
|
<key>begin</key>
|
|
<string>(?<!\.|\$)\b(?:(export)\s+)?\b(?:(abstract)\s+)?\b(?:(class)|(interface))\b</string>
|
|
<key>beginCaptures</key>
|
|
<dict>
|
|
<key>1</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>keyword.control.export.tsx</string>
|
|
</dict>
|
|
<key>2</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>storage.modifier.tsx</string>
|
|
</dict>
|
|
<key>3</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>storage.type.class.tsx</string>
|
|
</dict>
|
|
<key>4</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>storage.type.interface.tsx</string>
|
|
</dict>
|
|
</dict>
|
|
<key>end</key>
|
|
<string>(?<=\})</string>
|
|
<key>endCaptures</key>
|
|
<dict>
|
|
<key>1</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>punctuation.definition.block.tsx</string>
|
|
</dict>
|
|
</dict>
|
|
<key>patterns</key>
|
|
<array>
|
|
<dict>
|
|
<key>include</key>
|
|
<string>#comment</string>
|
|
</dict>
|
|
<dict>
|
|
<key>include</key>
|
|
<string>#class-or-interface-heritage</string>
|
|
</dict>
|
|
<dict>
|
|
<key>match</key>
|
|
<string>[_$[:alpha:]][_$[:alnum:]]*</string>
|
|
<key>captures</key>
|
|
<dict>
|
|
<key>0</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>entity.name.class.tsx</string>
|
|
</dict>
|
|
</dict>
|
|
</dict>
|
|
<dict>
|
|
<key>include</key>
|
|
<string>#type-parameters</string>
|
|
</dict>
|
|
<dict>
|
|
<key>include</key>
|
|
<string>#class-or-interface-body</string>
|
|
</dict>
|
|
</array>
|
|
</dict>
|
|
<key>class-or-interface-heritage</key>
|
|
<dict>
|
|
<key>begin</key>
|
|
<string>(?<!\.|\$)(?:\b(extends|implements)\b)(?!\$)</string>
|
|
<key>beginCaptures</key>
|
|
<dict>
|
|
<key>1</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>storage.modifier.tsx</string>
|
|
</dict>
|
|
</dict>
|
|
<key>end</key>
|
|
<string>(?=\{)</string>
|
|
<key>endCaptures</key>
|
|
<dict>
|
|
<key>1</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>punctuation.definition.block.tsx</string>
|
|
</dict>
|
|
</dict>
|
|
<key>patterns</key>
|
|
<array>
|
|
<dict>
|
|
<key>include</key>
|
|
<string>#comment</string>
|
|
</dict>
|
|
<dict>
|
|
<key>include</key>
|
|
<string>#class-or-interface-heritage</string>
|
|
</dict>
|
|
<dict>
|
|
<key>include</key>
|
|
<string>#type-parameters</string>
|
|
</dict>
|
|
<dict>
|
|
<key>match</key>
|
|
<string>([_$[:alpha:]][_$[:alnum:]]*)\s*(\.)</string>
|
|
<key>captures</key>
|
|
<dict>
|
|
<key>1</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>entity.name.type.module.tsx</string>
|
|
</dict>
|
|
<key>2</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>punctuation.accessor.tsx</string>
|
|
</dict>
|
|
</dict>
|
|
</dict>
|
|
<dict>
|
|
<key>match</key>
|
|
<string>([_$[:alpha:]][_$[:alnum:]]*)</string>
|
|
<key>captures</key>
|
|
<dict>
|
|
<key>1</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>entity.other.inherited-class.tsx</string>
|
|
</dict>
|
|
</dict>
|
|
</dict>
|
|
</array>
|
|
</dict>
|
|
<key>class-or-interface-body</key>
|
|
<dict>
|
|
<key>begin</key>
|
|
<string>\{</string>
|
|
<key>beginCaptures</key>
|
|
<dict>
|
|
<key>0</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>punctuation.definition.block.tsx</string>
|
|
</dict>
|
|
</dict>
|
|
<key>end</key>
|
|
<string>\}</string>
|
|
<key>endCaptures</key>
|
|
<dict>
|
|
<key>0</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>punctuation.definition.block.tsx</string>
|
|
</dict>
|
|
</dict>
|
|
<key>patterns</key>
|
|
<array>
|
|
<dict>
|
|
<key>include</key>
|
|
<string>#string</string>
|
|
</dict>
|
|
<dict>
|
|
<key>include</key>
|
|
<string>#comment</string>
|
|
</dict>
|
|
<dict>
|
|
<key>include</key>
|
|
<string>#decorator</string>
|
|
</dict>
|
|
<dict>
|
|
<key>include</key>
|
|
<string>#field-declaration</string>
|
|
</dict>
|
|
<dict>
|
|
<key>include</key>
|
|
<string>#method-declaration</string>
|
|
</dict>
|
|
<dict>
|
|
<key>include</key>
|
|
<string>#indexer-declaration</string>
|
|
</dict>
|
|
<dict>
|
|
<key>include</key>
|
|
<string>#type-annotation</string>
|
|
</dict>
|
|
<dict>
|
|
<key>include</key>
|
|
<string>#variable-initializer</string>
|
|
</dict>
|
|
<dict>
|
|
<key>include</key>
|
|
<string>#access-modifier</string>
|
|
</dict>
|
|
<dict>
|
|
<key>include</key>
|
|
<string>#property-accessor</string>
|
|
</dict>
|
|
<dict>
|
|
<key>include</key>
|
|
<string>#expression</string>
|
|
</dict>
|
|
<dict>
|
|
<key>include</key>
|
|
<string>#punctuation-comma</string>
|
|
</dict>
|
|
<dict>
|
|
<key>include</key>
|
|
<string>#punctuation-semicolon</string>
|
|
</dict>
|
|
</array>
|
|
</dict>
|
|
<key>type-object</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>meta.object.type.tsx</string>
|
|
<key>begin</key>
|
|
<string>\{</string>
|
|
<key>beginCaptures</key>
|
|
<dict>
|
|
<key>0</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>punctuation.definition.block.tsx</string>
|
|
</dict>
|
|
</dict>
|
|
<key>end</key>
|
|
<string>\}</string>
|
|
<key>endCaptures</key>
|
|
<dict>
|
|
<key>0</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>punctuation.definition.block.tsx</string>
|
|
</dict>
|
|
</dict>
|
|
<key>patterns</key>
|
|
<array>
|
|
<dict>
|
|
<key>include</key>
|
|
<string>#type-object-members</string>
|
|
</dict>
|
|
</array>
|
|
</dict>
|
|
<key>type-object-members</key>
|
|
<dict>
|
|
<key>patterns</key>
|
|
<array>
|
|
<dict>
|
|
<key>include</key>
|
|
<string>#comment</string>
|
|
</dict>
|
|
<dict>
|
|
<key>include</key>
|
|
<string>#field-declaration</string>
|
|
</dict>
|
|
<dict>
|
|
<key>include</key>
|
|
<string>#method-declaration</string>
|
|
</dict>
|
|
<dict>
|
|
<key>include</key>
|
|
<string>#indexer-declaration</string>
|
|
</dict>
|
|
<dict>
|
|
<key>include</key>
|
|
<string>#type-annotation</string>
|
|
</dict>
|
|
<dict>
|
|
<key>begin</key>
|
|
<string>\.\.\.</string>
|
|
<key>beginCaptures</key>
|
|
<dict>
|
|
<key>0</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>keyword.operator.spread.tsx</string>
|
|
</dict>
|
|
</dict>
|
|
<key>end</key>
|
|
<string>(?=\}|;|,|$)|(?<=\})</string>
|
|
<key>patterns</key>
|
|
<array>
|
|
<dict>
|
|
<key>include</key>
|
|
<string>#type</string>
|
|
</dict>
|
|
</array>
|
|
</dict>
|
|
<dict>
|
|
<key>include</key>
|
|
<string>#punctuation-comma</string>
|
|
</dict>
|
|
<dict>
|
|
<key>include</key>
|
|
<string>#punctuation-semicolon</string>
|
|
</dict>
|
|
</array>
|
|
</dict>
|
|
<key>field-declaration</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>meta.field.declaration.tsx</string>
|
|
<key>begin</key>
|
|
<string>(?<!\()(?:(?<!\.|\$)\b(readonly)\s+)?\s*((?:[_$[:alpha:]][_$[:alnum:]]*)|(?:\'[^']*\')|(?:\"[^"]*\"))\s*(\?\s*)?(?=(=|:))</string>
|
|
<key>beginCaptures</key>
|
|
<dict>
|
|
<key>1</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>storage.modifier.tsx</string>
|
|
</dict>
|
|
<key>2</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>variable.object.property.tsx</string>
|
|
</dict>
|
|
<key>3</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>keyword.operator.optional.tsx</string>
|
|
</dict>
|
|
</dict>
|
|
<key>end</key>
|
|
<string>(?=\}|;|,|$)|(?<=\})</string>
|
|
<key>patterns</key>
|
|
<array>
|
|
<dict>
|
|
<key>include</key>
|
|
<string>#variable-initializer</string>
|
|
</dict>
|
|
<dict>
|
|
<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>
|
|
</dict>
|
|
</array>
|
|
</dict>
|
|
<key>method-declaration</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>meta.method.declaration.tsx</string>
|
|
<key>begin</key>
|
|
<string>(?<!\.|\$)(?:\b(abstract)\s+)?(?:\b(public|private|protected)\s+)?(?:\b(async)\s+)?(?:\b(get|set)\s+)?(?:(?:\b(?:(new)|(constructor))\b(?!\$|:))|(?:(\*)\s*)?(?=((([_$[:alpha:]][_$[:alnum:]]*)|(\'[^']*\')|(\"[^"]*\")|(\[[^\]]*\]))\s*(\??))?\s*[\(\<]))</string>
|
|
<key>beginCaptures</key>
|
|
<dict>
|
|
<key>1</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>storage.modifier.tsx</string>
|
|
</dict>
|
|
<key>2</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>storage.modifier.tsx</string>
|
|
</dict>
|
|
<key>3</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>storage.modifier.async.tsx</string>
|
|
</dict>
|
|
<key>4</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>storage.type.property.tsx</string>
|
|
</dict>
|
|
<key>5</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>keyword.operator.new.tsx</string>
|
|
</dict>
|
|
<key>6</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>storage.type.tsx</string>
|
|
</dict>
|
|
<key>7</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>keyword.generator.asterisk.tsx</string>
|
|
</dict>
|
|
</dict>
|
|
<key>end</key>
|
|
<string>(?=\}|;|,)|(?<=\})</string>
|
|
<key>patterns</key>
|
|
<array>
|
|
<dict>
|
|
<key>include</key>
|
|
<string>#method-declaration-name</string>
|
|
</dict>
|
|
<dict>
|
|
<key>include</key>
|
|
<string>#comment</string>
|
|
</dict>
|
|
<dict>
|
|
<key>include</key>
|
|
<string>#type-parameters</string>
|
|
</dict>
|
|
<dict>
|
|
<key>include</key>
|
|
<string>#function-parameters</string>
|
|
</dict>
|
|
<dict>
|
|
<key>include</key>
|
|
<string>#return-type</string>
|
|
</dict>
|
|
<dict>
|
|
<key>include</key>
|
|
<string>#method-overload-declaration</string>
|
|
</dict>
|
|
<dict>
|
|
<key>include</key>
|
|
<string>#decl-block</string>
|
|
</dict>
|
|
</array>
|
|
</dict>
|
|
<key>method-overload-declaration</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>meta.method.overload.declaration.tsx</string>
|
|
<key>begin</key>
|
|
<string>(?<!\.|\$)(?:\b(public|private|protected)\s+)?(?:\b(abstract)\s+)?(?:\b(async)\s+)?(?:\b(get|set)\s+)?(?:(?:\b(?:(new)|(constructor))\b(?!\$|:))|(?:(\*)\s*)?(?=((([_$[:alpha:]][_$[:alnum:]]*)|(\'[^']*\')|(\"[^"]*\")|(\[[^\]]*\]))\s*(\??))?\s*[\(\<]))</string>
|
|
<key>beginCaptures</key>
|
|
<dict>
|
|
<key>1</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>storage.modifier.tsx</string>
|
|
</dict>
|
|
<key>2</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>storage.modifier.tsx</string>
|
|
</dict>
|
|
<key>3</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>storage.modifier.async.tsx</string>
|
|
</dict>
|
|
<key>4</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>storage.type.property.tsx</string>
|
|
</dict>
|
|
<key>5</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>keyword.operator.new.tsx</string>
|
|
</dict>
|
|
<key>6</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>storage.type.tsx</string>
|
|
</dict>
|
|
<key>7</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>keyword.generator.asterisk.tsx</string>
|
|
</dict>
|
|
</dict>
|
|
<key>end</key>
|
|
<string>(?=\(|\<)</string>
|
|
<key>patterns</key>
|
|
<array>
|
|
<dict>
|
|
<key>include</key>
|
|
<string>#method-declaration-name</string>
|
|
</dict>
|
|
</array>
|
|
</dict>
|
|
<key>method-declaration-name</key>
|
|
<dict>
|
|
<key>begin</key>
|
|
<string>\G(?!\(|\<)</string>
|
|
<key>end</key>
|
|
<string>(?=\(|\<)</string>
|
|
<key>patterns</key>
|
|
<array>
|
|
<dict>
|
|
<key>include</key>
|
|
<string>#string</string>
|
|
</dict>
|
|
<dict>
|
|
<key>include</key>
|
|
<string>#array-literal</string>
|
|
</dict>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>entity.name.function.tsx</string>
|
|
<key>match</key>
|
|
<string>[_$[:alpha:]][_$[:alnum:]]*</string>
|
|
</dict>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>keyword.operator.optional.tsx</string>
|
|
<key>match</key>
|
|
<string>\?</string>
|
|
</dict>
|
|
</array>
|
|
</dict>
|
|
<key>indexer-declaration</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>meta.indexer.declaration.tsx</string>
|
|
<key>begin</key>
|
|
<string>(?:(?<!\.|\$)\b(readonly)\s*)?(\[)(?=\s*[_$[:alpha:]][_$[:alnum:]]*\s*[:\]])</string>
|
|
<key>beginCaptures</key>
|
|
<dict>
|
|
<key>1</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>storage.modifier.tsx</string>
|
|
</dict>
|
|
<key>2</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>meta.brace.square.tsx</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.tsx</string>
|
|
</dict>
|
|
<key>2</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>keyword.operator.optional.tsx</string>
|
|
</dict>
|
|
</dict>
|
|
<key>patterns</key>
|
|
<array>
|
|
<dict>
|
|
<key>include</key>
|
|
<string>#type-annotation</string>
|
|
</dict>
|
|
<dict>
|
|
<key>include</key>
|
|
<string>#indexer-parameter</string>
|
|
</dict>
|
|
</array>
|
|
</dict>
|
|
<key>indexer-parameter</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>meta.indexer.parameter.tsx</string>
|
|
<key>match</key>
|
|
<string>([_$[:alpha:]][_$[:alnum:]]*)</string>
|
|
<key>captures</key>
|
|
<dict>
|
|
<key>1</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>variable.parameter.tsx</string>
|
|
</dict>
|
|
</dict>
|
|
</dict>
|
|
<key>function-declaration</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>meta.function.tsx</string>
|
|
<key>begin</key>
|
|
<string>(?<!\.|\$)\b(?:(export)\s+)?(?:(async)\s+)?(function\b)(?:\s*(\*))?(?:(?:\s+|(?<=\*))([_$[:alpha:]][_$[:alnum:]]*))?\s*</string>
|
|
<key>beginCaptures</key>
|
|
<dict>
|
|
<key>1</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>keyword.control.export.tsx</string>
|
|
</dict>
|
|
<key>2</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>storage.modifier.async.tsx</string>
|
|
</dict>
|
|
<key>3</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>storage.type.function.tsx</string>
|
|
</dict>
|
|
<key>4</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>keyword.generator.asterisk.tsx</string>
|
|
</dict>
|
|
<key>5</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>entity.name.function.tsx</string>
|
|
</dict>
|
|
</dict>
|
|
<key>end</key>
|
|
<string>(?=;|\})|(?<=\})</string>
|
|
<key>patterns</key>
|
|
<array>
|
|
<dict>
|
|
<key>include</key>
|
|
<string>#comment</string>
|
|
</dict>
|
|
<dict>
|
|
<key>include</key>
|
|
<string>#type-parameters</string>
|
|
</dict>
|
|
<dict>
|
|
<key>include</key>
|
|
<string>#function-parameters</string>
|
|
</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>name</key>
|
|
<string>meta.function.overload.tsx</string>
|
|
<key>match</key>
|
|
<string>(?<!\.|\$)\b(?:(export)\s+)?(?:(async)\s+)?(function\b)(?:\s*(\*))?(?:(?:\s+|(?<=\*))([_$[:alpha:]][_$[:alnum:]]*))?\s*</string>
|
|
<key>captures</key>
|
|
<dict>
|
|
<key>1</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>keyword.control.export.tsx</string>
|
|
</dict>
|
|
<key>2</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>storage.modifier.async.tsx</string>
|
|
</dict>
|
|
<key>3</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>storage.type.function.tsx</string>
|
|
</dict>
|
|
<key>4</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>keyword.generator.asterisk.tsx</string>
|
|
</dict>
|
|
<key>5</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>entity.name.function.tsx</string>
|
|
</dict>
|
|
</dict>
|
|
</dict>
|
|
<key>object-literal</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>meta.object-literal.tsx</string>
|
|
<key>begin</key>
|
|
<string>\{</string>
|
|
<key>beginCaptures</key>
|
|
<dict>
|
|
<key>0</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>punctuation.definition.block.tsx</string>
|
|
</dict>
|
|
</dict>
|
|
<key>end</key>
|
|
<string>\}</string>
|
|
<key>endCaptures</key>
|
|
<dict>
|
|
<key>0</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>punctuation.definition.block.tsx</string>
|
|
</dict>
|
|
</dict>
|
|
<key>patterns</key>
|
|
<array>
|
|
<dict>
|
|
<key>include</key>
|
|
<string>#object-member</string>
|
|
</dict>
|
|
</array>
|
|
</dict>
|
|
<key>decl-block</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>meta.block.tsx</string>
|
|
<key>begin</key>
|
|
<string>\{</string>
|
|
<key>beginCaptures</key>
|
|
<dict>
|
|
<key>0</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>punctuation.definition.block.tsx</string>
|
|
</dict>
|
|
</dict>
|
|
<key>end</key>
|
|
<string>\}</string>
|
|
<key>endCaptures</key>
|
|
<dict>
|
|
<key>0</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>punctuation.definition.block.tsx</string>
|
|
</dict>
|
|
</dict>
|
|
<key>patterns</key>
|
|
<array>
|
|
<dict>
|
|
<key>include</key>
|
|
<string>#statements</string>
|
|
</dict>
|
|
</array>
|
|
</dict>
|
|
<key>after-operator-block</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>meta.object-literal.tsx</string>
|
|
<key>begin</key>
|
|
<string>(?<=[=(,\[?+!]|await|return|yield|throw|in|of|typeof|&&|\|\||\*)\s*(\{)</string>
|
|
<key>beginCaptures</key>
|
|
<dict>
|
|
<key>1</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>punctuation.definition.block.tsx</string>
|
|
</dict>
|
|
</dict>
|
|
<key>end</key>
|
|
<string>\}</string>
|
|
<key>endCaptures</key>
|
|
<dict>
|
|
<key>0</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>punctuation.definition.block.tsx</string>
|
|
</dict>
|
|
</dict>
|
|
<key>patterns</key>
|
|
<array>
|
|
<dict>
|
|
<key>include</key>
|
|
<string>#object-member</string>
|
|
</dict>
|
|
</array>
|
|
</dict>
|
|
<key>parameter-name</key>
|
|
<dict>
|
|
<key>match</key>
|
|
<string>(?:\s*\b(readonly)\s+)?(?:\s*\b(public|private|protected)\s+)?(\.\.\.)?\s*(?<!=|:)([_$[:alpha:]][_$[:alnum:]]*)\s*(\??)</string>
|
|
<key>captures</key>
|
|
<dict>
|
|
<key>1</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>storage.modifier.tsx</string>
|
|
</dict>
|
|
<key>2</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>storage.modifier.tsx</string>
|
|
</dict>
|
|
<key>3</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>keyword.operator.rest.tsx</string>
|
|
</dict>
|
|
<key>4</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>variable.parameter.tsx</string>
|
|
</dict>
|
|
<key>5</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>keyword.operator.optional.tsx</string>
|
|
</dict>
|
|
</dict>
|
|
</dict>
|
|
<key>destructuring-parameter</key>
|
|
<dict>
|
|
<key>patterns</key>
|
|
<array>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>meta.parameter.object-binding-pattern.tsx</string>
|
|
<key>begin</key>
|
|
<string>(?<!=|:)\s*(\{)</string>
|
|
<key>beginCaptures</key>
|
|
<dict>
|
|
<key>1</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>punctuation.definition.binding-pattern.object.tsx</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.tsx</string>
|
|
</dict>
|
|
</dict>
|
|
<key>patterns</key>
|
|
<array>
|
|
<dict>
|
|
<key>include</key>
|
|
<string>#parameter-object-binding-element</string>
|
|
</dict>
|
|
</array>
|
|
</dict>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>meta.paramter.array-binding-pattern.tsx</string>
|
|
<key>begin</key>
|
|
<string>(?<!=|:)\s*(\[)</string>
|
|
<key>beginCaptures</key>
|
|
<dict>
|
|
<key>1</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>punctuation.definition.binding-pattern.array.tsx</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.tsx</string>
|
|
</dict>
|
|
</dict>
|
|
<key>patterns</key>
|
|
<array>
|
|
<dict>
|
|
<key>include</key>
|
|
<string>#parameter-array-binding-element</string>
|
|
</dict>
|
|
</array>
|
|
</dict>
|
|
</array>
|
|
</dict>
|
|
<key>parameter-object-binding-element</key>
|
|
<dict>
|
|
<key>patterns</key>
|
|
<array>
|
|
<dict>
|
|
<key>include</key>
|
|
<string>#comment</string>
|
|
</dict>
|
|
<dict>
|
|
<key>begin</key>
|
|
<string>([_$[:alpha:]][_$[:alnum:]]*)\s*(:)</string>
|
|
<key>beginCaptures</key>
|
|
<dict>
|
|
<key>1</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>variable.object.property.tsx</string>
|
|
</dict>
|
|
<key>2</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>punctuation.destructuring.tsx</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>name</key>
|
|
<string>variable.parameter.tsx</string>
|
|
<key>match</key>
|
|
<string>([_$[:alpha:]][_$[:alnum:]]*)</string>
|
|
</dict>
|
|
<dict>
|
|
<key>include</key>
|
|
<string>#variable-initializer</string>
|
|
</dict>
|
|
</array>
|
|
</dict>
|
|
<dict>
|
|
<key>include</key>
|
|
<string>#parameter-object-binding-pattern</string>
|
|
</dict>
|
|
<dict>
|
|
<key>include</key>
|
|
<string>#destructuring-parameter-rest</string>
|
|
</dict>
|
|
<dict>
|
|
<key>include</key>
|
|
<string>#variable-initializer</string>
|
|
</dict>
|
|
<dict>
|
|
<key>include</key>
|
|
<string>#punctuation-comma</string>
|
|
</dict>
|
|
</array>
|
|
</dict>
|
|
<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>include</key>
|
|
<string>#destructuring-parameter-rest</string>
|
|
</dict>
|
|
<dict>
|
|
<key>include</key>
|
|
<string>#variable-initializer</string>
|
|
</dict>
|
|
<dict>
|
|
<key>include</key>
|
|
<string>#punctuation-comma</string>
|
|
</dict>
|
|
</array>
|
|
</dict>
|
|
<key>destructuring-parameter-rest</key>
|
|
<dict>
|
|
<key>match</key>
|
|
<string>(?:(\.\.\.)\s*)?([_$[:alpha:]][_$[:alnum:]]*)</string>
|
|
<key>captures</key>
|
|
<dict>
|
|
<key>1</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>keyword.operator.rest.tsx</string>
|
|
</dict>
|
|
<key>2</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>variable.parameter.tsx</string>
|
|
</dict>
|
|
</dict>
|
|
</dict>
|
|
<key>parameter-object-binding-pattern</key>
|
|
<dict>
|
|
<key>begin</key>
|
|
<string>(?:(\.\.\.)\s*)?(\{)</string>
|
|
<key>beginCaptures</key>
|
|
<dict>
|
|
<key>1</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>keyword.operator.rest.tsx</string>
|
|
</dict>
|
|
<key>2</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>punctuation.definition.binding-pattern.object.tsx</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.tsx</string>
|
|
</dict>
|
|
</dict>
|
|
<key>patterns</key>
|
|
<array>
|
|
<dict>
|
|
<key>include</key>
|
|
<string>#parameter-object-binding-element</string>
|
|
</dict>
|
|
</array>
|
|
</dict>
|
|
<key>parameter-array-binding-pattern</key>
|
|
<dict>
|
|
<key>begin</key>
|
|
<string>(?:(\.\.\.)\s*)?(\[)</string>
|
|
<key>beginCaptures</key>
|
|
<dict>
|
|
<key>1</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>keyword.operator.rest.tsx</string>
|
|
</dict>
|
|
<key>2</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>punctuation.definition.binding-pattern.array.tsx</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.tsx</string>
|
|
</dict>
|
|
</dict>
|
|
<key>patterns</key>
|
|
<array>
|
|
<dict>
|
|
<key>include</key>
|
|
<string>#parameter-array-binding-element</string>
|
|
</dict>
|
|
</array>
|
|
</dict>
|
|
<key>return-type</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>meta.return.type.tsx</string>
|
|
<key>begin</key>
|
|
<string>(?<=\))\s*(:)</string>
|
|
<key>beginCaptures</key>
|
|
<dict>
|
|
<key>1</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>keyword.operator.type.annotation.tsx</string>
|
|
</dict>
|
|
</dict>
|
|
<key>end</key>
|
|
<string>(?<!:)((?=$)|(?=\{|;|//|\}))</string>
|
|
<key>patterns</key>
|
|
<array>
|
|
<dict>
|
|
<key>include</key>
|
|
<string>#comment</string>
|
|
</dict>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>meta.object.type.tsx</string>
|
|
<key>begin</key>
|
|
<string>(?<=:)\s*(\{)</string>
|
|
<key>beginCaptures</key>
|
|
<dict>
|
|
<key>1</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>punctuation.definition.block.tsx</string>
|
|
</dict>
|
|
</dict>
|
|
<key>end</key>
|
|
<string>\}</string>
|
|
<key>endCaptures</key>
|
|
<dict>
|
|
<key>0</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>punctuation.definition.block.tsx</string>
|
|
</dict>
|
|
</dict>
|
|
<key>patterns</key>
|
|
<array>
|
|
<dict>
|
|
<key>include</key>
|
|
<string>#type-object-members</string>
|
|
</dict>
|
|
</array>
|
|
</dict>
|
|
<dict>
|
|
<key>include</key>
|
|
<string>#type-predicate-operator</string>
|
|
</dict>
|
|
<dict>
|
|
<key>include</key>
|
|
<string>#type</string>
|
|
</dict>
|
|
</array>
|
|
</dict>
|
|
<key>type-predicate-operator</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>keyword.operator.is.tsx</string>
|
|
<key>match</key>
|
|
<string>(?<!\.|\$)\bis\b(?!\$)</string>
|
|
</dict>
|
|
<key>type-annotation</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>meta.type.annotation.tsx</string>
|
|
<key>begin</key>
|
|
<string>:</string>
|
|
<key>beginCaptures</key>
|
|
<dict>
|
|
<key>0</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>keyword.operator.type.annotation.tsx</string>
|
|
</dict>
|
|
</dict>
|
|
<key>end</key>
|
|
<string>(?=$|[,);\}\]]|//)|(?==[^>])|(?<=[\}>\]\)]|[_$[:alpha:]])\s*(?=\{)</string>
|
|
<key>patterns</key>
|
|
<array>
|
|
<dict>
|
|
<key>include</key>
|
|
<string>#comment</string>
|
|
</dict>
|
|
<dict>
|
|
<key>include</key>
|
|
<string>#type</string>
|
|
</dict>
|
|
</array>
|
|
</dict>
|
|
<key>type</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>meta.type.tsx</string>
|
|
<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>#numeric-literal</string>
|
|
</dict>
|
|
<dict>
|
|
<key>include</key>
|
|
<string>#type-primitive</string>
|
|
</dict>
|
|
<dict>
|
|
<key>include</key>
|
|
<string>#type-builtin-literals</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-operators</string>
|
|
</dict>
|
|
<dict>
|
|
<key>include</key>
|
|
<string>#type-fn-type-parameters</string>
|
|
</dict>
|
|
<dict>
|
|
<key>include</key>
|
|
<string>#type-paren-or-function-parameters</string>
|
|
</dict>
|
|
<dict>
|
|
<key>include</key>
|
|
<string>#type-function-return-type</string>
|
|
</dict>
|
|
<dict>
|
|
<key>include</key>
|
|
<string>#type-name</string>
|
|
</dict>
|
|
</array>
|
|
</dict>
|
|
<key>function-parameters</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>meta.parameters.tsx</string>
|
|
<key>begin</key>
|
|
<string>\(</string>
|
|
<key>beginCaptures</key>
|
|
<dict>
|
|
<key>0</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>punctuation.definition.parameters.begin.tsx</string>
|
|
</dict>
|
|
</dict>
|
|
<key>end</key>
|
|
<string>\)</string>
|
|
<key>endCaptures</key>
|
|
<dict>
|
|
<key>0</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>punctuation.definition.parameters.end.tsx</string>
|
|
</dict>
|
|
</dict>
|
|
<key>patterns</key>
|
|
<array>
|
|
<dict>
|
|
<key>include</key>
|
|
<string>#comment</string>
|
|
</dict>
|
|
<dict>
|
|
<key>include</key>
|
|
<string>#decorator</string>
|
|
</dict>
|
|
<dict>
|
|
<key>include</key>
|
|
<string>#destructuring-parameter</string>
|
|
</dict>
|
|
<dict>
|
|
<key>include</key>
|
|
<string>#parameter-name</string>
|
|
</dict>
|
|
<dict>
|
|
<key>include</key>
|
|
<string>#type-annotation</string>
|
|
</dict>
|
|
<dict>
|
|
<key>include</key>
|
|
<string>#variable-initializer</string>
|
|
</dict>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>punctuation.separator.parameter.tsx</string>
|
|
<key>match</key>
|
|
<string>,</string>
|
|
</dict>
|
|
</array>
|
|
</dict>
|
|
<key>type-primitive</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>support.type.primitive.tsx</string>
|
|
<key>match</key>
|
|
<string>(?<!\.|\$)\b(string|number|boolean|symbol|any|void|never)\b(?!\$)</string>
|
|
</dict>
|
|
<key>type-builtin-literals</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>support.type.builtin.tsx</string>
|
|
<key>match</key>
|
|
<string>(?<!\.|\$)\b(this|true|false|undefined|null)\b(?!\$)</string>
|
|
</dict>
|
|
<key>type-paren-or-function-parameters</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>meta.type.paren.cover.tsx</string>
|
|
<key>begin</key>
|
|
<string>\s*(\()</string>
|
|
<key>beginCaptures</key>
|
|
<dict>
|
|
<key>1</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>meta.brace.round.tsx</string>
|
|
</dict>
|
|
</dict>
|
|
<key>end</key>
|
|
<string>\)</string>
|
|
<key>endCaptures</key>
|
|
<dict>
|
|
<key>0</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>meta.brace.round.tsx</string>
|
|
</dict>
|
|
</dict>
|
|
<key>patterns</key>
|
|
<array>
|
|
<dict>
|
|
<key>include</key>
|
|
<string>#type</string>
|
|
</dict>
|
|
<dict>
|
|
<key>include</key>
|
|
<string>#function-parameters</string>
|
|
</dict>
|
|
</array>
|
|
</dict>
|
|
<key>type-fn-type-parameters</key>
|
|
<dict>
|
|
<key>patterns</key>
|
|
<array>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>meta.type.constructor.tsx</string>
|
|
<key>match</key>
|
|
<string>(?<!\.|\$)\b(new)\b(?=\s*\<)</string>
|
|
<key>captures</key>
|
|
<dict>
|
|
<key>1</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>keyword.control.new.tsx</string>
|
|
</dict>
|
|
</dict>
|
|
</dict>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>meta.type.constructor.tsx</string>
|
|
<key>begin</key>
|
|
<string>(?<!\.|\$)\b(new)\b\s*(?=\()</string>
|
|
<key>beginCaptures</key>
|
|
<dict>
|
|
<key>1</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>keyword.control.new.tsx</string>
|
|
</dict>
|
|
</dict>
|
|
<key>end</key>
|
|
<string>(?<=\))</string>
|
|
<key>patterns</key>
|
|
<array>
|
|
<dict>
|
|
<key>include</key>
|
|
<string>#function-parameters</string>
|
|
</dict>
|
|
</array>
|
|
</dict>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>meta.type.function.tsx</string>
|
|
<key>begin</key>
|
|
<string>(?<=\>)\s*(?=\()</string>
|
|
<key>end</key>
|
|
<string>(?<=\))</string>
|
|
<key>patterns</key>
|
|
<array>
|
|
<dict>
|
|
<key>include</key>
|
|
<string>#function-parameters</string>
|
|
</dict>
|
|
</array>
|
|
</dict>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>meta.type.function.tsx</string>
|
|
<key>begin</key>
|
|
<string>(?x)( \s* (?= [(]\s*( ([)]) | (\.\.\.) | ([_$[:alnum:]]+\s*( ([:,?=])| ([)]\s*=>) )) ) ) )</string>
|
|
<key>end</key>
|
|
<string>(?<=\))</string>
|
|
<key>patterns</key>
|
|
<array>
|
|
<dict>
|
|
<key>include</key>
|
|
<string>#function-parameters</string>
|
|
</dict>
|
|
</array>
|
|
</dict>
|
|
</array>
|
|
</dict>
|
|
<key>type-operators</key>
|
|
<dict>
|
|
<key>patterns</key>
|
|
<array>
|
|
<dict>
|
|
<key>include</key>
|
|
<string>#typeof-operator</string>
|
|
</dict>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>keyword.operator.type.tsx</string>
|
|
<key>match</key>
|
|
<string>[&|]</string>
|
|
</dict>
|
|
</array>
|
|
</dict>
|
|
<key>type-function-return-type</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>meta.type.function.return.tsx</string>
|
|
<key>begin</key>
|
|
<string>=></string>
|
|
<key>beginCaptures</key>
|
|
<dict>
|
|
<key>0</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>storage.type.function.arrow.tsx</string>
|
|
</dict>
|
|
</dict>
|
|
<key>end</key>
|
|
<string>(?<!=>)(?=[,\]\)\{\}=;>]|//|$)</string>
|
|
<key>patterns</key>
|
|
<array>
|
|
<dict>
|
|
<key>include</key>
|
|
<string>#comment</string>
|
|
</dict>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>meta.object.type.tsx</string>
|
|
<key>begin</key>
|
|
<string>(?<==>)\s*(\{)</string>
|
|
<key>beginCaptures</key>
|
|
<dict>
|
|
<key>1</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>punctuation.definition.block.tsx</string>
|
|
</dict>
|
|
</dict>
|
|
<key>end</key>
|
|
<string>\}</string>
|
|
<key>endCaptures</key>
|
|
<dict>
|
|
<key>0</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>punctuation.definition.block.tsx</string>
|
|
</dict>
|
|
</dict>
|
|
<key>patterns</key>
|
|
<array>
|
|
<dict>
|
|
<key>include</key>
|
|
<string>#type-object-members</string>
|
|
</dict>
|
|
</array>
|
|
</dict>
|
|
<dict>
|
|
<key>include</key>
|
|
<string>#type-predicate-operator</string>
|
|
</dict>
|
|
<dict>
|
|
<key>include</key>
|
|
<string>#type</string>
|
|
</dict>
|
|
</array>
|
|
</dict>
|
|
<key>type-tuple</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>meta.type.tuple.tsx</string>
|
|
<key>begin</key>
|
|
<string>\[</string>
|
|
<key>beginCaptures</key>
|
|
<dict>
|
|
<key>0</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>meta.brace.square.tsx</string>
|
|
</dict>
|
|
</dict>
|
|
<key>end</key>
|
|
<string>\]</string>
|
|
<key>endCaptures</key>
|
|
<dict>
|
|
<key>0</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>meta.brace.square.tsx</string>
|
|
</dict>
|
|
</dict>
|
|
<key>patterns</key>
|
|
<array>
|
|
<dict>
|
|
<key>include</key>
|
|
<string>#type</string>
|
|
</dict>
|
|
<dict>
|
|
<key>include</key>
|
|
<string>#punctuation-comma</string>
|
|
</dict>
|
|
</array>
|
|
</dict>
|
|
<key>type-name</key>
|
|
<dict>
|
|
<key>patterns</key>
|
|
<array>
|
|
<dict>
|
|
<key>match</key>
|
|
<string>([_$[:alpha:]][_$[:alnum:]]*)\s*(\.)</string>
|
|
<key>captures</key>
|
|
<dict>
|
|
<key>1</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>entity.name.type.module.tsx</string>
|
|
</dict>
|
|
<key>2</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>punctuation.accessor.tsx</string>
|
|
</dict>
|
|
</dict>
|
|
</dict>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>entity.name.type.tsx</string>
|
|
<key>match</key>
|
|
<string>[_$[:alpha:]][_$[:alnum:]]*</string>
|
|
</dict>
|
|
</array>
|
|
</dict>
|
|
<key>type-parameters</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>meta.type.parameters.tsx</string>
|
|
<key>begin</key>
|
|
<string>(<)</string>
|
|
<key>beginCaptures</key>
|
|
<dict>
|
|
<key>1</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>punctuation.definition.typeparameters.begin.tsx</string>
|
|
</dict>
|
|
</dict>
|
|
<key>end</key>
|
|
<string>(?=$)|(>)</string>
|
|
<key>endCaptures</key>
|
|
<dict>
|
|
<key>1</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>punctuation.definition.typeparameters.end.tsx</string>
|
|
</dict>
|
|
</dict>
|
|
<key>patterns</key>
|
|
<array>
|
|
<dict>
|
|
<key>include</key>
|
|
<string>#comment</string>
|
|
</dict>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>storage.modifier.tsx</string>
|
|
<key>match</key>
|
|
<string>(?<!\.|\$)\b(extends)\b(?!\$)</string>
|
|
</dict>
|
|
<dict>
|
|
<key>include</key>
|
|
<string>#type</string>
|
|
</dict>
|
|
<dict>
|
|
<key>include</key>
|
|
<string>#punctuation-comma</string>
|
|
</dict>
|
|
</array>
|
|
</dict>
|
|
<key>variable-initializer</key>
|
|
<dict>
|
|
<key>begin</key>
|
|
<string>(?<!=|!)(=)(?!=)</string>
|
|
<key>beginCaptures</key>
|
|
<dict>
|
|
<key>1</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>keyword.operator.assignment.tsx</string>
|
|
</dict>
|
|
</dict>
|
|
<key>end</key>
|
|
<string>(?=$|[,);}\]])</string>
|
|
<key>patterns</key>
|
|
<array>
|
|
<dict>
|
|
<key>include</key>
|
|
<string>#expression</string>
|
|
</dict>
|
|
</array>
|
|
</dict>
|
|
<key>for-loop</key>
|
|
<dict>
|
|
<key>begin</key>
|
|
<string>(?<!\.|\$)\b(for)\s*(\()</string>
|
|
<key>beginCaptures</key>
|
|
<dict>
|
|
<key>1</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>keyword.control.loop.tsx</string>
|
|
</dict>
|
|
<key>2</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>meta.brace.round.tsx</string>
|
|
</dict>
|
|
</dict>
|
|
<key>end</key>
|
|
<string>\)</string>
|
|
<key>endCaptures</key>
|
|
<dict>
|
|
<key>0</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>meta.brace.round.tsx</string>
|
|
</dict>
|
|
</dict>
|
|
<key>patterns</key>
|
|
<array>
|
|
<dict>
|
|
<key>include</key>
|
|
<string>#var-expr</string>
|
|
</dict>
|
|
<dict>
|
|
<key>include</key>
|
|
<string>#expression</string>
|
|
</dict>
|
|
<dict>
|
|
<key>include</key>
|
|
<string>#punctuation-semicolon</string>
|
|
</dict>
|
|
</array>
|
|
</dict>
|
|
<key>switch-expression</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>switch-expression.expr.tsx</string>
|
|
<key>begin</key>
|
|
<string>(?<!\.|\$)\b(switch)\s*(\()</string>
|
|
<key>beginCaptures</key>
|
|
<dict>
|
|
<key>1</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>keyword.control.switch.tsx</string>
|
|
</dict>
|
|
<key>2</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>meta.brace.round.tsx</string>
|
|
</dict>
|
|
</dict>
|
|
<key>end</key>
|
|
<string>\)</string>
|
|
<key>endCaptures</key>
|
|
<dict>
|
|
<key>0</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>meta.brace.round.tsx</string>
|
|
</dict>
|
|
</dict>
|
|
<key>patterns</key>
|
|
<array>
|
|
<dict>
|
|
<key>include</key>
|
|
<string>#expression</string>
|
|
</dict>
|
|
</array>
|
|
</dict>
|
|
<key>switch-block</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>switch-block.expr.tsx</string>
|
|
<key>begin</key>
|
|
<string>{</string>
|
|
<key>beginCaptures</key>
|
|
<dict>
|
|
<key>0</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>punctuation.definition.block.tsx</string>
|
|
</dict>
|
|
</dict>
|
|
<key>end</key>
|
|
<string>(?=\})</string>
|
|
<key>patterns</key>
|
|
<array>
|
|
<dict>
|
|
<key>include</key>
|
|
<string>#case-clause</string>
|
|
</dict>
|
|
<dict>
|
|
<key>include</key>
|
|
<string>#statements</string>
|
|
</dict>
|
|
</array>
|
|
</dict>
|
|
<key>case-clause</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>case-clause.expr.tsx</string>
|
|
<key>begin</key>
|
|
<string>(?<!\.|\$)\b(case|default(?=:))\b(?!\$)</string>
|
|
<key>beginCaptures</key>
|
|
<dict>
|
|
<key>1</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>keyword.control.switch.tsx</string>
|
|
</dict>
|
|
</dict>
|
|
<key>end</key>
|
|
<string>:</string>
|
|
<key>endCaptures</key>
|
|
<dict>
|
|
<key>0</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>punctuation.definition.section.case-statement.tsx</string>
|
|
</dict>
|
|
</dict>
|
|
<key>patterns</key>
|
|
<array>
|
|
<dict>
|
|
<key>include</key>
|
|
<string>#expression</string>
|
|
</dict>
|
|
</array>
|
|
</dict>
|
|
<key>switch-statement</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>switch-statement.expr.tsx</string>
|
|
<key>begin</key>
|
|
<string>(?<!\.|\$)(?=\bswitch\s*\()</string>
|
|
<key>end</key>
|
|
<string>}</string>
|
|
<key>endCaptures</key>
|
|
<dict>
|
|
<key>0</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>punctuation.definition.block.tsx</string>
|
|
</dict>
|
|
</dict>
|
|
<key>patterns</key>
|
|
<array>
|
|
<dict>
|
|
<key>include</key>
|
|
<string>#switch-expression</string>
|
|
</dict>
|
|
<dict>
|
|
<key>include</key>
|
|
<string>#switch-block</string>
|
|
</dict>
|
|
</array>
|
|
</dict>
|
|
<key>support-objects</key>
|
|
<dict>
|
|
<key>patterns</key>
|
|
<array>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>variable.language.arguments.tsx</string>
|
|
<key>match</key>
|
|
<string>(?<!\.|\$)\b(arguments)\b(?!\$)</string>
|
|
</dict>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>support.class.builtin.tsx</string>
|
|
<key>match</key>
|
|
<string>(?x)(?<!\.|\$)\b(Array|ArrayBuffer|Atomics|Boolean|DataView|Date|Float32Array|Float64Array|Function|Generator |GeneratorFunction|Int8Array|Int16Array|Int32Array|Intl|Map|Number|Object|Promise|Proxy |Reflect|RegExp|Set|SharedArrayBuffer|SIMD|String|Symbol|TypedArray |Uint8Array|Uint16Array|Uint32Array|Uint8ClampedArray|WeakMap|WeakSet)\b(?!\$)</string>
|
|
</dict>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>support.class.error.tsx</string>
|
|
<key>match</key>
|
|
<string>(?<!\.|\$)\b((Eval|Internal|Range|Reference|Syntax|Type|URI)?Error)\b(?!\$)</string>
|
|
</dict>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>support.function.tsx</string>
|
|
<key>match</key>
|
|
<string>(?x)(?<!\.|\$)\b(clear(Interval|Timeout)|decodeURI|decodeURIComponent|encodeURI|encodeURIComponent|escape|eval| isFinite|isNaN|parseFloat|parseInt|require|set(Interval|Timeout)|super|unescape|uneval)(?=\s*\()</string>
|
|
</dict>
|
|
<dict>
|
|
<key>match</key>
|
|
<string>(?x)(?<!\.|\$)\b(Math)(?:\s*(\.)\s*(?:
|
|
(abs|acos|acosh|asin|asinh|atan|atan2|atanh|cbrt|ceil|clz32|cos|cosh|exp|
|
|
expm1|floor|fround|hypot|imul|log|log10|log1p|log2|max|min|pow|random|
|
|
round|sign|sin|sinh|sqrt|tan|tanh|trunc)
|
|
|
|
|
(E|LN10|LN2|LOG10E|LOG2E|PI|SQRT1_2|SQRT2)))?\b(?!\$)</string>
|
|
<key>captures</key>
|
|
<dict>
|
|
<key>1</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>support.constant.math.tsx</string>
|
|
</dict>
|
|
<key>2</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>punctuation.accessor.tsx</string>
|
|
</dict>
|
|
<key>3</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>support.function.math.tsx</string>
|
|
</dict>
|
|
<key>4</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>support.constant.property.math.tsx</string>
|
|
</dict>
|
|
</dict>
|
|
</dict>
|
|
<dict>
|
|
<key>match</key>
|
|
<string>(?x)(?<!\.|\$)\b(console)(?:\s*(\.)\s*(
|
|
assert|clear|count|debug|dir|error|group|groupCollapsed|groupEnd|info|log
|
|
|profile|profileEnd|table|time|timeEnd|timeStamp|trace|warn))?\b(?!\$)</string>
|
|
<key>captures</key>
|
|
<dict>
|
|
<key>1</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>support.class.console.tsx</string>
|
|
</dict>
|
|
<key>2</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>punctuation.accessor.tsx</string>
|
|
</dict>
|
|
<key>3</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>support.function.console.tsx</string>
|
|
</dict>
|
|
</dict>
|
|
</dict>
|
|
<dict>
|
|
<key>match</key>
|
|
<string>(?<!\.|\$)\b(JSON)(?:\s*(\.)\s*(parse|stringify))?\b(?!\$)</string>
|
|
<key>captures</key>
|
|
<dict>
|
|
<key>1</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>support.constant.json.tsx</string>
|
|
</dict>
|
|
<key>2</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>punctuation.accessor.tsx</string>
|
|
</dict>
|
|
<key>3</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>support.function.json.tsx</string>
|
|
</dict>
|
|
</dict>
|
|
</dict>
|
|
<dict>
|
|
<key>match</key>
|
|
<string>(?x) (\.) \s* (?:
|
|
(constructor|length|prototype|__proto__)
|
|
|
|
|
(EPSILON|MAX_SAFE_INTEGER|MAX_VALUE|MIN_SAFE_INTEGER|MIN_VALUE|NEGATIVE_INFINITY|POSITIVE_INFINITY))\b(?!\$)</string>
|
|
<key>captures</key>
|
|
<dict>
|
|
<key>1</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>punctuation.accessor.tsx</string>
|
|
</dict>
|
|
<key>2</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>support.variable.property.tsx</string>
|
|
</dict>
|
|
<key>3</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>support.constant.tsx</string>
|
|
</dict>
|
|
</dict>
|
|
</dict>
|
|
<dict>
|
|
<key>match</key>
|
|
<string>(?x) (?<!\.|\$) \b (?:
|
|
(document|event|navigator|performance|screen|window)
|
|
|
|
|
(AnalyserNode|ArrayBufferView|Attr|AudioBuffer|AudioBufferSourceNode|AudioContext|AudioDestinationNode|AudioListener
|
|
|AudioNode|AudioParam|BatteryManager|BeforeUnloadEvent|BiquadFilterNode|Blob|BufferSource|ByteString|CSS|CSSConditionRule
|
|
|CSSCounterStyleRule|CSSGroupingRule|CSSMatrix|CSSMediaRule|CSSPageRule|CSSPrimitiveValue|CSSRule|CSSRuleList|CSSStyleDeclaration
|
|
|CSSStyleRule|CSSStyleSheet|CSSSupportsRule|CSSValue|CSSValueList|CanvasGradient|CanvasImageSource|CanvasPattern
|
|
|CanvasRenderingContext2D|ChannelMergerNode|ChannelSplitterNode|CharacterData|ChromeWorker|CloseEvent|Comment|CompositionEvent
|
|
|Console|ConvolverNode|Coordinates|Credential|CredentialsContainer|Crypto|CryptoKey|CustomEvent|DOMError|DOMException
|
|
|DOMHighResTimeStamp|DOMImplementation|DOMString|DOMStringList|DOMStringMap|DOMTimeStamp|DOMTokenList|DataTransfer
|
|
|DataTransferItem|DataTransferItemList|DedicatedWorkerGlobalScope|DelayNode|DeviceProximityEvent|DirectoryEntry
|
|
|DirectoryEntrySync|DirectoryReader|DirectoryReaderSync|Document|DocumentFragment|DocumentTouch|DocumentType|DragEvent
|
|
|DynamicsCompressorNode|Element|Entry|EntrySync|ErrorEvent|Event|EventListener|EventSource|EventTarget|FederatedCredential
|
|
|FetchEvent|File|FileEntry|FileEntrySync|FileException|FileList|FileReader|FileReaderSync|FileSystem|FileSystemSync
|
|
|FontFace|FormData|GainNode|Gamepad|GamepadButton|GamepadEvent|Geolocation|GlobalEventHandlers|HTMLAnchorElement
|
|
|HTMLAreaElement|HTMLAudioElement|HTMLBRElement|HTMLBaseElement|HTMLBodyElement|HTMLButtonElement|HTMLCanvasElement
|
|
|HTMLCollection|HTMLContentElement|HTMLDListElement|HTMLDataElement|HTMLDataListElement|HTMLDialogElement|HTMLDivElement
|
|
|HTMLDocument|HTMLElement|HTMLEmbedElement|HTMLFieldSetElement|HTMLFontElement|HTMLFormControlsCollection|HTMLFormElement
|
|
|HTMLHRElement|HTMLHeadElement|HTMLHeadingElement|HTMLHtmlElement|HTMLIFrameElement|HTMLImageElement|HTMLInputElement
|
|
|HTMLKeygenElement|HTMLLIElement|HTMLLabelElement|HTMLLegendElement|HTMLLinkElement|HTMLMapElement|HTMLMediaElement
|
|
|HTMLMetaElement|HTMLMeterElement|HTMLModElement|HTMLOListElement|HTMLObjectElement|HTMLOptGroupElement|HTMLOptionElement
|
|
|HTMLOptionsCollection|HTMLOutputElement|HTMLParagraphElement|HTMLParamElement|HTMLPreElement|HTMLProgressElement
|
|
|HTMLQuoteElement|HTMLScriptElement|HTMLSelectElement|HTMLShadowElement|HTMLSourceElement|HTMLSpanElement|HTMLStyleElement
|
|
|HTMLTableCaptionElement|HTMLTableCellElement|HTMLTableColElement|HTMLTableDataCellElement|HTMLTableElement|HTMLTableHeaderCellElement
|
|
|HTMLTableRowElement|HTMLTableSectionElement|HTMLTextAreaElement|HTMLTimeElement|HTMLTitleElement|HTMLTrackElement
|
|
|HTMLUListElement|HTMLUnknownElement|HTMLVideoElement|HashChangeEvent|History|IDBCursor|IDBCursorWithValue|IDBDatabase
|
|
|IDBEnvironment|IDBFactory|IDBIndex|IDBKeyRange|IDBMutableFile|IDBObjectStore|IDBOpenDBRequest|IDBRequest|IDBTransaction
|
|
|IDBVersionChangeEvent|IIRFilterNode|IdentityManager|ImageBitmap|ImageBitmapFactories|ImageData|Index|InputDeviceCapabilities
|
|
|InputEvent|InstallEvent|InstallTrigger|KeyboardEvent|LinkStyle|LocalFileSystem|LocalFileSystemSync|Location|MIDIAccess
|
|
|MIDIConnectionEvent|MIDIInput|MIDIInputMap|MIDIOutputMap|MediaElementAudioSourceNode|MediaError|MediaKeyMessageEvent
|
|
|MediaKeySession|MediaKeyStatusMap|MediaKeySystemAccess|MediaKeySystemConfiguration|MediaKeys|MediaRecorder|MediaStream
|
|
|MediaStreamAudioDestinationNode|MediaStreamAudioSourceNode|MessageChannel|MessageEvent|MessagePort|MouseEvent
|
|
|MutationObserver|MutationRecord|NamedNodeMap|Navigator|NavigatorConcurrentHardware|NavigatorGeolocation|NavigatorID
|
|
|NavigatorLanguage|NavigatorOnLine|Node|NodeFilter|NodeIterator|NodeList|NonDocumentTypeChildNode|Notification
|
|
|OfflineAudioCompletionEvent|OfflineAudioContext|OscillatorNode|PageTransitionEvent|PannerNode|ParentNode|PasswordCredential
|
|
|Path2D|PaymentAddress|PaymentRequest|PaymentResponse|Performance|PerformanceEntry|PerformanceFrameTiming|PerformanceMark
|
|
|PerformanceMeasure|PerformanceNavigation|PerformanceNavigationTiming|PerformanceObserver|PerformanceObserverEntryList
|
|
|PerformanceResourceTiming|PerformanceTiming|PeriodicSyncEvent|PeriodicWave|Plugin|Point|PointerEvent|PopStateEvent
|
|
|PortCollection|Position|PositionError|PositionOptions|PresentationConnectionClosedEvent|PresentationConnectionList
|
|
|PresentationReceiver|ProcessingInstruction|ProgressEvent|PromiseRejectionEvent|PushEvent|PushRegistrationManager
|
|
|RTCCertificate|RTCConfiguration|RTCPeerConnection|RTCSessionDescriptionCallback|RTCStatsReport|RadioNodeList|RandomSource
|
|
|Range|ReadableByteStream|RenderingContext|SVGAElement|SVGAngle|SVGAnimateColorElement|SVGAnimateElement|SVGAnimateMotionElement
|
|
|SVGAnimateTransformElement|SVGAnimatedAngle|SVGAnimatedBoolean|SVGAnimatedEnumeration|SVGAnimatedInteger|SVGAnimatedLength
|
|
|SVGAnimatedLengthList|SVGAnimatedNumber|SVGAnimatedNumberList|SVGAnimatedPoints|SVGAnimatedPreserveAspectRatio
|
|
|SVGAnimatedRect|SVGAnimatedString|SVGAnimatedTransformList|SVGAnimationElement|SVGCircleElement|SVGClipPathElement
|
|
|SVGCursorElement|SVGDefsElement|SVGDescElement|SVGElement|SVGEllipseElement|SVGEvent|SVGFilterElement|SVGFontElement
|
|
|SVGFontFaceElement|SVGFontFaceFormatElement|SVGFontFaceNameElement|SVGFontFaceSrcElement|SVGFontFaceUriElement
|
|
|SVGForeignObjectElement|SVGGElement|SVGGlyphElement|SVGGradientElement|SVGHKernElement|SVGImageElement|SVGLength
|
|
|SVGLengthList|SVGLineElement|SVGLinearGradientElement|SVGMPathElement|SVGMaskElement|SVGMatrix|SVGMissingGlyphElement
|
|
|SVGNumber|SVGNumberList|SVGPathElement|SVGPatternElement|SVGPoint|SVGPolygonElement|SVGPolylineElement|SVGPreserveAspectRatio
|
|
|SVGRadialGradientElement|SVGRect|SVGRectElement|SVGSVGElement|SVGScriptElement|SVGSetElement|SVGStopElement|SVGStringList
|
|
|SVGStylable|SVGStyleElement|SVGSwitchElement|SVGSymbolElement|SVGTRefElement|SVGTSpanElement|SVGTests|SVGTextElement
|
|
|SVGTextPositioningElement|SVGTitleElement|SVGTransform|SVGTransformList|SVGTransformable|SVGUseElement|SVGVKernElement
|
|
|SVGViewElement|ServiceWorker|ServiceWorkerContainer|ServiceWorkerGlobalScope|ServiceWorkerRegistration|ServiceWorkerState
|
|
|ShadowRoot|SharedWorker|SharedWorkerGlobalScope|SourceBufferList|StereoPannerNode|Storage|StorageEvent|StyleSheet
|
|
|StyleSheetList|SubtleCrypto|SyncEvent|Text|TextMetrics|TimeEvent|TimeRanges|Touch|TouchEvent|TouchList|Transferable
|
|
|TreeWalker|UIEvent|USVString|VRDisplayCapabilities|ValidityState|WaveShaperNode|WebGL|WebGLActiveInfo|WebGLBuffer
|
|
|WebGLContextEvent|WebGLFramebuffer|WebGLProgram|WebGLRenderbuffer|WebGLRenderingContext|WebGLShader|WebGLShaderPrecisionFormat
|
|
|WebGLTexture|WebGLTimerQueryEXT|WebGLTransformFeedback|WebGLUniformLocation|WebGLVertexArrayObject|WebGLVertexArrayObjectOES
|
|
|WebSocket|WebSockets|WebVTT|WheelEvent|Window|WindowBase64|WindowEventHandlers|WindowTimers|Worker|WorkerGlobalScope
|
|
|WorkerLocation|WorkerNavigator|XMLHttpRequest|XMLHttpRequestEventTarget|XMLSerializer|XPathExpression|XPathResult
|
|
|XSLTProcessor))\b(?!\$)</string>
|
|
<key>captures</key>
|
|
<dict>
|
|
<key>1</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>support.variable.dom.tsx</string>
|
|
</dict>
|
|
<key>2</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>support.class.dom.tsx</string>
|
|
</dict>
|
|
</dict>
|
|
</dict>
|
|
<dict>
|
|
<key>match</key>
|
|
<string>(?x) (\.) \s* (?:
|
|
(ATTRIBUTE_NODE|CDATA_SECTION_NODE|COMMENT_NODE|DOCUMENT_FRAGMENT_NODE|DOCUMENT_NODE|DOCUMENT_TYPE_NODE
|
|
|DOMSTRING_SIZE_ERR|ELEMENT_NODE|ENTITY_NODE|ENTITY_REFERENCE_NODE|HIERARCHY_REQUEST_ERR|INDEX_SIZE_ERR
|
|
|INUSE_ATTRIBUTE_ERR|INVALID_CHARACTER_ERR|NO_DATA_ALLOWED_ERR|NO_MODIFICATION_ALLOWED_ERR|NOT_FOUND_ERR
|
|
|NOT_SUPPORTED_ERR|NOTATION_NODE|PROCESSING_INSTRUCTION_NODE|TEXT_NODE|WRONG_DOCUMENT_ERR)
|
|
|
|
|
(_content|[xyz]|abbr|above|accept|acceptCharset|accessKey|action|align|[av]Link(?:color)?|all|alt|anchors|appCodeName
|
|
|appCore|applets|appMinorVersion|appName|appVersion|archive|areas|arguments|attributes|availHeight|availLeft|availTop
|
|
|availWidth|axis|background|backgroundColor|backgroundImage|below|bgColor|body|border|borderBottomWidth|borderColor
|
|
|borderLeftWidth|borderRightWidth|borderStyle|borderTopWidth|borderWidth|bottom|bufferDepth|callee|caller|caption
|
|
|cellPadding|cells|cellSpacing|ch|characterSet|charset|checked|childNodes|chOff|cite|classes|className|clear
|
|
|clientInformation|clip|clipBoardData|closed|code|codeBase|codeType|color|colorDepth|cols|colSpan|compact|complete
|
|
|components|content|controllers|cookie|cookieEnabled|cords|cpuClass|crypto|current|data|dateTime|declare|defaultCharset
|
|
|defaultChecked|defaultSelected|defaultStatus|defaultValue|defaultView|defer|description|dialogArguments|dialogHeight
|
|
|dialogLeft|dialogTop|dialogWidth|dir|directories|disabled|display|docmain|doctype|documentElement|elements|embeds
|
|
|enabledPlugin|encoding|enctype|entities|event|expando|external|face|fgColor|filename|firstChild|fontFamily|fontSize
|
|
|fontWeight|form|formName|forms|frame|frameBorder|frameElement|frames|hasFocus|hash|headers|height|history|host
|
|
|hostname|href|hreflang|hspace|htmlFor|httpEquiv|id|ids|ignoreCase|images|implementation|index|innerHeight|innerWidth
|
|
|input|isMap|label|lang|language|lastChild|lastIndex|lastMatch|lastModified|lastParen|layer[sXY]|left|leftContext
|
|
|lineHeight|link|linkColor|links|listStyleType|localName|location|locationbar|longDesc|lowsrc|lowSrc|marginBottom
|
|
|marginHeight|marginLeft|marginRight|marginTop|marginWidth|maxLength|media|menubar|method|mimeTypes|multiline|multiple
|
|
|name|nameProp|namespaces|namespaceURI|next|nextSibling|nodeName|nodeType|nodeValue|noHref|noResize|noShade|notationName
|
|
|notations|noWrap|object|offscreenBuffering|onLine|onreadystatechange|opener|opsProfile|options|oscpu|outerHeight
|
|
|outerWidth|ownerDocument|paddingBottom|paddingLeft|paddingRight|paddingTop|page[XY]|page[XY]Offset|parent|parentLayer
|
|
|parentNode|parentWindow|pathname|personalbar|pixelDepth|pkcs11|platform|plugins|port|prefix|previous|previousDibling
|
|
|product|productSub|profile|profileend|prompt|prompter|protocol|publicId|readOnly|readyState|referrer|rel|responseText
|
|
|responseXML|rev|right|rightContext|rowIndex|rows|rowSpan|rules|scheme|scope|screen[XY]|screenLeft|screenTop|scripts
|
|
|scrollbars|scrolling|sectionRowIndex|security|securityPolicy|selected|selectedIndex|selection|self|shape|siblingAbove
|
|
|siblingBelow|size|source|specified|standby|start|status|statusbar|statusText|style|styleSheets|suffixes|summary
|
|
|systemId|systemLanguage|tagName|tags|target|tBodies|text|textAlign|textDecoration|textIndent|textTransform|tFoot|tHead
|
|
|title|toolbar|top|type|undefined|uniqueID|updateInterval|URL|URLUnencoded|useMap|userAgent|userLanguage|userProfile
|
|
|vAlign|value|valueType|vendor|vendorSub|version|visibility|vspace|whiteSpace|width|X[MS]LDocument|zIndex))\b(?!\$|\s*(<([^<>]|\<[^<>]+\>)+>\s*)?\()</string>
|
|
<key>captures</key>
|
|
<dict>
|
|
<key>1</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>punctuation.accessor.tsx</string>
|
|
</dict>
|
|
<key>2</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>support.constant.dom.tsx</string>
|
|
</dict>
|
|
<key>3</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>support.variable.property.dom.tsx</string>
|
|
</dict>
|
|
</dict>
|
|
</dict>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>support.class.node.tsx</string>
|
|
<key>match</key>
|
|
<string>(?x)(?<!\.|\$)\b(Buffer|EventEmitter|Server|Pipe|Socket|REPLServer|ReadStream|WriteStream|Stream
|
|
|Inflate|Deflate|InflateRaw|DeflateRaw|GZip|GUnzip|Unzip|Zip)\b(?!\$)</string>
|
|
</dict>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>support.module.node.tsx</string>
|
|
<key>match</key>
|
|
<string>(?x)(?<!\.|\$)\b(assert|buffer|child_process|cluster|constants|crypto|dgram|dns|domain|events|fs|http|https|net
|
|
|os|path|punycode|querystring|readline|repl|stream|string_decoder|timers|tls|tty|url|util|vm|zlib)\b(?!\$)</string>
|
|
</dict>
|
|
<dict>
|
|
<key>match</key>
|
|
<string>(?x)(?<!\.|\$)\b(process)(?:(\.)(?:
|
|
(arch|argv|config|connected|env|execArgv|execPath|exitCode|mainModule|pid|platform|release|stderr|stdin|stdout|title|version|versions)
|
|
|
|
|
(abort|chdir|cwd|disconnect|exit|[sg]ete?[gu]id|send|[sg]etgroups|initgroups|kill|memoryUsage|nextTick|umask|uptime|hrtime)
|
|
))?\b(?!\$)</string>
|
|
<key>captures</key>
|
|
<dict>
|
|
<key>1</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>support.variable.object.process.tsx</string>
|
|
</dict>
|
|
<key>2</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>punctuation.accessor.tsx</string>
|
|
</dict>
|
|
<key>3</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>support.variable.property.process.tsx</string>
|
|
</dict>
|
|
<key>4</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>support.function.process.tsx</string>
|
|
</dict>
|
|
</dict>
|
|
</dict>
|
|
<dict>
|
|
<key>match</key>
|
|
<string>(?<!\.|\$)\b(?:(exports)|(module)(?:(\.)(exports|id|filename|loaded|parent|children))?)\b(?!\$)</string>
|
|
<key>captures</key>
|
|
<dict>
|
|
<key>1</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>support.type.object.module.tsx</string>
|
|
</dict>
|
|
<key>2</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>support.type.object.module.tsx</string>
|
|
</dict>
|
|
<key>3</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>punctuation.accessor.tsx</string>
|
|
</dict>
|
|
<key>4</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>support.type.object.module.tsx</string>
|
|
</dict>
|
|
</dict>
|
|
</dict>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>support.variable.object.node.tsx</string>
|
|
<key>match</key>
|
|
<string>(?<!\.|\$)\b(global|GLOBAL|root|__dirname|__filename)\b(?!\$)</string>
|
|
</dict>
|
|
<dict>
|
|
<key>match</key>
|
|
<string>(?x) (\.) \s*
|
|
(?:
|
|
(on(?:Rowsinserted|Rowsdelete|Rowenter|Rowexit|Resize|Resizestart|Resizeend|Reset|
|
|
Readystatechange|Mouseout|Mouseover|Mousedown|Mouseup|Mousemove|
|
|
Before(?:cut|deactivate|unload|update|paste|print|editfocus|activate)|
|
|
Blur|Scrolltop|Submit|Select|Selectstart|Selectionchange|Hover|Help|
|
|
Change|Contextmenu|Controlselect|Cut|Cellchange|Clock|Close|Deactivate|
|
|
Datasetchanged|Datasetcomplete|Dataavailable|Drop|Drag|Dragstart|Dragover|
|
|
Dragdrop|Dragenter|Dragend|Dragleave|Dblclick|Unload|Paste|Propertychange|Error|
|
|
Errorupdate|Keydown|Keyup|Keypress|Focus|Load|Activate|Afterupdate|Afterprint|Abort)
|
|
) |
|
|
(shift|showModelessDialog|showModalDialog|showHelp|scroll|scrollX|scrollByPages|
|
|
scrollByLines|scrollY|scrollTo|stop|strike|sizeToContent|sidebar|signText|sort|
|
|
sup|sub|substr|substring|splice|split|send|set(?:Milliseconds|Seconds|Minutes|Hours|
|
|
Month|Year|FullYear|Date|UTC(?:Milliseconds|Seconds|Minutes|Hours|Month|FullYear|Date)|
|
|
Time|Hotkeys|Cursor|ZOptions|Active|Resizable|RequestHeader)|search|slice|
|
|
savePreferences|small|home|handleEvent|navigate|char|charCodeAt|charAt|concat|
|
|
contextual|confirm|compile|clear|captureEvents|call|createStyleSheet|createPopup|
|
|
createEventObject|to(?:GMTString|UTCString|String|Source|UpperCase|LowerCase|LocaleString)|
|
|
test|taint|taintEnabled|indexOf|italics|disableExternalCapture|dump|detachEvent|unshift|
|
|
untaint|unwatch|updateCommands|join|javaEnabled|pop|push|plugins.refresh|paddings|parse|
|
|
print|prompt|preference|enableExternalCapture|exec|execScript|valueOf|UTC|find|file|
|
|
fileModifiedDate|fileSize|fileCreatedDate|fileUpdatedDate|fixed|fontsize|fontcolor|
|
|
forward|fromCharCode|watch|link|load|lastIndexOf|anchor|attachEvent|atob|apply|alert|
|
|
abort|routeEvents|resize|resizeBy|resizeTo|recalc|returnValue|replace|reverse|reload|
|
|
releaseCapture|releaseEvents|go|get(?:Milliseconds|Seconds|Minutes|Hours|Month|Day|Year|FullYear|
|
|
Time|Date|TimezoneOffset|UTC(?:Milliseconds|Seconds|Minutes|Hours|Day|Month|FullYear|Date)|
|
|
Attention|Selection|ResponseHeader|AllResponseHeaders)|moveBy|moveBelow|moveTo|
|
|
moveToAbsolute|moveAbove|mergeAttributes|match|margins|btoa|big|bold|borderWidths|blink|back
|
|
) |
|
|
(acceptNode|add|addEventListener|addTextTrack|adoptNode|after|animate|append|
|
|
appendChild|appendData|before|blur|canPlayType|captureStream|
|
|
caretPositionFromPoint|caretRangeFromPoint|checkValidity|clear|click|
|
|
cloneContents|cloneNode|cloneRange|close|closest|collapse|
|
|
compareBoundaryPoints|compareDocumentPosition|comparePoint|contains|
|
|
convertPointFromNode|convertQuadFromNode|convertRectFromNode|createAttribute|
|
|
createAttributeNS|createCaption|createCDATASection|createComment|
|
|
createContextualFragment|createDocument|createDocumentFragment|
|
|
createDocumentType|createElement|createElementNS|createEntityReference|
|
|
createEvent|createExpression|createHTMLDocument|createNodeIterator|
|
|
createNSResolver|createProcessingInstruction|createRange|createShadowRoot|
|
|
createTBody|createTextNode|createTFoot|createTHead|createTreeWalker|delete|
|
|
deleteCaption|deleteCell|deleteContents|deleteData|deleteRow|deleteTFoot|
|
|
deleteTHead|detach|disconnect|dispatchEvent|elementFromPoint|elementsFromPoint|
|
|
enableStyleSheetsForSet|entries|evaluate|execCommand|exitFullscreen|
|
|
exitPointerLock|expand|extractContents|fastSeek|firstChild|focus|forEach|get|
|
|
getAll|getAnimations|getAttribute|getAttributeNames|getAttributeNode|
|
|
getAttributeNodeNS|getAttributeNS|getBoundingClientRect|getBoxQuads|
|
|
getClientRects|getContext|getDestinationInsertionPoints|getElementById|
|
|
getElementsByClassName|getElementsByName|getElementsByTagName|
|
|
getElementsByTagNameNS|getItem|getNamedItem|getSelection|getStartDate|
|
|
getVideoPlaybackQuality|has|hasAttribute|hasAttributeNS|hasAttributes|
|
|
hasChildNodes|hasFeature|hasFocus|importNode|initEvent|insertAdjacentElement|
|
|
insertAdjacentHTML|insertAdjacentText|insertBefore|insertCell|insertData|
|
|
insertNode|insertRow|intersectsNode|isDefaultNamespace|isEqualNode|
|
|
isPointInRange|isSameNode|item|key|keys|lastChild|load|lookupNamespaceURI|
|
|
lookupPrefix|matches|move|moveAttribute|moveAttributeNode|moveChild|
|
|
moveNamedItem|namedItem|nextNode|nextSibling|normalize|observe|open|
|
|
parentNode|pause|play|postMessage|prepend|preventDefault|previousNode|
|
|
previousSibling|probablySupportsContext|queryCommandEnabled|
|
|
queryCommandIndeterm|queryCommandState|queryCommandSupported|queryCommandValue|
|
|
querySelector|querySelectorAll|registerContentHandler|registerElement|
|
|
registerProtocolHandler|releaseCapture|releaseEvents|remove|removeAttribute|
|
|
removeAttributeNode|removeAttributeNS|removeChild|removeEventListener|
|
|
removeItem|replace|replaceChild|replaceData|replaceWith|reportValidity|
|
|
requestFullscreen|requestPointerLock|reset|scroll|scrollBy|scrollIntoView|
|
|
scrollTo|seekToNextFrame|select|selectNode|selectNodeContents|set|setAttribute|
|
|
setAttributeNode|setAttributeNodeNS|setAttributeNS|setCapture|
|
|
setCustomValidity|setEnd|setEndAfter|setEndBefore|setItem|setNamedItem|
|
|
setRangeText|setSelectionRange|setSinkId|setStart|setStartAfter|setStartBefore|
|
|
slice|splitText|stepDown|stepUp|stopImmediatePropagation|stopPropagation|
|
|
submit|substringData|supports|surroundContents|takeRecords|terminate|toBlob|
|
|
toDataURL|toggle|toString|values|write|writeln
|
|
)
|
|
)(?=\s*\()</string>
|
|
<key>captures</key>
|
|
<dict>
|
|
<key>1</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>punctuation.accessor.tsx</string>
|
|
</dict>
|
|
<key>2</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>support.function.event-handler.tsx</string>
|
|
</dict>
|
|
<key>3</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>support.function.tsx</string>
|
|
</dict>
|
|
<key>4</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>support.function.dom.tsx</string>
|
|
</dict>
|
|
</dict>
|
|
</dict>
|
|
</array>
|
|
</dict>
|
|
<key>function-call</key>
|
|
<dict>
|
|
<key>begin</key>
|
|
<string>(?:(\.)\s*)?([_$[:alpha:]][_$[:alnum:]]*)\s*(?=(<([^<>]|\<[^<>]+\>)+>\s*)?\()</string>
|
|
<key>beginCaptures</key>
|
|
<dict>
|
|
<key>1</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>punctuation.accessor.tsx</string>
|
|
</dict>
|
|
<key>2</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>entity.name.function.tsx</string>
|
|
</dict>
|
|
</dict>
|
|
<key>end</key>
|
|
<string>(?=\()</string>
|
|
<key>patterns</key>
|
|
<array>
|
|
<dict>
|
|
<key>include</key>
|
|
<string>#comment</string>
|
|
</dict>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>meta.type.parameters.tsx</string>
|
|
<key>begin</key>
|
|
<string>\<</string>
|
|
<key>beginCaptures</key>
|
|
<dict>
|
|
<key>0</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>punctuation.definition.typeparameters.begin.tsx</string>
|
|
</dict>
|
|
</dict>
|
|
<key>end</key>
|
|
<string>\></string>
|
|
<key>endCaptures</key>
|
|
<dict>
|
|
<key>0</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>punctuation.definition.typeparameters.end.tsx</string>
|
|
</dict>
|
|
</dict>
|
|
<key>patterns</key>
|
|
<array>
|
|
<dict>
|
|
<key>include</key>
|
|
<string>#type</string>
|
|
</dict>
|
|
<dict>
|
|
<key>include</key>
|
|
<string>#punctuation-comma</string>
|
|
</dict>
|
|
</array>
|
|
</dict>
|
|
</array>
|
|
</dict>
|
|
<key>identifiers</key>
|
|
<dict>
|
|
<key>patterns</key>
|
|
<array>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>support.class.tsx</string>
|
|
<key>match</key>
|
|
<string>([_$[:alpha:]][_$[:alnum:]]*)(?=\s*\.\s*prototype\b(?!\$))</string>
|
|
</dict>
|
|
<dict>
|
|
<key>match</key>
|
|
<string>(?x)(\.)\s*(?:
|
|
([[:upper:]][_$[:digit:][:upper:]]*) |
|
|
([_$[:alpha:]][_$[:alnum:]]*)
|
|
)(?=\s*\.\s*[_$[:alpha:]][_$[:alnum:]]*)</string>
|
|
<key>captures</key>
|
|
<dict>
|
|
<key>1</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>punctuation.accessor.tsx</string>
|
|
</dict>
|
|
<key>2</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>constant.other.object.property.tsx</string>
|
|
</dict>
|
|
<key>3</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>variable.other.object.property.tsx</string>
|
|
</dict>
|
|
</dict>
|
|
</dict>
|
|
<dict>
|
|
<key>match</key>
|
|
<string>(?x)(?:(\.)\s*)?([_$[:alpha:]][_$[:alnum:]]*)(?=\s*=\s*( (async\s+)|(function\s+)| ([_$[:alpha:]][_$[:alnum:]]*\s*=>)| ((<([^<>]|\<[^<>]+\>)+>\s*)?\(([^()]|\([^()]*\))*\)(\s*:\s*(.)*)?\s*=>)))</string>
|
|
<key>captures</key>
|
|
<dict>
|
|
<key>1</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>punctuation.accessor.tsx</string>
|
|
</dict>
|
|
<key>2</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>entity.name.function.tsx</string>
|
|
</dict>
|
|
</dict>
|
|
</dict>
|
|
<dict>
|
|
<key>match</key>
|
|
<string>(\.)\s*([[:upper:]][_$[:digit:][:upper:]]*)(?![_$[:alnum:]])</string>
|
|
<key>captures</key>
|
|
<dict>
|
|
<key>1</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>punctuation.accessor.tsx</string>
|
|
</dict>
|
|
<key>2</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>constant.other.property.tsx</string>
|
|
</dict>
|
|
</dict>
|
|
</dict>
|
|
<dict>
|
|
<key>match</key>
|
|
<string>(\.)\s*([_$[:alpha:]][_$[:alnum:]]*)</string>
|
|
<key>captures</key>
|
|
<dict>
|
|
<key>1</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>punctuation.accessor.tsx</string>
|
|
</dict>
|
|
<key>2</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>variable.other.property.tsx</string>
|
|
</dict>
|
|
</dict>
|
|
</dict>
|
|
<dict>
|
|
<key>match</key>
|
|
<string>(?x)(?:
|
|
([[:upper:]][_$[:digit:][:upper:]]*) |
|
|
([_$[:alpha:]][_$[:alnum:]]*)
|
|
)(?=\s*\.\s*[_$[:alpha:]][_$[:alnum:]]*)</string>
|
|
<key>captures</key>
|
|
<dict>
|
|
<key>1</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>constant.other.object.tsx</string>
|
|
</dict>
|
|
<key>2</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>variable.other.object.tsx</string>
|
|
</dict>
|
|
</dict>
|
|
</dict>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>constant.other.tsx</string>
|
|
<key>match</key>
|
|
<string>([[:upper:]][_$[:digit:][:upper:]]*)(?![_$[:alnum:]])</string>
|
|
</dict>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>variable.other.readwrite.tsx</string>
|
|
<key>match</key>
|
|
<string>[_$[:alpha:]][_$[:alnum:]]*</string>
|
|
</dict>
|
|
</array>
|
|
</dict>
|
|
<key>cast</key>
|
|
<dict>
|
|
<key>patterns</key>
|
|
<array>
|
|
<dict>
|
|
<key>include</key>
|
|
<string>#jsx</string>
|
|
</dict>
|
|
</array>
|
|
</dict>
|
|
<key>new-expr</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>new.expr.tsx</string>
|
|
<key>begin</key>
|
|
<string>(?<!\.|\$)\b(new)\b(?!\$)</string>
|
|
<key>beginCaptures</key>
|
|
<dict>
|
|
<key>1</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>keyword.operator.new.tsx</string>
|
|
</dict>
|
|
</dict>
|
|
<key>end</key>
|
|
<string>(?=[(;),]|$|((?<!\.|\$)\bnew\b(?!\$)))</string>
|
|
<key>patterns</key>
|
|
<array>
|
|
<dict>
|
|
<key>include</key>
|
|
<string>#type</string>
|
|
</dict>
|
|
</array>
|
|
</dict>
|
|
<key>object-member</key>
|
|
<dict>
|
|
<key>patterns</key>
|
|
<array>
|
|
<dict>
|
|
<key>include</key>
|
|
<string>#comment</string>
|
|
</dict>
|
|
<dict>
|
|
<key>include</key>
|
|
<string>#method-declaration</string>
|
|
</dict>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>meta.object.member.tsx</string>
|
|
<key>begin</key>
|
|
<string>(?=(?:(?:\'[^']*\')|(?:\"[^"]*\")|(?:\[[^\]]*\]))\s*:)</string>
|
|
<key>end</key>
|
|
<string>(?=,|\})</string>
|
|
<key>patterns</key>
|
|
<array>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>meta.object-literal.key.tsx</string>
|
|
<key>begin</key>
|
|
<string>(?=(?:(?:\'[^']*\')|(?:\"[^"]*\")|(?:\[[^\]]*\]))\s*:)</string>
|
|
<key>end</key>
|
|
<string>:</string>
|
|
<key>endCaptures</key>
|
|
<dict>
|
|
<key>0</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>punctuation.separator.key-value.tsx</string>
|
|
</dict>
|
|
</dict>
|
|
<key>patterns</key>
|
|
<array>
|
|
<dict>
|
|
<key>include</key>
|
|
<string>#string</string>
|
|
</dict>
|
|
<dict>
|
|
<key>include</key>
|
|
<string>#array-literal</string>
|
|
</dict>
|
|
</array>
|
|
</dict>
|
|
<dict>
|
|
<key>include</key>
|
|
<string>#expression</string>
|
|
</dict>
|
|
</array>
|
|
</dict>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>meta.object.member.tsx</string>
|
|
<key>begin</key>
|
|
<string>(?x)(?:([_$[:alpha:]][_$[:alnum:]]*)\s*(:)(?=\s*( (async\s+)|(function\s+)| ([_$[:alpha:]][_$[:alnum:]]*\s*=>)| ((<([^<>]|\<[^<>]+\>)+>\s*)?\(([^()]|\([^()]*\))*\)(\s*:\s*(.)*)?\s*=>))))</string>
|
|
<key>beginCaptures</key>
|
|
<dict>
|
|
<key>0</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>meta.object-literal.key.tsx</string>
|
|
</dict>
|
|
<key>1</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>entity.name.function.tsx</string>
|
|
</dict>
|
|
<key>2</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>punctuation.separator.key-value.tsx</string>
|
|
</dict>
|
|
</dict>
|
|
<key>end</key>
|
|
<string>(?=,|\})</string>
|
|
<key>patterns</key>
|
|
<array>
|
|
<dict>
|
|
<key>include</key>
|
|
<string>#expression</string>
|
|
</dict>
|
|
</array>
|
|
</dict>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>meta.object.member.tsx</string>
|
|
<key>begin</key>
|
|
<string>(?:[_$[:alpha:]][_$[:alnum:]]*)\s*(:)</string>
|
|
<key>beginCaptures</key>
|
|
<dict>
|
|
<key>0</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>meta.object-literal.key.tsx</string>
|
|
</dict>
|
|
<key>1</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>punctuation.separator.key-value.tsx</string>
|
|
</dict>
|
|
</dict>
|
|
<key>end</key>
|
|
<string>(?=,|\})</string>
|
|
<key>patterns</key>
|
|
<array>
|
|
<dict>
|
|
<key>include</key>
|
|
<string>#expression</string>
|
|
</dict>
|
|
</array>
|
|
</dict>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>meta.object.member.tsx</string>
|
|
<key>begin</key>
|
|
<string>\.\.\.</string>
|
|
<key>beginCaptures</key>
|
|
<dict>
|
|
<key>0</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>keyword.operator.spread.tsx</string>
|
|
</dict>
|
|
</dict>
|
|
<key>end</key>
|
|
<string>(?=,|\})</string>
|
|
<key>patterns</key>
|
|
<array>
|
|
<dict>
|
|
<key>include</key>
|
|
<string>#expression</string>
|
|
</dict>
|
|
</array>
|
|
</dict>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>meta.object.member.tsx</string>
|
|
<key>match</key>
|
|
<string>([_$[:alpha:]][_$[:alnum:]]*)\s*(?=,|\}|$)</string>
|
|
<key>captures</key>
|
|
<dict>
|
|
<key>1</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>variable.other.readwrite.tsx</string>
|
|
</dict>
|
|
</dict>
|
|
</dict>
|
|
<dict>
|
|
<key>include</key>
|
|
<string>#punctuation-comma</string>
|
|
</dict>
|
|
</array>
|
|
</dict>
|
|
<key>expression-operators</key>
|
|
<dict>
|
|
<key>patterns</key>
|
|
<array>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>keyword.control.flow.tsx</string>
|
|
<key>match</key>
|
|
<string>(?<!\.|\$)\b(await)\b(?!\$)</string>
|
|
</dict>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>keyword.operator.delete.tsx</string>
|
|
<key>match</key>
|
|
<string>(?<!\.|\$)\bdelete\b(?!\$)</string>
|
|
</dict>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>keyword.operator.in.tsx</string>
|
|
<key>match</key>
|
|
<string>(?<!\.|\$)\bin\b(?!\$)</string>
|
|
</dict>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>keyword.operator.of.tsx</string>
|
|
<key>match</key>
|
|
<string>(?<!\.|\$)\bof\b(?!\$)</string>
|
|
</dict>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>keyword.operator.instanceof.tsx</string>
|
|
<key>match</key>
|
|
<string>(?<!\.|\$)\binstanceof\b(?!\$)</string>
|
|
</dict>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>keyword.operator.new.tsx</string>
|
|
<key>match</key>
|
|
<string>(?<!\.|\$)\bnew\b(?!\$)</string>
|
|
</dict>
|
|
<dict>
|
|
<key>include</key>
|
|
<string>#typeof-operator</string>
|
|
</dict>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>keyword.operator.void.tsx</string>
|
|
<key>match</key>
|
|
<string>(?<!\.|\$)\bvoid\b(?!\$)</string>
|
|
</dict>
|
|
<dict>
|
|
<key>begin</key>
|
|
<string>(?<!\.|\$)\bas\b(?!\$)</string>
|
|
<key>beginCaptures</key>
|
|
<dict>
|
|
<key>0</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>keyword.control.as.tsx</string>
|
|
</dict>
|
|
</dict>
|
|
<key>end</key>
|
|
<string>(?=$|[;,})\]])</string>
|
|
<key>patterns</key>
|
|
<array>
|
|
<dict>
|
|
<key>include</key>
|
|
<string>#type</string>
|
|
</dict>
|
|
</array>
|
|
</dict>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>keyword.operator.spread.tsx</string>
|
|
<key>match</key>
|
|
<string>\.\.\.</string>
|
|
</dict>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>keyword.operator.assignment.compound.tsx</string>
|
|
<key>match</key>
|
|
<string>\*=|(?<!\()/=|%=|\+=|\-=</string>
|
|
</dict>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>keyword.operator.assignment.compound.bitwise.tsx</string>
|
|
<key>match</key>
|
|
<string>\&=|\^=|<<=|>>=|>>>=|\|=</string>
|
|
</dict>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>keyword.operator.bitwise.shift.tsx</string>
|
|
<key>match</key>
|
|
<string><<|>>>|>></string>
|
|
</dict>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>keyword.operator.comparison.tsx</string>
|
|
<key>match</key>
|
|
<string>===|!==|==|!=</string>
|
|
</dict>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>keyword.operator.relational.tsx</string>
|
|
<key>match</key>
|
|
<string><=|>=|<>|<|></string>
|
|
</dict>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>keyword.operator.logical.tsx</string>
|
|
<key>match</key>
|
|
<string>\!|&&|\|\|</string>
|
|
</dict>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>keyword.operator.bitwise.tsx</string>
|
|
<key>match</key>
|
|
<string>\&|~|\^|\|</string>
|
|
</dict>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>keyword.operator.assignment.tsx</string>
|
|
<key>match</key>
|
|
<string>\=</string>
|
|
</dict>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>keyword.operator.decrement.tsx</string>
|
|
<key>match</key>
|
|
<string>--</string>
|
|
</dict>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>keyword.operator.increment.tsx</string>
|
|
<key>match</key>
|
|
<string>\+\+</string>
|
|
</dict>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>keyword.operator.arithmetic.tsx</string>
|
|
<key>match</key>
|
|
<string>%|\*|/|-|\+</string>
|
|
</dict>
|
|
</array>
|
|
</dict>
|
|
<key>typeof-operator</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>keyword.operator.typeof.tsx</string>
|
|
<key>match</key>
|
|
<string>(?<!\.|\$)\btypeof\b(?!\$)</string>
|
|
</dict>
|
|
<key>arrow-function</key>
|
|
<dict>
|
|
<key>patterns</key>
|
|
<array>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>meta.arrow.tsx</string>
|
|
<key>match</key>
|
|
<string>(?<!\.|\$)(\basync)(?=\s*[<(])</string>
|
|
<key>captures</key>
|
|
<dict>
|
|
<key>1</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>storage.modifier.async.tsx</string>
|
|
</dict>
|
|
</dict>
|
|
</dict>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>meta.arrow.tsx</string>
|
|
<key>match</key>
|
|
<string>(?:(?<!\.|\$)(\basync)\s*)?([_$[:alpha:]][_$[:alnum:]]*)\s*(?==>)</string>
|
|
<key>captures</key>
|
|
<dict>
|
|
<key>1</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>storage.modifier.async.tsx</string>
|
|
</dict>
|
|
<key>2</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>variable.parameter.tsx</string>
|
|
</dict>
|
|
</dict>
|
|
</dict>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>meta.arrow.tsx</string>
|
|
<key>begin</key>
|
|
<string>(?x)(?<=return|throw|yield|await|async|default|[=(\[,:>*])\s*(?=(<([^<>]|\<[^<>]+\>)+>\s*)?\(([^()]|\([^()]*\))*\)(\s*:\s*(.)*)?\s*=>)</string>
|
|
<key>end</key>
|
|
<string>(?==>)</string>
|
|
<key>patterns</key>
|
|
<array>
|
|
<dict>
|
|
<key>include</key>
|
|
<string>#comment</string>
|
|
</dict>
|
|
<dict>
|
|
<key>include</key>
|
|
<string>#type-parameters</string>
|
|
</dict>
|
|
<dict>
|
|
<key>include</key>
|
|
<string>#function-parameters</string>
|
|
</dict>
|
|
<dict>
|
|
<key>include</key>
|
|
<string>#arrow-return-type</string>
|
|
</dict>
|
|
</array>
|
|
</dict>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>meta.arrow.tsx</string>
|
|
<key>begin</key>
|
|
<string>=></string>
|
|
<key>beginCaptures</key>
|
|
<dict>
|
|
<key>0</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>storage.type.function.arrow.tsx</string>
|
|
</dict>
|
|
</dict>
|
|
<key>end</key>
|
|
<string>(?<=\})|((?!\{)(?=\S))</string>
|
|
<key>patterns</key>
|
|
<array>
|
|
<dict>
|
|
<key>include</key>
|
|
<string>#decl-block</string>
|
|
</dict>
|
|
<dict>
|
|
<key>include</key>
|
|
<string>#expression</string>
|
|
</dict>
|
|
</array>
|
|
</dict>
|
|
</array>
|
|
</dict>
|
|
<key>arrow-return-type</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>meta.return.type.arrow.tsx</string>
|
|
<key>begin</key>
|
|
<string>(?<=\))\s*(:)</string>
|
|
<key>beginCaptures</key>
|
|
<dict>
|
|
<key>1</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>keyword.operator.type.annotation.tsx</string>
|
|
</dict>
|
|
</dict>
|
|
<key>end</key>
|
|
<string>(?<!:)((?=$)|(?==>|;|//))</string>
|
|
<key>patterns</key>
|
|
<array>
|
|
<dict>
|
|
<key>include</key>
|
|
<string>#type-predicate-operator</string>
|
|
</dict>
|
|
<dict>
|
|
<key>include</key>
|
|
<string>#type</string>
|
|
</dict>
|
|
</array>
|
|
</dict>
|
|
<key>punctuation-comma</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>punctuation.separator.comma.tsx</string>
|
|
<key>match</key>
|
|
<string>,</string>
|
|
</dict>
|
|
<key>punctuation-semicolon</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>punctuation.terminator.statement.tsx</string>
|
|
<key>match</key>
|
|
<string>;</string>
|
|
</dict>
|
|
<key>punctuation-accessor</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>punctuation.accessor.tsx</string>
|
|
<key>match</key>
|
|
<string>\.</string>
|
|
</dict>
|
|
<key>paren-expression</key>
|
|
<dict>
|
|
<key>begin</key>
|
|
<string>\(</string>
|
|
<key>beginCaptures</key>
|
|
<dict>
|
|
<key>0</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>meta.brace.round.tsx</string>
|
|
</dict>
|
|
</dict>
|
|
<key>end</key>
|
|
<string>\)</string>
|
|
<key>endCaptures</key>
|
|
<dict>
|
|
<key>0</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>meta.brace.round.tsx</string>
|
|
</dict>
|
|
</dict>
|
|
<key>patterns</key>
|
|
<array>
|
|
<dict>
|
|
<key>include</key>
|
|
<string>#expression</string>
|
|
</dict>
|
|
<dict>
|
|
<key>include</key>
|
|
<string>#punctuation-comma</string>
|
|
</dict>
|
|
</array>
|
|
</dict>
|
|
<key>qstring-double</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>string.quoted.double.tsx</string>
|
|
<key>begin</key>
|
|
<string>"</string>
|
|
<key>beginCaptures</key>
|
|
<dict>
|
|
<key>0</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>punctuation.definition.string.begin.tsx</string>
|
|
</dict>
|
|
</dict>
|
|
<key>end</key>
|
|
<string>(")|((?:[^\\\n])$)</string>
|
|
<key>endCaptures</key>
|
|
<dict>
|
|
<key>1</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>punctuation.definition.string.end.tsx</string>
|
|
</dict>
|
|
<key>2</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>invalid.illegal.newline.tsx</string>
|
|
</dict>
|
|
</dict>
|
|
<key>patterns</key>
|
|
<array>
|
|
<dict>
|
|
<key>include</key>
|
|
<string>#string-character-escape</string>
|
|
</dict>
|
|
</array>
|
|
</dict>
|
|
<key>qstring-single</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>string.quoted.single.tsx</string>
|
|
<key>begin</key>
|
|
<string>'</string>
|
|
<key>beginCaptures</key>
|
|
<dict>
|
|
<key>0</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>punctuation.definition.string.begin.tsx</string>
|
|
</dict>
|
|
</dict>
|
|
<key>end</key>
|
|
<string>(\')|((?:[^\\\n])$)</string>
|
|
<key>endCaptures</key>
|
|
<dict>
|
|
<key>1</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>punctuation.definition.string.end.tsx</string>
|
|
</dict>
|
|
<key>2</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>invalid.illegal.newline.tsx</string>
|
|
</dict>
|
|
</dict>
|
|
<key>patterns</key>
|
|
<array>
|
|
<dict>
|
|
<key>include</key>
|
|
<string>#string-character-escape</string>
|
|
</dict>
|
|
</array>
|
|
</dict>
|
|
<key>regex</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>string.regex.tsx</string>
|
|
<key>begin</key>
|
|
<string>(?<=[=(:,\[?+!]|return|case|=>|&&|\|\||\*\/)\s*(/)(?![/*+?])(?=.*/)</string>
|
|
<key>beginCaptures</key>
|
|
<dict>
|
|
<key>1</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>punctuation.definition.string.begin.tsx</string>
|
|
</dict>
|
|
</dict>
|
|
<key>end</key>
|
|
<string>(/)([gimuy]*)</string>
|
|
<key>endCaptures</key>
|
|
<dict>
|
|
<key>1</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>punctuation.definition.string.end.tsx</string>
|
|
</dict>
|
|
<key>2</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>keyword.other.tsx</string>
|
|
</dict>
|
|
</dict>
|
|
<key>patterns</key>
|
|
<array>
|
|
<dict>
|
|
<key>include</key>
|
|
<string>#regexp</string>
|
|
</dict>
|
|
</array>
|
|
</dict>
|
|
<key>regexp</key>
|
|
<dict>
|
|
<key>patterns</key>
|
|
<array>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>keyword.control.anchor.regexp</string>
|
|
<key>match</key>
|
|
<string>\\[bB]|\^|\$</string>
|
|
</dict>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>keyword.other.back-reference.regexp</string>
|
|
<key>match</key>
|
|
<string>\\[1-9]\d*</string>
|
|
</dict>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>keyword.operator.quantifier.regexp</string>
|
|
<key>match</key>
|
|
<string>[?+*]|\{(\d+,\d+|\d+,|,\d+|\d+)\}\??</string>
|
|
</dict>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>keyword.operator.or.regexp</string>
|
|
<key>match</key>
|
|
<string>\|</string>
|
|
</dict>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>meta.group.assertion.regexp</string>
|
|
<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>
|
|
<key>patterns</key>
|
|
<array>
|
|
<dict>
|
|
<key>include</key>
|
|
<string>#regexp</string>
|
|
</dict>
|
|
</array>
|
|
</dict>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>meta.group.regexp</string>
|
|
<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>patterns</key>
|
|
<array>
|
|
<dict>
|
|
<key>include</key>
|
|
<string>#regexp</string>
|
|
</dict>
|
|
</array>
|
|
</dict>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>constant.other.character-class.set.regexp</string>
|
|
<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>patterns</key>
|
|
<array>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>constant.other.character-class.range.regexp</string>
|
|
<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>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>
|
|
</dict>
|
|
<dict>
|
|
<key>include</key>
|
|
<string>#regex-character-class</string>
|
|
</dict>
|
|
</array>
|
|
</dict>
|
|
<dict>
|
|
<key>include</key>
|
|
<string>#regex-character-class</string>
|
|
</dict>
|
|
</array>
|
|
</dict>
|
|
<key>regex-character-class</key>
|
|
<dict>
|
|
<key>patterns</key>
|
|
<array>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>constant.other.character-class.regexp</string>
|
|
<key>match</key>
|
|
<string>\\[wWsSdDtrnvf]|\.</string>
|
|
</dict>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>constant.character.numeric.regexp</string>
|
|
<key>match</key>
|
|
<string>\\([0-7]{3}|x\h\h|u\h\h\h\h)</string>
|
|
</dict>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>constant.character.control.regexp</string>
|
|
<key>match</key>
|
|
<string>\\c[A-Z]</string>
|
|
</dict>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>constant.character.escape.backslash.regexp</string>
|
|
<key>match</key>
|
|
<string>\\.</string>
|
|
</dict>
|
|
</array>
|
|
</dict>
|
|
<key>string</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>string.tsx</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>template</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>string.template.tsx</string>
|
|
<key>begin</key>
|
|
<string>([_$[:alpha:]][_$[:alnum:]]*)?(`)</string>
|
|
<key>beginCaptures</key>
|
|
<dict>
|
|
<key>1</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>entity.name.function.tagged-template.tsx</string>
|
|
</dict>
|
|
<key>2</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>punctuation.definition.string.template.begin.tsx</string>
|
|
</dict>
|
|
</dict>
|
|
<key>end</key>
|
|
<string>`</string>
|
|
<key>endCaptures</key>
|
|
<dict>
|
|
<key>0</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>punctuation.definition.string.template.end.tsx</string>
|
|
</dict>
|
|
</dict>
|
|
<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>string-character-escape</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>constant.character.escape.tsx</string>
|
|
<key>match</key>
|
|
<string>\\(x\h{2}|[0-2][0-7]{0,2}|3[0-6][0-7]?|37[0-7]?|[4-7][0-7]?|.|$)</string>
|
|
</dict>
|
|
<key>template-substitution-element</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>meta.template.expression.tsx</string>
|
|
<key>begin</key>
|
|
<string>\$\{</string>
|
|
<key>beginCaptures</key>
|
|
<dict>
|
|
<key>0</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>punctuation.definition.template-expression.begin.tsx</string>
|
|
</dict>
|
|
</dict>
|
|
<key>end</key>
|
|
<string>\}</string>
|
|
<key>endCaptures</key>
|
|
<dict>
|
|
<key>0</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>punctuation.definition.template-expression.end.tsx</string>
|
|
</dict>
|
|
</dict>
|
|
<key>patterns</key>
|
|
<array>
|
|
<dict>
|
|
<key>include</key>
|
|
<string>#expression</string>
|
|
</dict>
|
|
</array>
|
|
</dict>
|
|
<key>literal</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>literal.tsx</string>
|
|
<key>patterns</key>
|
|
<array>
|
|
<dict>
|
|
<key>include</key>
|
|
<string>#numeric-literal</string>
|
|
</dict>
|
|
<dict>
|
|
<key>include</key>
|
|
<string>#boolean-literal</string>
|
|
</dict>
|
|
<dict>
|
|
<key>include</key>
|
|
<string>#null-literal</string>
|
|
</dict>
|
|
<dict>
|
|
<key>include</key>
|
|
<string>#undefined-literal</string>
|
|
</dict>
|
|
<dict>
|
|
<key>include</key>
|
|
<string>#numericConstant-literal</string>
|
|
</dict>
|
|
<dict>
|
|
<key>include</key>
|
|
<string>#array-literal</string>
|
|
</dict>
|
|
<dict>
|
|
<key>include</key>
|
|
<string>#this-literal</string>
|
|
</dict>
|
|
<dict>
|
|
<key>include</key>
|
|
<string>#super-literal</string>
|
|
</dict>
|
|
</array>
|
|
</dict>
|
|
<key>array-literal</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>meta.array.literal.tsx</string>
|
|
<key>begin</key>
|
|
<string>\[</string>
|
|
<key>beginCaptures</key>
|
|
<dict>
|
|
<key>0</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>meta.brace.square.tsx</string>
|
|
</dict>
|
|
</dict>
|
|
<key>end</key>
|
|
<string>\]</string>
|
|
<key>endCaptures</key>
|
|
<dict>
|
|
<key>0</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>meta.brace.square.tsx</string>
|
|
</dict>
|
|
</dict>
|
|
<key>patterns</key>
|
|
<array>
|
|
<dict>
|
|
<key>include</key>
|
|
<string>#expression</string>
|
|
</dict>
|
|
<dict>
|
|
<key>include</key>
|
|
<string>#punctuation-comma</string>
|
|
</dict>
|
|
</array>
|
|
</dict>
|
|
<key>numeric-literal</key>
|
|
<dict>
|
|
<key>patterns</key>
|
|
<array>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>constant.numeric.hex.tsx</string>
|
|
<key>match</key>
|
|
<string>\b(?<!\$)0(x|X)[0-9a-fA-F]+\b(?!\$)</string>
|
|
</dict>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>constant.numeric.binary.tsx</string>
|
|
<key>match</key>
|
|
<string>\b(?<!\$)0(b|B)[01]+\b(?!\$)</string>
|
|
</dict>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>constant.numeric.octal.tsx</string>
|
|
<key>match</key>
|
|
<string>\b(?<!\$)0(o|O)?[0-7]+\b(?!\$)</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>
|
|
<key>captures</key>
|
|
<dict>
|
|
<key>0</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>constant.numeric.decimal.tsx</string>
|
|
</dict>
|
|
<key>1</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>meta.delimiter.decimal.period.tsx</string>
|
|
</dict>
|
|
<key>2</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>meta.delimiter.decimal.period.tsx</string>
|
|
</dict>
|
|
<key>3</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>meta.delimiter.decimal.period.tsx</string>
|
|
</dict>
|
|
<key>4</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>meta.delimiter.decimal.period.tsx</string>
|
|
</dict>
|
|
<key>5</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>meta.delimiter.decimal.period.tsx</string>
|
|
</dict>
|
|
<key>6</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>meta.delimiter.decimal.period.tsx</string>
|
|
</dict>
|
|
</dict>
|
|
</dict>
|
|
</array>
|
|
</dict>
|
|
<key>boolean-literal</key>
|
|
<dict>
|
|
<key>patterns</key>
|
|
<array>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>constant.language.boolean.true.tsx</string>
|
|
<key>match</key>
|
|
<string>(?<!\.|\$)\btrue\b(?!\$)</string>
|
|
</dict>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>constant.language.boolean.false.tsx</string>
|
|
<key>match</key>
|
|
<string>(?<!\.|\$)\bfalse\b(?!\$)</string>
|
|
</dict>
|
|
</array>
|
|
</dict>
|
|
<key>null-literal</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>constant.language.null.tsx</string>
|
|
<key>match</key>
|
|
<string>(?<!\.|\$)\bnull\b(?!\$)</string>
|
|
</dict>
|
|
<key>this-literal</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>variable.language.this.tsx</string>
|
|
<key>match</key>
|
|
<string>(?<!\.|\$)\bthis\b(?!\$)</string>
|
|
</dict>
|
|
<key>super-literal</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>variable.language.super.tsx</string>
|
|
<key>match</key>
|
|
<string>(?<!\.|\$)\bsuper\b(?!\$)</string>
|
|
</dict>
|
|
<key>undefined-literal</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>constant.language.undefined.tsx</string>
|
|
<key>match</key>
|
|
<string>(?<!\.|\$)\bundefined\b(?!\$)</string>
|
|
</dict>
|
|
<key>numericConstant-literal</key>
|
|
<dict>
|
|
<key>patterns</key>
|
|
<array>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>constant.language.nan.tsx</string>
|
|
<key>match</key>
|
|
<string>(?<!\.|\$)\bNaN\b(?!\$)</string>
|
|
</dict>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>constant.language.infinity.tsx</string>
|
|
<key>match</key>
|
|
<string>(?<!\.|\$)\bInfinity\b(?!\$)</string>
|
|
</dict>
|
|
</array>
|
|
</dict>
|
|
<key>access-modifier</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>storage.modifier.tsx</string>
|
|
<key>match</key>
|
|
<string>(?<!\.|\$)\b(abstract|public|protected|private|readonly|static)\b(?!\$)</string>
|
|
</dict>
|
|
<key>property-accessor</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>storage.type.property.tsx</string>
|
|
<key>match</key>
|
|
<string>(?<!\.|\$)\b(get|set)\b(?!\$)</string>
|
|
</dict>
|
|
<key>comment</key>
|
|
<dict>
|
|
<key>patterns</key>
|
|
<array>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>comment.block.documentation.tsx</string>
|
|
<key>begin</key>
|
|
<string>/\*\*(?!/)</string>
|
|
<key>end</key>
|
|
<string>\*/</string>
|
|
<key>captures</key>
|
|
<dict>
|
|
<key>0</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>punctuation.definition.comment.tsx</string>
|
|
</dict>
|
|
</dict>
|
|
<key>patterns</key>
|
|
<array>
|
|
<dict>
|
|
<key>include</key>
|
|
<string>#docblock</string>
|
|
</dict>
|
|
</array>
|
|
</dict>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>comment.block.tsx</string>
|
|
<key>begin</key>
|
|
<string>/\*</string>
|
|
<key>end</key>
|
|
<string>\*/</string>
|
|
<key>captures</key>
|
|
<dict>
|
|
<key>0</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>punctuation.definition.comment.tsx</string>
|
|
</dict>
|
|
</dict>
|
|
</dict>
|
|
<dict>
|
|
<key>begin</key>
|
|
<string>(^[ \t]+)?(?=//)</string>
|
|
<key>beginCaptures</key>
|
|
<dict>
|
|
<key>1</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>punctuation.whitespace.comment.leading.tsx</string>
|
|
</dict>
|
|
</dict>
|
|
<key>end</key>
|
|
<string>(?=$)</string>
|
|
<key>patterns</key>
|
|
<array>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>comment.line.double-slash.tsx</string>
|
|
<key>begin</key>
|
|
<string>//</string>
|
|
<key>beginCaptures</key>
|
|
<dict>
|
|
<key>0</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>punctuation.definition.comment.tsx</string>
|
|
</dict>
|
|
</dict>
|
|
<key>end</key>
|
|
<string>(?=$)</string>
|
|
</dict>
|
|
</array>
|
|
</dict>
|
|
</array>
|
|
</dict>
|
|
<key>docblock</key>
|
|
<dict>
|
|
<key>patterns</key>
|
|
<array>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>storage.type.class.jsdoc</string>
|
|
<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>
|
|
</dict>
|
|
<dict>
|
|
<key>match</key>
|
|
<string>(?x)
|
|
(?:(?<=@param)|(?<=@arg)|(?<=@argument)|(?<=@type))
|
|
\s+
|
|
({(?:
|
|
\* | # {*} any type
|
|
\? | # {?} unknown type
|
|
(?: # Check for a prefix
|
|
\? | # {?string} nullable type
|
|
! | # {!string} non-nullable type
|
|
\.{3} # {...string} variable number of parameters
|
|
)?
|
|
(?:
|
|
\( # Opening bracket of multiple types with parenthesis {(string|number)}
|
|
[a-zA-Z_$]+
|
|
(?:
|
|
(?:
|
|
[\w$]*
|
|
(?:\[\])? # {(string[]|number)} type application, an array of strings or a number
|
|
) |
|
|
\.?<[\w$]+(?:,\s+[\w$]+)*> # {Array<string>} or {Object<string, number>} type application (optional .)
|
|
)
|
|
(?:
|
|
[\.|~] # {Foo.bar} namespaced, {string|number} multiple, {Foo~bar} class-specific callback
|
|
[a-zA-Z_$]+
|
|
(?:
|
|
(?:
|
|
[\w$]*
|
|
(?:\[\])? # {(string|number[])} type application, a string or an array of numbers
|
|
) |
|
|
\.?<[\w$]+(?:,\s+[\w$]+)*> # {Array<string>} or {Object<string, number>} type application (optional .)
|
|
)
|
|
)*
|
|
\) |
|
|
[a-zA-Z_$]+
|
|
(?:
|
|
(?:
|
|
[\w$]*
|
|
(?:\[\])? # {string[]|number} type application, an array of strings or a number
|
|
) |
|
|
\.?<[\w$]+(?:,\s+[\w$]+)*> # {Array<string>} or {Object<string, number>} type application (optional .)
|
|
)
|
|
(?:
|
|
[\.|~] # {Foo.bar} namespaced, {string|number} multiple, {Foo~bar} class-specific callback
|
|
[a-zA-Z_$]+
|
|
(?:
|
|
[\w$]* |
|
|
\.?<[\w$]+(?:,\s+[\w$]+)*> # {Array<string>} or {Object<string, number>} type application (optional .)
|
|
)
|
|
)*
|
|
)
|
|
# Check for suffix
|
|
(?:\[\])? # {string[]} type application, an array of strings
|
|
=? # {string=} optional parameter
|
|
)})
|
|
\s+
|
|
(
|
|
\[ # [foo] optional parameter
|
|
\s*
|
|
(?:
|
|
[a-zA-Z_$][\w$]*
|
|
(?:
|
|
(?:\[\])? # Foo[].bar properties within an array
|
|
\. # Foo.Bar namespaced parameter
|
|
[a-zA-Z_$][\w$]*
|
|
)*
|
|
(?:
|
|
\s*
|
|
= # [foo=bar] Default parameter value
|
|
\s*
|
|
[\w$\s]*
|
|
)?
|
|
)
|
|
\s*
|
|
\] |
|
|
(?:
|
|
[a-zA-Z_$][\w$]*
|
|
(?:
|
|
(?:\[\])? # Foo[].bar properties within an array
|
|
\. # Foo.Bar namespaced parameter
|
|
[a-zA-Z_$][\w$]*
|
|
)*
|
|
)?
|
|
)
|
|
\s+
|
|
(?:-\s+)? # optional hyphen before the description
|
|
((?:(?!\*\/).)*) # The type description</string>
|
|
<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>
|
|
</dict>
|
|
<dict>
|
|
<key>match</key>
|
|
<string>(?x)
|
|
({(?:
|
|
\* | # {*} any type
|
|
\? | # {?} unknown type
|
|
|
|
(?: # Check for a prefix
|
|
\? | # {?string} nullable type
|
|
! | # {!string} non-nullable type
|
|
\.{3} # {...string} variable number of parameters
|
|
)?
|
|
|
|
(?:
|
|
\( # Opening bracket of multiple types with parenthesis {(string|number)}
|
|
[a-zA-Z_$]+
|
|
(?:
|
|
[\w$]* |
|
|
\.?<[\w$]+(?:,\s+[\w$]+)*> # {Array<string>} or {Object<string, number>} type application (optional .)
|
|
)
|
|
(?:
|
|
[\.|~] # {Foo.bar} namespaced, {string|number} multiple, {Foo~bar} class-specific callback
|
|
[a-zA-Z_$]+
|
|
(?:
|
|
[\w$]* |
|
|
\.?<[\w$]+(?:,\s+[\w$]+)*> # {Array<string>} or {Object<string, number>} type application (optional .)
|
|
)
|
|
)*
|
|
\) |
|
|
[a-zA-Z_$]+
|
|
(?:
|
|
[\w$]* |
|
|
\.?<[\w$]+(?:,\s+[\w$]+)*> # {Array<string>} or {Object<string, number>} type application (optional .)
|
|
)
|
|
(?:
|
|
[\.|~] # {Foo.bar} namespaced, {string|number} multiple, {Foo~bar} class-specific callback
|
|
[a-zA-Z_$]+
|
|
(?:
|
|
[\w$]* |
|
|
\.?<[\w$]+(?:,\s+[\w$]+)*> # {Array<string>} or {Object<string, number>} type application (optional .)
|
|
)
|
|
)*
|
|
)
|
|
# Check for suffix
|
|
(?:\[\])? # {string[]} type application, an array of strings
|
|
=? # {string=} optional parameter
|
|
)})
|
|
\s+
|
|
(?:-\s+)? # optional hyphen before the description
|
|
((?:(?!\*\/).)*) # The type description</string>
|
|
<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>other.description.jsdoc</string>
|
|
</dict>
|
|
</dict>
|
|
</dict>
|
|
</array>
|
|
</dict>
|
|
<key>jsx-tag-attributes</key>
|
|
<dict>
|
|
<key>patterns</key>
|
|
<array>
|
|
<dict>
|
|
<key>include</key>
|
|
<string>#jsx-tag-attribute-name</string>
|
|
</dict>
|
|
<dict>
|
|
<key>include</key>
|
|
<string>#jsx-tag-attribute-assignment</string>
|
|
</dict>
|
|
<dict>
|
|
<key>include</key>
|
|
<string>#jsx-string-double-quoted</string>
|
|
</dict>
|
|
<dict>
|
|
<key>include</key>
|
|
<string>#jsx-string-single-quoted</string>
|
|
</dict>
|
|
<dict>
|
|
<key>include</key>
|
|
<string>#jsx-evaluated-code</string>
|
|
</dict>
|
|
</array>
|
|
</dict>
|
|
<key>jsx-tag-attribute-name</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>meta.tag.attribute-name.tsx</string>
|
|
<key>match</key>
|
|
<string>(?x)
|
|
\s*
|
|
([_$a-zA-Z][-$\w]*)
|
|
(?=\s|=|/?>|/\*|//)</string>
|
|
<key>captures</key>
|
|
<dict>
|
|
<key>1</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>entity.other.attribute-name.tsx</string>
|
|
</dict>
|
|
</dict>
|
|
</dict>
|
|
<key>jsx-tag-attribute-assignment</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>keyword.operator.assignment.tsx</string>
|
|
<key>match</key>
|
|
<string>=(?=\s*(?:'|"|{|/\*|//|\n))</string>
|
|
</dict>
|
|
<key>jsx-string-double-quoted</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>string.jsxAttributeValue.quoted.double.tsx</string>
|
|
<key>begin</key>
|
|
<string>"</string>
|
|
<key>end</key>
|
|
<string>"</string>
|
|
<key>beginCaptures</key>
|
|
<dict>
|
|
<key>0</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>punctuation.definition.string.jsxAttributeValue.begin.tsx</string>
|
|
</dict>
|
|
</dict>
|
|
<key>endCaptures</key>
|
|
<dict>
|
|
<key>0</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>punctuation.definition.string.jsxAttributeValue.end.tsx</string>
|
|
</dict>
|
|
</dict>
|
|
<key>patterns</key>
|
|
<array>
|
|
<dict>
|
|
<key>include</key>
|
|
<string>#jsx-attributeValue-entities</string>
|
|
</dict>
|
|
</array>
|
|
</dict>
|
|
<key>jsx-string-single-quoted</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>string.jsxAttributeValue.quoted.single.tsx</string>
|
|
<key>begin</key>
|
|
<string>'</string>
|
|
<key>end</key>
|
|
<string>'</string>
|
|
<key>beginCaptures</key>
|
|
<dict>
|
|
<key>0</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>punctuation.definition.string.jsxAttributeValue.begin.tsx</string>
|
|
</dict>
|
|
</dict>
|
|
<key>endCaptures</key>
|
|
<dict>
|
|
<key>0</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>punctuation.definition.string.jsxAttributeValue.end.tsx</string>
|
|
</dict>
|
|
</dict>
|
|
<key>patterns</key>
|
|
<array>
|
|
<dict>
|
|
<key>include</key>
|
|
<string>#jsx-attributeValue-entities</string>
|
|
</dict>
|
|
</array>
|
|
</dict>
|
|
<key>jsx-entities</key>
|
|
<dict>
|
|
<key>patterns</key>
|
|
<array>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>constant.character.entity.tsx</string>
|
|
<key>match</key>
|
|
<string>(&)([a-zA-Z0-9]+|#[0-9]+|#x[0-9a-fA-F]+)(;)</string>
|
|
<key>captures</key>
|
|
<dict>
|
|
<key>1</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>punctuation.definition.entity.tsx</string>
|
|
</dict>
|
|
<key>3</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>punctuation.definition.entity.tsx</string>
|
|
</dict>
|
|
</dict>
|
|
</dict>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>invalid.illegal.bad-ampersand.tsx</string>
|
|
<key>match</key>
|
|
<string>&</string>
|
|
</dict>
|
|
</array>
|
|
</dict>
|
|
<key>jsx-attributeValue-entities</key>
|
|
<dict>
|
|
<key>patterns</key>
|
|
<array>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>constant.character.entity.jsxAttributeValue.tsx</string>
|
|
<key>match</key>
|
|
<string>(&)([a-zA-Z0-9]+|#[0-9]+|#x[0-9a-fA-F]+)(;)</string>
|
|
<key>captures</key>
|
|
<dict>
|
|
<key>1</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>punctuation.definition.entity.jsxAttributeValue.tsx</string>
|
|
</dict>
|
|
<key>3</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>punctuation.definition.entity.jsxAttributeValue.tsx</string>
|
|
</dict>
|
|
</dict>
|
|
</dict>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>invalid.illegal.bad-ampersand.jsxAttributeValue.tsx</string>
|
|
<key>match</key>
|
|
<string>&</string>
|
|
</dict>
|
|
</array>
|
|
</dict>
|
|
<key>jsx-evaluated-code</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>meta.embedded.expression.tsx</string>
|
|
<key>begin</key>
|
|
<string>{</string>
|
|
<key>end</key>
|
|
<string>}</string>
|
|
<key>beginCaptures</key>
|
|
<dict>
|
|
<key>0</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>punctuation.section.embedded.begin.tsx</string>
|
|
</dict>
|
|
</dict>
|
|
<key>endCaptures</key>
|
|
<dict>
|
|
<key>0</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>punctuation.section.embedded.end.tsx</string>
|
|
</dict>
|
|
</dict>
|
|
<key>patterns</key>
|
|
<array>
|
|
<dict>
|
|
<key>include</key>
|
|
<string>#expression</string>
|
|
</dict>
|
|
</array>
|
|
</dict>
|
|
<key>jsx-tag-attributes-illegal</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>invalid.illegal.attribute.tsx</string>
|
|
<key>match</key>
|
|
<string>\S+</string>
|
|
</dict>
|
|
<key>jsx-tag-without-attributes</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>meta.tag.without-attributes.tsx</string>
|
|
<key>begin</key>
|
|
<string>(<)\s*([_$a-zA-Z][-$\w.]*(?<!\.|-))\s*(>)</string>
|
|
<key>end</key>
|
|
<string>(</)\s*([_$a-zA-Z][-$\w.]*(?<!\.|-))\s*(>)</string>
|
|
<key>beginCaptures</key>
|
|
<dict>
|
|
<key>1</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>punctuation.definition.tag.begin.tsx</string>
|
|
</dict>
|
|
<key>2</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>entity.name.tag.tsx</string>
|
|
</dict>
|
|
<key>3</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>punctuation.definition.tag.end.tsx</string>
|
|
</dict>
|
|
</dict>
|
|
<key>endCaptures</key>
|
|
<dict>
|
|
<key>1</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>punctuation.definition.tag.begin.tsx</string>
|
|
</dict>
|
|
<key>2</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>entity.name.tag.tsx</string>
|
|
</dict>
|
|
<key>3</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>punctuation.definition.tag.end.tsx</string>
|
|
</dict>
|
|
</dict>
|
|
<key>contentName</key>
|
|
<string>meta.jsx.children.tsx</string>
|
|
<key>patterns</key>
|
|
<array>
|
|
<dict>
|
|
<key>include</key>
|
|
<string>#jsx-children</string>
|
|
</dict>
|
|
</array>
|
|
</dict>
|
|
<key>jsx-tag-in-expression</key>
|
|
<dict>
|
|
<key>begin</key>
|
|
<string>(?x)
|
|
(?<=[({\[,?=>]|&&|\|\||\?|\Wreturn|^return|\Wdefault|^)\s*
|
|
(?!(<)\s*([_$a-zA-Z][-$\w.]*(?<!\.|-))\s*(>)) #look ahead is not start of tag without attributes
|
|
(?!<\s*[_$[:alpha:]][_$[:alnum:]]*((\s+extends\s+[^=>])|,)) # look ahead is not type parameter of arrow
|
|
(?=(<)\s*
|
|
([_$a-zA-Z][-$\w.]*(?<!\.|-))
|
|
(?=\s+(?!\?)|/?>))</string>
|
|
<key>end</key>
|
|
<string>(/>)|(?:(</)\s*([_$a-zA-Z][-$\w.]*(?<!\.|-))\s*(>))</string>
|
|
<key>endCaptures</key>
|
|
<dict>
|
|
<key>0</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>meta.tag.tsx</string>
|
|
</dict>
|
|
<key>1</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>punctuation.definition.tag.end.tsx</string>
|
|
</dict>
|
|
<key>2</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>punctuation.definition.tag.begin.tsx</string>
|
|
</dict>
|
|
<key>3</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>entity.name.tag.tsx</string>
|
|
</dict>
|
|
<key>4</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>punctuation.definition.tag.end.tsx</string>
|
|
</dict>
|
|
</dict>
|
|
<key>patterns</key>
|
|
<array>
|
|
<dict>
|
|
<key>include</key>
|
|
<string>#jsx-tag</string>
|
|
</dict>
|
|
</array>
|
|
</dict>
|
|
<key>jsx-child-tag</key>
|
|
<dict>
|
|
<key>begin</key>
|
|
<string>(?x)
|
|
(?=(<)\s*
|
|
([_$a-zA-Z][-$\w.]*(?<!\.|-))
|
|
(?=\s+(?!\?)|/?>))</string>
|
|
<key>end</key>
|
|
<string>(/>)|(?:(</)\s*([_$a-zA-Z][-$\w.]*(?<!\.|-))\s*(>))</string>
|
|
<key>endCaptures</key>
|
|
<dict>
|
|
<key>0</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>meta.tag.tsx</string>
|
|
</dict>
|
|
<key>1</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>punctuation.definition.tag.end.tsx</string>
|
|
</dict>
|
|
<key>2</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>punctuation.definition.tag.begin.tsx</string>
|
|
</dict>
|
|
<key>3</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>entity.name.tag.tsx</string>
|
|
</dict>
|
|
<key>4</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>punctuation.definition.tag.end.tsx</string>
|
|
</dict>
|
|
</dict>
|
|
<key>patterns</key>
|
|
<array>
|
|
<dict>
|
|
<key>include</key>
|
|
<string>#jsx-tag</string>
|
|
</dict>
|
|
</array>
|
|
</dict>
|
|
<key>jsx-tag</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>meta.tag.tsx</string>
|
|
<key>begin</key>
|
|
<string>(?x)
|
|
(?=(<)\s*
|
|
([_$a-zA-Z][-$\w.]*(?<!\.|-))
|
|
(?=\s+(?!\?)|/?>))</string>
|
|
<key>end</key>
|
|
<string>(?=(/>)|(?:(</)\s*([_$a-zA-Z][-$\w.]*(?<!\.|-))\s*(>)))</string>
|
|
<key>patterns</key>
|
|
<array>
|
|
<dict>
|
|
<key>begin</key>
|
|
<string>(?x)
|
|
(<)\s*
|
|
([_$a-zA-Z][-$\w.]*(?<!\.|-))
|
|
(?=\s+(?!\?)|/?>)</string>
|
|
<key>beginCaptures</key>
|
|
<dict>
|
|
<key>1</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>punctuation.definition.tag.begin.tsx</string>
|
|
</dict>
|
|
<key>2</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>entity.name.tag.tsx</string>
|
|
</dict>
|
|
</dict>
|
|
<key>end</key>
|
|
<string>(?=[/]?>)</string>
|
|
<key>patterns</key>
|
|
<array>
|
|
<dict>
|
|
<key>include</key>
|
|
<string>#comment</string>
|
|
</dict>
|
|
<dict>
|
|
<key>include</key>
|
|
<string>#jsx-tag-attributes</string>
|
|
</dict>
|
|
<dict>
|
|
<key>include</key>
|
|
<string>#jsx-tag-attributes-illegal</string>
|
|
</dict>
|
|
</array>
|
|
</dict>
|
|
<dict>
|
|
<key>begin</key>
|
|
<string>(>)</string>
|
|
<key>beginCaptures</key>
|
|
<dict>
|
|
<key>1</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>punctuation.definition.tag.end.tsx</string>
|
|
</dict>
|
|
</dict>
|
|
<key>end</key>
|
|
<string>(?=</)</string>
|
|
<key>contentName</key>
|
|
<string>meta.jsx.children.tsx</string>
|
|
<key>patterns</key>
|
|
<array>
|
|
<dict>
|
|
<key>include</key>
|
|
<string>#jsx-children</string>
|
|
</dict>
|
|
</array>
|
|
</dict>
|
|
</array>
|
|
</dict>
|
|
<key>jsx-tag-invalid</key>
|
|
<dict>
|
|
<key>name</key>
|
|
<string>invalid.illegal.tag.incomplete.tsx</string>
|
|
<key>match</key>
|
|
<string><\s*></string>
|
|
</dict>
|
|
<key>jsx-children</key>
|
|
<dict>
|
|
<key>patterns</key>
|
|
<array>
|
|
<dict>
|
|
<key>include</key>
|
|
<string>#jsx-tag-without-attributes</string>
|
|
</dict>
|
|
<dict>
|
|
<key>include</key>
|
|
<string>#jsx-child-tag</string>
|
|
</dict>
|
|
<dict>
|
|
<key>include</key>
|
|
<string>#jsx-tag-invalid</string>
|
|
</dict>
|
|
<dict>
|
|
<key>include</key>
|
|
<string>#jsx-evaluated-code</string>
|
|
</dict>
|
|
<dict>
|
|
<key>include</key>
|
|
<string>#jsx-entities</string>
|
|
</dict>
|
|
</array>
|
|
</dict>
|
|
<key>jsx</key>
|
|
<dict>
|
|
<key>patterns</key>
|
|
<array>
|
|
<dict>
|
|
<key>include</key>
|
|
<string>#jsx-tag-without-attributes</string>
|
|
</dict>
|
|
<dict>
|
|
<key>include</key>
|
|
<string>#jsx-tag-in-expression</string>
|
|
</dict>
|
|
<dict>
|
|
<key>include</key>
|
|
<string>#jsx-tag-invalid</string>
|
|
</dict>
|
|
</array>
|
|
</dict>
|
|
</dict>
|
|
</dict>
|
|
</plist> |