Skip to content

Commit e6b8e96

Browse files
committed
Rename the function references from entity.name.function to variable.function
1 parent 84a4e42 commit e6b8e96

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

46 files changed

+159
-159
lines changed

TypeScript.YAML-tmLanguage

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -903,7 +903,7 @@ repository:
903903
# if (this.PListCells.length<value && (!this.ListList || !this.DelayedUpdate))
904904
begin: '([_$[:alpha:]][_$[:alnum:]]*)\s*(?=(<[^<>]*(\<[^<>]+\>)*[^<>]*(\<[^<>]+\>)*[^<>]*>\s*)?\()'
905905
beginCaptures:
906-
'1': { name: entity.name.function.ts }
906+
'1': { name: variable.function.ts }
907907
end: (?=\()
908908
patterns:
909909
- include: '#comment'
@@ -1210,7 +1210,7 @@ repository:
12101210
name: string.template.ts
12111211
begin: '([_$[:alpha:]][_$[:alnum:]]*)?(`)'
12121212
beginCaptures:
1213-
'1': { name: entity.name.function.tagged-template.ts }
1213+
'1': { name: variable.function.tagged-template.ts }
12141214
'2': { name: punctuation.definition.string.template.begin.ts }
12151215
end: '`'
12161216
endCaptures:

TypeScript.tmLanguage

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1424,7 +1424,7 @@
14241424
<key>1</key>
14251425
<dict>
14261426
<key>name</key>
1427-
<string>entity.name.function.ts</string>
1427+
<string>variable.function.ts</string>
14281428
</dict>
14291429
</dict>
14301430
<key>end</key>
@@ -3493,7 +3493,7 @@
34933493
<key>1</key>
34943494
<dict>
34953495
<key>name</key>
3496-
<string>entity.name.function.tagged-template.ts</string>
3496+
<string>variable.function.tagged-template.ts</string>
34973497
</dict>
34983498
<key>2</key>
34993499
<dict>

TypeScriptReact.YAML-tmLanguage

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -907,7 +907,7 @@ repository:
907907
# if (this.PListCells.length<value && (!this.ListList || !this.DelayedUpdate))
908908
begin: '([_$[:alpha:]][_$[:alnum:]]*)\s*(?=(<[^<>]*(\<[^<>]+\>)*[^<>]*(\<[^<>]+\>)*[^<>]*>\s*)?\()'
909909
beginCaptures:
910-
'1': { name: entity.name.function.tsx }
910+
'1': { name: variable.function.tsx }
911911
end: (?=\()
912912
patterns:
913913
- include: '#comment'
@@ -1199,7 +1199,7 @@ repository:
11991199
name: string.template.tsx
12001200
begin: '([_$[:alpha:]][_$[:alnum:]]*)?(`)'
12011201
beginCaptures:
1202-
'1': { name: entity.name.function.tagged-template.tsx }
1202+
'1': { name: variable.function.tagged-template.tsx }
12031203
'2': { name: punctuation.definition.string.template.begin.tsx }
12041204
end: '`'
12051205
endCaptures:

TypeScriptReact.tmLanguage

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1392,7 +1392,7 @@
13921392
<key>1</key>
13931393
<dict>
13941394
<key>name</key>
1395-
<string>entity.name.function.tsx</string>
1395+
<string>variable.function.tsx</string>
13961396
</dict>
13971397
</dict>
13981398
<key>end</key>
@@ -3883,7 +3883,7 @@
38833883
<key>1</key>
38843884
<dict>
38853885
<key>name</key>
3886-
<string>entity.name.function.tagged-template.tsx</string>
3886+
<string>variable.function.tagged-template.tsx</string>
38873887
</dict>
38883888
<key>2</key>
38893889
<dict>

tests/baselines/Abstracts.baseline.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ cow.makeSound();
263263
^
264264
source.ts punctuation.accessor.ts
265265
^^^^^^^^^
266-
source.ts entity.name.function.ts
266+
source.ts variable.function.ts
267267
^
268268
source.ts meta.brace.round.ts
269269
^

tests/baselines/ArrowFunctionInsideTypeAssertion.baseline.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -345,7 +345,7 @@ function f(x: string | ((value: string) => number)) {
345345
^
346346
source.ts meta.function.ts meta.block.ts meta.block.ts
347347
^
348-
source.ts meta.function.ts meta.block.ts meta.block.ts entity.name.function.ts
348+
source.ts meta.function.ts meta.block.ts meta.block.ts variable.function.ts
349349
^
350350
source.ts meta.function.ts meta.block.ts meta.block.ts meta.brace.round.ts
351351
^

tests/baselines/Issue10.baseline.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ class World {
104104
^
105105
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts punctuation.accessor.ts
106106
^^^
107-
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts entity.name.function.ts
107+
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts variable.function.ts
108108
^
109109
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts meta.brace.round.ts
110110
^
@@ -179,7 +179,7 @@ class World {
179179
^
180180
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts punctuation.accessor.ts
181181
^^^
182-
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts entity.name.function.ts
182+
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts variable.function.ts
183183
^
184184
source.ts meta.class.ts meta.method.declaration.ts meta.block.ts meta.brace.round.ts
185185
^

tests/baselines/Issue112.baseline.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ this._waitingConnections.delete(connection);
4949
^
5050
source.ts punctuation.accessor.ts
5151
^^^^^^
52-
source.ts entity.name.function.ts
52+
source.ts variable.function.ts
5353
^
5454
source.ts meta.brace.round.ts
5555
^
@@ -72,7 +72,7 @@ this._waitingConnections.delete(connection);
7272
^
7373
source.ts punctuation.accessor.ts
7474
^^^^^^
75-
source.ts entity.name.function.ts
75+
source.ts variable.function.ts
7676
^
7777
source.ts meta.brace.round.ts
7878
^^^^^^^^^^
@@ -97,7 +97,7 @@ this._waitingConnections.delete(connection);
9797
^
9898
source.ts punctuation.accessor.ts
9999
^^^^^^
100-
source.ts entity.name.function.ts
100+
source.ts variable.function.ts
101101
^
102102
source.ts meta.brace.round.ts
103103
^^^^^^^^^^

tests/baselines/Issue139.baseline.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ new new Proxy(function fn() {
4040
^
4141
source.ts meta.function.ts meta.block.ts punctuation.accessor.ts
4242
^^^
43-
source.ts meta.function.ts meta.block.ts entity.name.function.ts
43+
source.ts meta.function.ts meta.block.ts variable.function.ts
4444
^
4545
source.ts meta.function.ts meta.block.ts meta.brace.round.ts
4646
^^^^

tests/baselines/Issue142.baseline.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ class x {
4949
^
5050
source.ts meta.class.ts meta.field.declaration.ts punctuation.accessor.ts
5151
^^^^
52-
source.ts meta.class.ts meta.field.declaration.ts entity.name.function.ts
52+
source.ts meta.class.ts meta.field.declaration.ts variable.function.ts
5353
^
5454
source.ts meta.class.ts meta.field.declaration.ts meta.brace.round.ts
5555
^^^^
@@ -61,7 +61,7 @@ class x {
6161
^
6262
source.ts meta.class.ts meta.field.declaration.ts punctuation.accessor.ts
6363
^^^^^^
64-
source.ts meta.class.ts meta.field.declaration.ts entity.name.function.ts
64+
source.ts meta.class.ts meta.field.declaration.ts variable.function.ts
6565
^
6666
source.ts meta.class.ts meta.field.declaration.ts meta.brace.round.ts
6767
^

0 commit comments

Comments
 (0)