File tree Expand file tree Collapse file tree 5 files changed +46
-3
lines changed Expand file tree Collapse file tree 5 files changed +46
-3
lines changed Original file line number Diff line number Diff line change @@ -978,7 +978,7 @@ repository:
978
978
979
979
access-modifier :
980
980
name : storage.modifier.ts
981
- match : ' {{startOfIdentifier}}(abstract|public|protected|private|readonly|static){{endOfIdentifier}}'
981
+ match : ' {{startOfIdentifier}}(abstract|public|protected|private|readonly|static|declare ){{endOfIdentifier}}'
982
982
983
983
property-accessor :
984
984
name : storage.type.property.ts
Original file line number Diff line number Diff line change 3115
3115
<key >name </key >
3116
3116
<string >storage.modifier.ts </string >
3117
3117
<key >match </key >
3118
- <string >(?< ![_$[:alnum:]])(?:(?< =\.\.\.)|(?< !\.))(abstract|public|protected|private|readonly|static)(?![_$[:alnum:]])(?:(?=\.\.\.)|(?!\.)) </string >
3118
+ <string >(?< ![_$[:alnum:]])(?:(?< =\.\.\.)|(?< !\.))(abstract|public|protected|private|readonly|static|declare )(?![_$[:alnum:]])(?:(?=\.\.\.)|(?!\.)) </string >
3119
3119
</dict >
3120
3120
<key >property-accessor </key >
3121
3121
<dict >
Original file line number Diff line number Diff line change 3137
3137
<key >name </key >
3138
3138
<string >storage.modifier.tsx </string >
3139
3139
<key >match </key >
3140
- <string >(?< ![_$[:alnum:]])(?:(?< =\.\.\.)|(?< !\.))(abstract|public|protected|private|readonly|static)(?![_$[:alnum:]])(?:(?=\.\.\.)|(?!\.)) </string >
3140
+ <string >(?< ![_$[:alnum:]])(?:(?< =\.\.\.)|(?< !\.))(abstract|public|protected|private|readonly|static|declare )(?![_$[:alnum:]])(?:(?=\.\.\.)|(?!\.)) </string >
3141
3141
</dict >
3142
3142
<key >property-accessor </key >
3143
3143
<dict >
Original file line number Diff line number Diff line change
1
+ original file
2
+ -----------------------------------
3
+ class Foo {
4
+ declare baz: any;
5
+ }
6
+ -----------------------------------
7
+
8
+ Grammar: TypeScript.tmLanguage
9
+ -----------------------------------
10
+ >class Foo {
11
+ ^^^^^
12
+ source.ts meta.class.ts storage.type.class.ts
13
+ ^
14
+ source.ts meta.class.ts
15
+ ^^^
16
+ source.ts meta.class.ts entity.name.type.class.ts
17
+ ^
18
+ source.ts meta.class.ts
19
+ ^
20
+ source.ts meta.class.ts punctuation.definition.block.ts
21
+ > declare baz: any;
22
+ ^^^^
23
+ source.ts meta.class.ts
24
+ ^^^^^^^
25
+ source.ts meta.class.ts storage.modifier.ts
26
+ ^
27
+ source.ts meta.class.ts meta.field.declaration.ts
28
+ ^^^
29
+ source.ts meta.class.ts meta.field.declaration.ts meta.definition.property.ts variable.object.property.ts
30
+ ^
31
+ source.ts meta.class.ts meta.field.declaration.ts meta.type.annotation.ts keyword.operator.type.annotation.ts
32
+ ^
33
+ source.ts meta.class.ts meta.field.declaration.ts meta.type.annotation.ts
34
+ ^^^
35
+ source.ts meta.class.ts meta.field.declaration.ts meta.type.annotation.ts support.type.primitive.ts
36
+ ^
37
+ source.ts meta.class.ts punctuation.terminator.statement.ts
38
+ >}
39
+ ^
40
+ source.ts meta.class.ts punctuation.definition.block.ts
Original file line number Diff line number Diff line change
1
+ class Foo {
2
+ declare baz : any ;
3
+ }
You can’t perform that action at this time.
0 commit comments