File tree Expand file tree Collapse file tree 5 files changed +48
-4
lines changed Expand file tree Collapse file tree 5 files changed +48
-4
lines changed Original file line number Diff line number Diff line change @@ -880,9 +880,10 @@ repository:
880
880
class-expression :
881
881
name : meta.class.ts
882
882
# allows anonymous class
883
- begin : ' {{startOfIdentifier}}(class)\b(?=\s+|[<{]|\/[\/*])'
883
+ begin : ' {{startOfIdentifier}}(?:(abstract)\s+)?( class)\b(?=\s+|[<{]|\/[\/*])'
884
884
beginCaptures :
885
- ' 1 ' : { name: storage.type.class.ts }
885
+ ' 1 ' : { name: storage.modifier.ts }
886
+ ' 2 ' : { name: storage.type.class.ts }
886
887
end : (?<=\})
887
888
patterns :
888
889
- include : ' #class-declaration-or-expression-patterns'
Original file line number Diff line number Diff line change 2824
2824
<key >name </key >
2825
2825
<string >meta.class.ts </string >
2826
2826
<key >begin </key >
2827
- <string >(?< ![_$[:alnum:]])(?:(?< =\.\.\.)|(?< !\.))(class)\b(?=\s+|[< {]|\/[\/*]) </string >
2827
+ <string >(?< ![_$[:alnum:]])(?:(?< =\.\.\.)|(?< !\.))(?:(abstract)\s+)?( class)\b(?=\s+|[< {]|\/[\/*]) </string >
2828
2828
<key >beginCaptures </key >
2829
2829
<dict >
2830
2830
<key >1 </key >
2831
+ <dict >
2832
+ <key >name </key >
2833
+ <string >storage.modifier.ts </string >
2834
+ </dict >
2835
+ <key >2 </key >
2831
2836
<dict >
2832
2837
<key >name </key >
2833
2838
<string >storage.type.class.ts </string >
Original file line number Diff line number Diff line change 2828
2828
<key >name </key >
2829
2829
<string >meta.class.tsx </string >
2830
2830
<key >begin </key >
2831
- <string >(?< ![_$[:alnum:]])(?:(?< =\.\.\.)|(?< !\.))(class)\b(?=\s+|[< {]|\/[\/*]) </string >
2831
+ <string >(?< ![_$[:alnum:]])(?:(?< =\.\.\.)|(?< !\.))(?:(abstract)\s+)?( class)\b(?=\s+|[< {]|\/[\/*]) </string >
2832
2832
<key >beginCaptures </key >
2833
2833
<dict >
2834
2834
<key >1 </key >
2835
+ <dict >
2836
+ <key >name </key >
2837
+ <string >storage.modifier.tsx </string >
2838
+ </dict >
2839
+ <key >2 </key >
2835
2840
<dict >
2836
2841
<key >name </key >
2837
2842
<string >storage.type.class.tsx </string >
Original file line number Diff line number Diff line change
1
+ original file
2
+ -----------------------------------
3
+ export default abstract class AbstractClass {}
4
+ -----------------------------------
5
+
6
+ Grammar: TypeScript.tmLanguage
7
+ -----------------------------------
8
+ >export default abstract class AbstractClass {}
9
+ ^^^^^^
10
+ source.ts meta.export.default.ts keyword.control.export.ts
11
+ ^
12
+ source.ts meta.export.default.ts
13
+ ^^^^^^^
14
+ source.ts meta.export.default.ts keyword.control.default.ts
15
+ ^
16
+ source.ts meta.export.default.ts
17
+ ^^^^^^^^
18
+ source.ts meta.export.default.ts meta.class.ts storage.modifier.ts
19
+ ^
20
+ source.ts meta.export.default.ts meta.class.ts
21
+ ^^^^^
22
+ source.ts meta.export.default.ts meta.class.ts storage.type.class.ts
23
+ ^
24
+ source.ts meta.export.default.ts meta.class.ts
25
+ ^^^^^^^^^^^^^
26
+ source.ts meta.export.default.ts meta.class.ts entity.name.type.class.ts
27
+ ^
28
+ source.ts meta.export.default.ts meta.class.ts
29
+ ^
30
+ source.ts meta.export.default.ts meta.class.ts punctuation.definition.block.ts
31
+ ^
32
+ source.ts meta.export.default.ts meta.class.ts punctuation.definition.block.ts
Original file line number Diff line number Diff line change
1
+ export default abstract class AbstractClass { }
You can’t perform that action at this time.
0 commit comments