File tree Expand file tree Collapse file tree 5 files changed +53
-0
lines changed Expand file tree Collapse file tree 5 files changed +53
-0
lines changed Original file line number Diff line number Diff line change @@ -1456,6 +1456,8 @@ repository:
1456
1456
- include : ' #support-objects'
1457
1457
- include : ' #object-identifiers'
1458
1458
- include : ' #punctuation-accessor'
1459
+ - name : keyword.operator.expression.import.ts
1460
+ match : (?![\.\$])\bimport(?=\s*[\(]\s*[\"\'\`])
1459
1461
- name : entity.name.function.ts
1460
1462
match : ([_$[:alpha:]][_$[:alnum:]]*)
1461
1463
- include : ' #comment'
Original file line number Diff line number Diff line change 4029
4029
<key >include </key >
4030
4030
<string >#punctuation-accessor </string >
4031
4031
</dict >
4032
+ <dict >
4033
+ <key >name </key >
4034
+ <string >keyword.operator.expression.import.ts </string >
4035
+ <key >match </key >
4036
+ <string >(?![\.\$])\bimport(?=\s*[\(]\s*[\"\'\`]) </string >
4037
+ </dict >
4032
4038
<dict >
4033
4039
<key >name </key >
4034
4040
<string >entity.name.function.ts </string >
Original file line number Diff line number Diff line change 4033
4033
<key >include </key >
4034
4034
<string >#punctuation-accessor </string >
4035
4035
</dict >
4036
+ <dict >
4037
+ <key >name </key >
4038
+ <string >keyword.operator.expression.import.tsx </string >
4039
+ <key >match </key >
4040
+ <string >(?![\.\$])\bimport(?=\s*[\(]\s*[\"\'\`]) </string >
4041
+ </dict >
4036
4042
<dict >
4037
4043
<key >name </key >
4038
4044
<string >entity.name.function.tsx </string >
Original file line number Diff line number Diff line change
1
+ original file
2
+ -----------------------------------
3
+ var x = await import("./file1");
4
+ -----------------------------------
5
+
6
+ Grammar: TypeScript.tmLanguage
7
+ -----------------------------------
8
+ >var x = await import("./file1");
9
+ ^^^
10
+ source.ts meta.var.expr.ts storage.type.ts
11
+ ^
12
+ source.ts meta.var.expr.ts
13
+ ^
14
+ source.ts meta.var.expr.ts meta.var-single-variable.expr.ts meta.definition.variable.ts variable.other.readwrite.ts
15
+ ^
16
+ source.ts meta.var.expr.ts meta.var-single-variable.expr.ts
17
+ ^
18
+ source.ts meta.var.expr.ts keyword.operator.assignment.ts
19
+ ^
20
+ source.ts meta.var.expr.ts
21
+ ^^^^^
22
+ source.ts meta.var.expr.ts keyword.control.flow.ts
23
+ ^
24
+ source.ts meta.var.expr.ts
25
+ ^^^^^^
26
+ source.ts meta.var.expr.ts meta.function-call.ts keyword.operator.expression.import.ts
27
+ ^
28
+ source.ts meta.var.expr.ts meta.brace.round.ts
29
+ ^
30
+ source.ts meta.var.expr.ts string.quoted.double.ts punctuation.definition.string.begin.ts
31
+ ^^^^^^^
32
+ source.ts meta.var.expr.ts string.quoted.double.ts
33
+ ^
34
+ source.ts meta.var.expr.ts string.quoted.double.ts punctuation.definition.string.end.ts
35
+ ^
36
+ source.ts meta.var.expr.ts meta.brace.round.ts
37
+ ^
38
+ source.ts punctuation.terminator.statement.ts
Original file line number Diff line number Diff line change
1
+ var x = await import ( "./file1" ) ;
You can’t perform that action at this time.
0 commit comments