Skip to content

Commit 2bf2496

Browse files
Added textual interior scope test
1 parent 1f92e81 commit 2bf2496

File tree

5 files changed

+61
-32
lines changed

5 files changed

+61
-32
lines changed
Lines changed: 19 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,40 @@
1-
<div>text</div>
1+
<div> text </div>
22
---
33

44
[#1 Content] =
55
[#1 Removal] = 0:1-0:4
66
>---<
7-
0| <div>text</div>
7+
0| <div> text </div>
88

99
[#1 Domain] = 0:0-0:5
1010
>-----<
11-
0| <div>text</div>
11+
0| <div> text </div>
1212

1313
[#1 Insertion delimiter] = " "
1414

1515

16-
[#2 Content] =
17-
[#2 Removal] = 0:5-0:9
18-
>----<
19-
0| <div>text</div>
16+
[#2 Content] = 0:6-0:10
17+
>----<
18+
0| <div> text </div>
2019

21-
[#2 Domain] = 0:0-0:15
22-
>---------------<
23-
0| <div>text</div>
20+
[#2 Removal] = 0:5-0:11
21+
>------<
22+
0| <div> text </div>
23+
24+
[#2 Domain] = 0:0-0:17
25+
>-----------------<
26+
0| <div> text </div>
2427

2528
[#2 Insertion delimiter] = " "
2629

2730

2831
[#3 Content] =
29-
[#3 Removal] = 0:11-0:14
30-
>---<
31-
0| <div>text</div>
32+
[#3 Removal] = 0:13-0:16
33+
>---<
34+
0| <div> text </div>
3235

33-
[#3 Domain] = 0:9-0:15
34-
>------<
35-
0| <div>text</div>
36+
[#3 Domain] = 0:11-0:17
37+
>------<
38+
0| <div> text </div>
3639

3740
[#3 Insertion delimiter] = " "
Lines changed: 19 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,40 @@
1-
<div>text</div>
1+
<div> text </div>
22
---
33

44
[#1 Content] =
55
[#1 Removal] = 0:1-0:4
66
>---<
7-
0| <div>text</div>
7+
0| <div> text </div>
88

99
[#1 Domain] = 0:0-0:5
1010
>-----<
11-
0| <div>text</div>
11+
0| <div> text </div>
1212

1313
[#1 Insertion delimiter] = " "
1414

1515

16-
[#2 Content] =
17-
[#2 Removal] = 0:5-0:9
18-
>----<
19-
0| <div>text</div>
16+
[#2 Content] = 0:6-0:10
17+
>----<
18+
0| <div> text </div>
2019

21-
[#2 Domain] = 0:0-0:15
22-
>---------------<
23-
0| <div>text</div>
20+
[#2 Removal] = 0:5-0:11
21+
>------<
22+
0| <div> text </div>
23+
24+
[#2 Domain] = 0:0-0:17
25+
>-----------------<
26+
0| <div> text </div>
2427

2528
[#2 Insertion delimiter] = " "
2629

2730

2831
[#3 Content] =
29-
[#3 Removal] = 0:11-0:14
30-
>---<
31-
0| <div>text</div>
32+
[#3 Removal] = 0:13-0:16
33+
>---<
34+
0| <div> text </div>
3235

33-
[#3 Domain] = 0:9-0:15
34-
>------<
35-
0| <div>text</div>
36+
[#3 Domain] = 0:11-0:17
37+
>------<
38+
0| <div> text </div>
3639

3740
[#3 Insertion delimiter] = " "
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
( text )
2+
---
3+
4+
[Content] = 0:2-0:6
5+
>----<
6+
0| ( text )
7+
8+
[Removal] = 0:1-0:7
9+
>------<
10+
0| ( text )
11+
12+
[Domain] = 0:0-0:8
13+
>--------<
14+
0| ( text )
15+
16+
[Insertion delimiter] = " "

packages/common/src/scopeSupportFacets/scopeSupportFacets.types.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -219,6 +219,7 @@ export type TextualScopeSupportFacet =
219219
| "url"
220220
| "surroundingPair"
221221
| "surroundingPair.iteration"
222+
| "interior.surroundingPair"
222223
| "collectionItem.textual"
223224
| "collectionItem.textual.iteration";
224225

packages/common/src/scopeSupportFacets/textualScopeSupportFacetInfos.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,12 @@ export const textualScopeSupportFacetInfos: Record<
8383
},
8484
isIteration: true,
8585
},
86+
"interior.surroundingPair": {
87+
description: "The interior scope of a surrounding pair",
88+
scopeType: {
89+
type: "interior",
90+
},
91+
},
8692
"collectionItem.textual": {
8793
description: "A text based collection item",
8894
scopeType: {

0 commit comments

Comments
 (0)