File tree Expand file tree Collapse file tree 4 files changed +42
-8
lines changed Expand file tree Collapse file tree 4 files changed +42
-8
lines changed Original file line number Diff line number Diff line change @@ -171,12 +171,15 @@ repository:
171
171
172
172
method-overload-declaration :
173
173
name : meta.method.overload.declaration.ts
174
- match : ' \b(?:(public|private|protected)\s+)?(?:(new)|(?:([a-zA-Z_$][\.\w$]*)\s*(\??)))?\s*(?=\(|\<)'
174
+ match : ' \b(?:(abstract)\s+)?\b(?:( public|private|protected)\s+)?\b(?:(async)\s+)?(?:(get|set )\s+)?(?:(new)|(?:([a-zA-Z_$][\.\w$]*)\s*(\??)))?\s*(?=\(|\<)'
175
175
captures :
176
176
' 1 ' : { name: storage.modifier.ts }
177
- ' 2 ' : { name: keyword.operator.ts }
178
- ' 3 ' : { name: entity.name.function.ts }
179
- ' 4 ' : { name: keyword.operator.ts }
177
+ ' 2 ' : { name: storage.modifier.ts }
178
+ ' 3 ' : { name: storage.modifier.ts }
179
+ ' 4 ' : { name: storage.type.property.ts }
180
+ ' 5 ' : { name: keyword.operator.ts }
181
+ ' 6 ' : { name: entity.name.function.ts }
182
+ ' 7 ' : { name: keyword.operator.ts }
180
183
181
184
indexer-declaration :
182
185
name : meta.indexer.declaration.ts
Original file line number Diff line number Diff line change 770
770
<key >2 </key >
771
771
<dict >
772
772
<key >name </key >
773
- <string >keyword.operator .ts </string >
773
+ <string >storage.modifier .ts </string >
774
774
</dict >
775
775
<key >3 </key >
776
776
<dict >
777
777
<key >name </key >
778
- <string >entity.name.function .ts </string >
778
+ <string >storage.modifier .ts </string >
779
779
</dict >
780
780
<key >4 </key >
781
+ <dict >
782
+ <key >name </key >
783
+ <string >storage.type.property.ts </string >
784
+ </dict >
785
+ <key >5 </key >
786
+ <dict >
787
+ <key >name </key >
788
+ <string >keyword.operator.ts </string >
789
+ </dict >
790
+ <key >6 </key >
791
+ <dict >
792
+ <key >name </key >
793
+ <string >entity.name.function.ts </string >
794
+ </dict >
795
+ <key >7 </key >
781
796
<dict >
782
797
<key >name </key >
783
798
<string >keyword.operator.ts </string >
784
799
</dict >
785
800
</dict >
786
801
<key >match </key >
787
- <string >\b(?:(public|private|protected)\s+)?(?:(new)|(?:([a-zA-Z_$][\.\w$]*)\s*(\??)))?\s*(?=\(|\< ) </string >
802
+ <string >\b(?:(abstract)\s+)?\b(?:( public|private|protected)\s+)?\b(?:(async)\s+)?(?:(get|set )\s+)?(?:(new)|(?:([a-zA-Z_$][\.\w$]*)\s*(\??)))?\s*(?=\(|\< ) </string >
788
803
<key >name </key >
789
804
<string >meta.method.overload.declaration.ts </string >
790
805
</dict >
Original file line number Diff line number Diff line change 49
49
[36, 12]: source.ts meta.declaration.object.ts meta.object.body.ts meta.method.declaration.ts entity.name.function.ts
50
50
[37, 5]: source.ts meta.declaration.object.ts meta.object.body.ts meta.method.declaration.ts storage.modifier.ts
51
51
[37, 12]: source.ts meta.declaration.object.ts meta.object.body.ts meta.method.declaration.ts entity.name.function.ts
52
- [38, 9]: source.ts meta.declaration.object.ts meta.object.body.ts meta.method.declaration.ts meta.decl.block.ts keyword.control.ts
52
+ [38, 9]: source.ts meta.declaration.object.ts meta.object.body.ts meta.method.declaration.ts meta.decl.block.ts keyword.control.ts
53
+ [43, 5]: source.ts meta.declaration.object.ts meta.object.body.ts meta.method.declaration.ts entity.name.function.ts
54
+ [44, 5]: source.ts meta.declaration.object.ts meta.object.body.ts meta.method.declaration.ts meta.method.overload.declaration.ts entity.name.function.ts
55
+ [48, 5]: source.ts meta.declaration.object.ts meta.object.body.ts meta.method.declaration.ts storage.modifier.ts
56
+ [48, 14]: source.ts meta.declaration.object.ts meta.object.body.ts meta.method.declaration.ts entity.name.function.ts
57
+ [49, 5]: source.ts meta.declaration.object.ts meta.object.body.ts meta.method.declaration.ts meta.method.overload.declaration.ts storage.modifier.ts
58
+ [49, 14]: source.ts meta.declaration.object.ts meta.object.body.ts meta.method.declaration.ts meta.method.overload.declaration.ts entity.name.function.ts
Original file line number Diff line number Diff line change @@ -37,4 +37,14 @@ class testClass {
37
37
^ public ^ testMethodOverloadWithSemicolon ( p : any ) : new ( ) => any {
38
38
^ throw new Error ( "" )
39
39
}
40
+ }
41
+
42
+ interface I {
43
+ ^ foo ( ) : number
44
+ ^ bar ( ) : string ;
45
+ }
46
+
47
+ abstract class C {
48
+ ^ abstract ^ foo ( )
49
+ ^ abstract ^ bar ( )
40
50
}
You can’t perform that action at this time.
0 commit comments