Родитель
66d38dcc3a
Коммит
9be58bc51f
|
@ -1456,6 +1456,8 @@ repository:
|
|||
- include: '#support-objects'
|
||||
- include: '#object-identifiers'
|
||||
- include: '#punctuation-accessor'
|
||||
- name: keyword.operator.expression.import.ts
|
||||
match: (?![\.\$])\bimport(?=\s*[\(]\s*[\"\'\`])
|
||||
- name: entity.name.function.ts
|
||||
match: ([_$[:alpha:]][_$[:alnum:]]*)
|
||||
- include: '#comment'
|
||||
|
|
|
@ -4029,6 +4029,12 @@
|
|||
<key>include</key>
|
||||
<string>#punctuation-accessor</string>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>name</key>
|
||||
<string>keyword.operator.expression.import.ts</string>
|
||||
<key>match</key>
|
||||
<string>(?![\.\$])\bimport(?=\s*[\(]\s*[\"\'\`])</string>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>name</key>
|
||||
<string>entity.name.function.ts</string>
|
||||
|
|
|
@ -4033,6 +4033,12 @@
|
|||
<key>include</key>
|
||||
<string>#punctuation-accessor</string>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>name</key>
|
||||
<string>keyword.operator.expression.import.tsx</string>
|
||||
<key>match</key>
|
||||
<string>(?![\.\$])\bimport(?=\s*[\(]\s*[\"\'\`])</string>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>name</key>
|
||||
<string>entity.name.function.tsx</string>
|
||||
|
|
|
@ -0,0 +1,38 @@
|
|||
original file
|
||||
-----------------------------------
|
||||
var x = await import("./file1");
|
||||
-----------------------------------
|
||||
|
||||
Grammar: TypeScript.tmLanguage
|
||||
-----------------------------------
|
||||
>var x = await import("./file1");
|
||||
^^^
|
||||
source.ts meta.var.expr.ts storage.type.ts
|
||||
^
|
||||
source.ts meta.var.expr.ts
|
||||
^
|
||||
source.ts meta.var.expr.ts meta.var-single-variable.expr.ts meta.definition.variable.ts variable.other.readwrite.ts
|
||||
^
|
||||
source.ts meta.var.expr.ts meta.var-single-variable.expr.ts
|
||||
^
|
||||
source.ts meta.var.expr.ts keyword.operator.assignment.ts
|
||||
^
|
||||
source.ts meta.var.expr.ts
|
||||
^^^^^
|
||||
source.ts meta.var.expr.ts keyword.control.flow.ts
|
||||
^
|
||||
source.ts meta.var.expr.ts
|
||||
^^^^^^
|
||||
source.ts meta.var.expr.ts meta.function-call.ts keyword.operator.expression.import.ts
|
||||
^
|
||||
source.ts meta.var.expr.ts meta.brace.round.ts
|
||||
^
|
||||
source.ts meta.var.expr.ts string.quoted.double.ts punctuation.definition.string.begin.ts
|
||||
^^^^^^^
|
||||
source.ts meta.var.expr.ts string.quoted.double.ts
|
||||
^
|
||||
source.ts meta.var.expr.ts string.quoted.double.ts punctuation.definition.string.end.ts
|
||||
^
|
||||
source.ts meta.var.expr.ts meta.brace.round.ts
|
||||
^
|
||||
source.ts punctuation.terminator.statement.ts
|
|
@ -0,0 +1 @@
|
|||
var x = await import("./file1");
|
Загрузка…
Ссылка в новой задаче