Skip to content

Commit ebc58a6

Browse files
cast match
1 parent f0c3aab commit ebc58a6

File tree

2 files changed

+17
-20
lines changed

2 files changed

+17
-20
lines changed
Lines changed: 4 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,16 @@
11
<Aaa>bbb
22
---
33

4-
[#1 Content] = 0:1-0:4
4+
[Content] = 0:1-0:4
55
>---<
66
0| <Aaa>bbb
77

8-
[#1 Removal] = 0:0-0:5
8+
[Removal] = 0:0-0:5
99
>-----<
1010
0| <Aaa>bbb
1111

12-
[#1 Domain] = 0:0-0:8
12+
[Domain] = 0:0-0:8
1313
>--------<
1414
0| <Aaa>bbb
1515

16-
[#1 Insertion delimiter] = " "
17-
18-
19-
[#2 Content] =
20-
[#2 Removal] =
21-
[#2 Domain] = 0:1-0:4
22-
>---<
23-
0| <Aaa>bbb
24-
25-
[#2 Insertion delimiter] = " "
16+
[Insertion delimiter] = " "

queries/typescript.core.scm

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -417,15 +417,21 @@
417417

418418
;;!! Map<string, number>
419419
;;! ^^^^^^ ^^^^^^
420-
(type_arguments
421-
(_) @type
420+
(
421+
(type_arguments
422+
(_) @type
423+
) @_dummy
424+
(#not-parent-type? @_dummy type_assertion)
422425
)
423426

424427
;;!! Map<string, number>
425428
;;! ^^^^^^^^^^^^^^
426-
(type_arguments
427-
.
428-
"<" @type.iteration.start.endOf
429-
">" @type.iteration.end.startOf
430-
.
429+
(
430+
(type_arguments
431+
.
432+
"<" @type.iteration.start.endOf
433+
">" @type.iteration.end.startOf
434+
.
435+
) @_dummy
436+
(#not-parent-type? @_dummy type_assertion)
431437
)

0 commit comments

Comments
 (0)