File tree Expand file tree Collapse file tree 5 files changed +62
-9
lines changed Expand file tree Collapse file tree 5 files changed +62
-9
lines changed Original file line number Diff line number Diff line change @@ -1618,9 +1618,8 @@ repository:
1618
1618
(
1619
1619
[(]\s*
1620
1620
(
1621
- ([)]\s*:) | # ():
1622
- ([_$[:alpha:]][_$[:alnum:]]*\s*:) | # [(]param:
1623
- (\.\.\.) # [(]...
1621
+ ([)]\s*:) | # ():
1622
+ ((\.\.\.\s*)?[_$[:alpha:]][_$[:alnum:]]*\s*:) # [(]param: | [(]...param:
1624
1623
)
1625
1624
) |
1626
1625
(
Original file line number Diff line number Diff line change 4451
4451
(
4452
4452
[(]\s*
4453
4453
(
4454
- ([)]\s*:) | # ():
4455
- ([_$[:alpha:]][_$[:alnum:]]*\s*:) | # [(]param:
4456
- (\.\.\.) # [(]...
4454
+ ([)]\s*:) | # ():
4455
+ ((\.\.\.\s*)?[_$[:alpha:]][_$[:alnum:]]*\s*:) # [(]param: | [(]...param:
4457
4456
)
4458
4457
) |
4459
4458
(
Original file line number Diff line number Diff line change 4397
4397
(
4398
4398
[(]\s*
4399
4399
(
4400
- ([)]\s*:) | # ():
4401
- ([_$[:alpha:]][_$[:alnum:]]*\s*:) | # [(]param:
4402
- (\.\.\.) # [(]...
4400
+ ([)]\s*:) | # ():
4401
+ ((\.\.\.\s*)?[_$[:alpha:]][_$[:alnum:]]*\s*:) # [(]param: | [(]...param:
4403
4402
)
4404
4403
) |
4405
4404
(
Original file line number Diff line number Diff line change
1
+ original file
2
+ -----------------------------------
3
+ myFunc
4
+ (...argName)
5
+
6
+ function otherFunc() {} // <-- Not highlighted.
7
+ -----------------------------------
8
+
9
+ Grammar: TypeScript.tmLanguage
10
+ -----------------------------------
11
+ >myFunc
12
+ ^^^^^^
13
+ source.ts variable.other.readwrite.ts
14
+ ^^
15
+ source.ts
16
+ >(...argName)
17
+ ^
18
+ source.ts meta.brace.round.ts
19
+ ^^^
20
+ source.ts keyword.operator.spread.ts
21
+ ^^^^^^^
22
+ source.ts variable.other.readwrite.ts
23
+ ^
24
+ source.ts meta.brace.round.ts
25
+ ^^
26
+ source.ts
27
+ >
28
+ ^^
29
+ source.ts
30
+ >function otherFunc() {} // <-- Not highlighted.
31
+ ^^^^^^^^
32
+ source.ts meta.function.ts storage.type.function.ts
33
+ ^
34
+ source.ts meta.function.ts
35
+ ^^^^^^^^^
36
+ source.ts meta.function.ts meta.definition.function.ts entity.name.function.ts
37
+ ^
38
+ source.ts meta.function.ts meta.parameters.ts punctuation.definition.parameters.begin.ts
39
+ ^
40
+ source.ts meta.function.ts meta.parameters.ts punctuation.definition.parameters.end.ts
41
+ ^
42
+ source.ts meta.function.ts
43
+ ^
44
+ source.ts meta.function.ts meta.block.ts punctuation.definition.block.ts
45
+ ^
46
+ source.ts meta.function.ts meta.block.ts punctuation.definition.block.ts
47
+ ^
48
+ source.ts
49
+ ^^
50
+ source.ts comment.line.double-slash.ts punctuation.definition.comment.ts
51
+ ^^^^^^^^^^^^^^^^^^^^^
52
+ source.ts comment.line.double-slash.ts
Original file line number Diff line number Diff line change
1
+ myFunc
2
+ ( ...argName )
3
+
4
+ function otherFunc ( ) { } // <-- Not highlighted.
You can’t perform that action at this time.
0 commit comments