Skip to content

Commit db6b1ed

Browse files
Added additional scope facets (#3164)
1 parent 81646b4 commit db6b1ed

193 files changed

Lines changed: 3081 additions & 231 deletions

File tree

Some content is hidden

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

AGENTS.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# AGENTS.md
2+
3+
## Scope test format
4+
5+
When writing or updating `.scope` files please follow the guidelines in [scope-test-format.md](./packages/cursorless-org-docs/src/docs/contributing/scope-test-format.md)
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
foo += 0
2+
---
3+
4+
[Content] = 0:0-0:3
5+
>---<
6+
0| foo += 0
7+
8+
[Removal] = 0:0-0:7
9+
>-------<
10+
0| foo += 0
11+
12+
[Trailing delimiter] = 0:3-0:7
13+
>----<
14+
0| foo += 0
15+
16+
[Domain] = 0:0-0:8
17+
>--------<
18+
0| foo += 0
19+
20+
[Insertion delimiter] = " "
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
foo += 0;
2+
---
3+
4+
[Content] =
5+
[Removal] =
6+
[Domain] = 0:0-0:9
7+
>---------<
8+
0| foo += 0;
9+
10+
[Insertion delimiter] = "\n"
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
foo();
2+
---
3+
4+
[Content] =
5+
[Removal] =
6+
[Domain] = 0:0-0:6
7+
>------<
8+
0| foo();
9+
10+
[Insertion delimiter] = "\n"
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#include <stdio.h>
2+
---
3+
4+
[Content] =
5+
[Removal] =
6+
[Domain] = 0:0-0:18
7+
>------------------<
8+
0| #include <stdio.h>
9+
10+
[Insertion delimiter] = "\n"
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
foo++;
2+
---
3+
4+
[Content] =
5+
[Removal] =
6+
[Domain] = 0:0-0:6
7+
>------<
8+
0| foo++;
9+
10+
[Insertion delimiter] = "\n"
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
foo += 0;
2+
---
3+
4+
[Content] = 0:7-0:8
5+
>-<
6+
0| foo += 0;
7+
8+
[Removal] = 0:3-0:8
9+
>-----<
10+
0| foo += 0;
11+
12+
[Leading delimiter] = 0:3-0:7
13+
>----<
14+
0| foo += 0;
15+
16+
[Domain] = 0:0-0:9
17+
>---------<
18+
0| foo += 0;
19+
20+
[Insertion delimiter] = " "
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
foo<Bar>();
2+
---
3+
4+
[Content] =
5+
[Removal] =
6+
[Domain] = 0:0-0:10
7+
>----------<
8+
0| foo<Bar>();
9+
10+
[Insertion delimiter] = " "
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
foo<Bar>();
2+
---
3+
4+
[Content] =
5+
[Removal] = 0:0-0:8
6+
>--------<
7+
0| foo<Bar>();
8+
9+
[Domain] = 0:0-0:10
10+
>----------<
11+
0| foo<Bar>();
12+
13+
[Insertion delimiter] = " "
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
throw foo;
2+
---
3+
4+
[Content] =
5+
[Removal] =
6+
[Domain] = 0:0-0:10
7+
>----------<
8+
0| throw foo;
9+
10+
[Insertion delimiter] = "\n"

0 commit comments

Comments
 (0)