File tree Expand file tree Collapse file tree 6 files changed +60
-1
lines changed Expand file tree Collapse file tree 6 files changed +60
-1
lines changed Original file line number Diff line number Diff line change @@ -1230,6 +1230,9 @@ repository:
1230
1230
1231
1231
identifiers :
1232
1232
patterns :
1233
+ # class
1234
+ - name : support.class.ts
1235
+ match : ([_$[:alpha:]][_$[:alnum:]]*)(?=\s*\.\s*prototype\b(?!\$))
1233
1236
# object properties
1234
1237
- match : |-
1235
1238
(?x)(\.)\s*(?:
Original file line number Diff line number Diff line change 3431
3431
<dict >
3432
3432
<key >patterns </key >
3433
3433
<array >
3434
+ <dict >
3435
+ <key >name </key >
3436
+ <string >support.class.ts </string >
3437
+ <key >match </key >
3438
+ <string >([_$[:alpha:]][_$[:alnum:]]*)(?=\s*\.\s*prototype\b(?!\$)) </string >
3439
+ </dict >
3434
3440
<dict >
3435
3441
<key >match </key >
3436
3442
<string >(?x)(\.)\s*(?:
Original file line number Diff line number Diff line change 3435
3435
<dict >
3436
3436
<key >patterns </key >
3437
3437
<array >
3438
+ <dict >
3439
+ <key >name </key >
3440
+ <string >support.class.tsx </string >
3441
+ <key >match </key >
3442
+ <string >([_$[:alpha:]][_$[:alnum:]]*)(?=\s*\.\s*prototype\b(?!\$)) </string >
3443
+ </dict >
3438
3444
<dict >
3439
3445
<key >match </key >
3440
3446
<string >(?x)(\.)\s*(?:
Original file line number Diff line number Diff line change @@ -427,4 +427,4 @@ Grammar: TypeScript.tmLanguage
427
427
source.ts meta.class.ts punctuation.definition.block.ts
428
428
>
429
429
^
430
- source.ts
430
+ source.ts
Original file line number Diff line number Diff line change
1
+ original file
2
+ -----------------------------------
3
+ MyClass.prototype.method = function () {
4
+ }
5
+ -----------------------------------
6
+
7
+ Grammar: TypeScript.tmLanguage
8
+ -----------------------------------
9
+ >MyClass.prototype.method = function () {
10
+ ^^^^^^^
11
+ source.ts support.class.ts
12
+ ^
13
+ source.ts punctuation.accessor.ts
14
+ ^^^^^^^^^
15
+ source.ts support.variable.property.ts
16
+ ^
17
+ source.ts punctuation.accessor.ts
18
+ ^^^^^^
19
+ source.ts support.variable.property.dom.ts
20
+ ^
21
+ source.ts
22
+ ^
23
+ source.ts keyword.operator.assignment.ts
24
+ ^
25
+ source.ts
26
+ ^^^^^^^^
27
+ source.ts meta.function.ts storage.type.function.ts
28
+ ^
29
+ source.ts meta.function.ts
30
+ ^
31
+ source.ts meta.function.ts meta.parameters.ts punctuation.definition.parameters.begin.ts
32
+ ^
33
+ source.ts meta.function.ts meta.parameters.ts punctuation.definition.parameters.end.ts
34
+ ^
35
+ source.ts meta.function.ts
36
+ ^
37
+ source.ts meta.function.ts meta.block.ts punctuation.definition.block.ts
38
+ ^^
39
+ source.ts meta.function.ts meta.block.ts
40
+ >}
41
+ ^
42
+ source.ts meta.function.ts meta.block.ts punctuation.definition.block.ts
Original file line number Diff line number Diff line change
1
+ MyClass . prototype . method = function ( ) {
2
+ }
You can’t perform that action at this time.
0 commit comments