Skip to content

Commit f132dd3

Browse files
type field iteration
1 parent caff249 commit f132dd3

File tree

3 files changed

+21
-1
lines changed

3 files changed

+21
-1
lines changed
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
class MyClass { }
2+
---
3+
4+
[#1 Range] =
5+
[#1 Domain] = 0:0-0:17
6+
>-----------------<
7+
0| class MyClass { }
8+
9+
10+
[#2 Range] =
11+
[#2 Domain] = 0:15-0:16
12+
>-<
13+
0| class MyClass { }

packages/common/src/scopeSupportFacets/typescript.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ export const typescriptScopeSupport: LanguageScopeSupportFacetMap = {
1616
"type.alias": supported,
1717
"type.cast": supported,
1818
"type.field": supported,
19+
"type.field.iteration": supported,
1920
"type.interface": supported,
2021
"type.enum": supported,
2122
"type.return": supported,
@@ -25,7 +26,6 @@ export const typescriptScopeSupport: LanguageScopeSupportFacetMap = {
2526

2627
// Unsupported
2728

28-
"type.field.iteration": unsupported,
2929
"type.typeArgument": unsupported,
3030
"type.typeArgument.iteration": unsupported,
3131

queries/typescript.core.scm

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -405,3 +405,10 @@
405405
(function_type
406406
"=>" @disqualifyDelimiter
407407
)
408+
409+
(class_body
410+
.
411+
"{" @type.iteration.start.endOf
412+
"}" @type.iteration.end.startOf
413+
.
414+
)

0 commit comments

Comments
 (0)