mirror of
https://github.com/Microsoft/vscode
synced 2024-08-27 13:00:58 +00:00
[js] update grammars with latest from TypeScript-TmLanguage (05e623f)
This commit is contained in:
parent
e0f22c7bff
commit
45f29b9988
|
@ -70,6 +70,13 @@
|
|||
<key>name</key>
|
||||
<string>keyword.operator.assignment.js</string>
|
||||
</dict>
|
||||
<key>await-modifier</key>
|
||||
<dict>
|
||||
<key>match</key>
|
||||
<string>await</string>
|
||||
<key>name</key>
|
||||
<string>storage.modifier.js</string>
|
||||
</dict>
|
||||
<key>block</key>
|
||||
<dict>
|
||||
<key>begin</key>
|
||||
|
@ -98,11 +105,11 @@
|
|||
<array>
|
||||
<dict>
|
||||
<key>include</key>
|
||||
<string>#expression</string>
|
||||
<string>#object-member</string>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>include</key>
|
||||
<string>#object-member</string>
|
||||
<string>#expression</string>
|
||||
</dict>
|
||||
</array>
|
||||
</dict>
|
||||
|
@ -116,7 +123,7 @@
|
|||
<key>cast</key>
|
||||
<dict>
|
||||
<key>begin</key>
|
||||
<string>(?:(?<=return|throw|yield|[=(,:>]))\s*(<)(?!<?\=)</string>
|
||||
<string>(?:(?<=return|throw|yield|await|[=(,:>]))\s*(<)(?!<?\=)</string>
|
||||
<key>beginCaptures</key>
|
||||
<dict>
|
||||
<key>1</key>
|
||||
|
@ -380,7 +387,7 @@
|
|||
<key>field-declaration</key>
|
||||
<dict>
|
||||
<key>begin</key>
|
||||
<string>(?<!\()\s*\b([a-zA-Z_$][\w$]*)\s*(\?\s*)?(?=(=|:))</string>
|
||||
<string>(?<!\()\s*((?:\b[a-zA-Z_$][\w$]*)|(?:\'[^']*\')|(?:\"[^"]*\"))\s*(\?\s*)?(?=(=|:))</string>
|
||||
<key>beginCaptures</key>
|
||||
<dict>
|
||||
<key>1</key>
|
||||
|
@ -432,6 +439,10 @@
|
|||
<string>functioncall.expr.js</string>
|
||||
<key>patterns</key>
|
||||
<array>
|
||||
<dict>
|
||||
<key>include</key>
|
||||
<string>#await-modifier</string>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>include</key>
|
||||
<string>#type-parameters</string>
|
||||
|
@ -445,7 +456,7 @@
|
|||
<key>function-declaration</key>
|
||||
<dict>
|
||||
<key>begin</key>
|
||||
<string>\b(?:(export)\s+)?(function\b)(?:\s+([a-zA-Z_$][\w$]*))?\s*</string>
|
||||
<string>\b(?:(export)\s+)?(?:(async)\s+)?(function\b)(?:\s+([a-zA-Z_$][\w$]*))?\s*</string>
|
||||
<key>beginCaptures</key>
|
||||
<dict>
|
||||
<key>1</key>
|
||||
|
@ -456,9 +467,14 @@
|
|||
<key>2</key>
|
||||
<dict>
|
||||
<key>name</key>
|
||||
<string>storage.type.function.js</string>
|
||||
<string>storage.modifier.js</string>
|
||||
</dict>
|
||||
<key>3</key>
|
||||
<dict>
|
||||
<key>name</key>
|
||||
<string>storage.type.function.js</string>
|
||||
</dict>
|
||||
<key>4</key>
|
||||
<dict>
|
||||
<key>name</key>
|
||||
<string>entity.name.function.js</string>
|
||||
|
@ -667,7 +683,7 @@
|
|||
<key>method-declaration</key>
|
||||
<dict>
|
||||
<key>begin</key>
|
||||
<string>\b(?:(abstract)\s+)?\b(?:(public|private|protected)\s+)?(?:(get|set)\s+)?(?:(new)|(?:([a-zA-Z_$][\.\w$]*)\s*(\??)))?\s*(?=\(|\<)</string>
|
||||
<string>\b(?:(abstract)\s+)?\b(?:(public|private|protected)\s+)?\b(?:(async)\s+)?(?:(get|set)\s+)?(?:(new)|(?:([a-zA-Z_$][\.\w$]*)\s*(\??)))?\s*(?=\(|\<)</string>
|
||||
<key>beginCaptures</key>
|
||||
<dict>
|
||||
<key>1</key>
|
||||
|
@ -683,19 +699,24 @@
|
|||
<key>3</key>
|
||||
<dict>
|
||||
<key>name</key>
|
||||
<string>storage.type.property.js</string>
|
||||
<string>storage.modifier.js</string>
|
||||
</dict>
|
||||
<key>4</key>
|
||||
<dict>
|
||||
<key>name</key>
|
||||
<string>keyword.operator.js</string>
|
||||
<string>storage.type.property.js</string>
|
||||
</dict>
|
||||
<key>5</key>
|
||||
<dict>
|
||||
<key>name</key>
|
||||
<string>entity.name.function.js</string>
|
||||
<string>keyword.operator.js</string>
|
||||
</dict>
|
||||
<key>6</key>
|
||||
<dict>
|
||||
<key>name</key>
|
||||
<string>entity.name.function.js</string>
|
||||
</dict>
|
||||
<key>7</key>
|
||||
<dict>
|
||||
<key>name</key>
|
||||
<string>keyword.operator.js</string>
|
||||
|
|
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue