Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
languageId: clojure
command:
version: 7
spokenForm: change pair
action:
name: clearAndSetSelection
target:
type: primitive
modifiers:
- type: containingScope
scopeType: {type: surroundingPair, delimiter: any}
usePrePhraseSnapshot: false
initialState:
documentContents: |-
"Hello
world"
selections:
- anchor: {line: 0, character: 0}
active: {line: 0, character: 0}
marks: {}
finalState:
documentContents: ""
selections:
- anchor: {line: 0, character: 0}
active: {line: 0, character: 0}
10 changes: 10 additions & 0 deletions data/fixtures/scopes/clojure/anonymousFunction.scope
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
(fn [] 0)
---

[Content] =
[Removal] =
[Domain] = 0:0-0:9
>---------<
0| (fn [] 0)

[Insertion delimiter] = "\n"
10 changes: 10 additions & 0 deletions data/fixtures/scopes/clojure/anonymousFunction2.scope
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#(* % 2)
---

[Content] =
[Removal] =
[Domain] = 0:0-0:8
>--------<
0| #(* % 2)

[Insertion delimiter] = "\n"
10 changes: 10 additions & 0 deletions data/fixtures/scopes/clojure/argument.actual.iteration.scope
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
(foo aaa bbb)
---

[Content] = 0:1-0:12
>-----------<
0| (foo aaa bbb)

[Domain] = 0:0-0:13
>-------------<
0| (foo aaa bbb)
37 changes: 37 additions & 0 deletions data/fixtures/scopes/clojure/argument.actual.multiLine.scope
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
(foo
aaa
bbb)
---

[#1 Content] =
[#1 Domain] = 1:4-1:7
>---<
1| aaa

[#1 Removal] = 1:0-2:0
>-------
1| aaa
2| bbb)
<

[#1 Leading delimiter] = 1:0-1:4
>----<
1| aaa

[#1 Insertion delimiter] = "\n"


[#2 Content] =
[#2 Domain] = 2:4-2:7
>---<
2| bbb)

[#2 Removal] = 2:0-2:7
>-------<
2| bbb)

[#2 Leading delimiter] = 2:0-2:4
>----<
2| bbb)

[#2 Insertion delimiter] = "\n"
37 changes: 37 additions & 0 deletions data/fixtures/scopes/clojure/argument.actual.singleLine.scope
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
(foo aaa bbb)
---

[#1 Content] =
[#1 Domain] = 0:5-0:8
>---<
0| (foo aaa bbb)

[#1 Removal] = 0:5-0:9
>----<
0| (foo aaa bbb)

[#1 Leading delimiter] = 0:4-0:5
>-<
0| (foo aaa bbb)

[#1 Trailing delimiter] = 0:8-0:9
>-<
0| (foo aaa bbb)

[#1 Insertion delimiter] = " "


[#2 Content] =
[#2 Domain] = 0:9-0:12
>---<
0| (foo aaa bbb)

[#2 Removal] = 0:8-0:12
>----<
0| (foo aaa bbb)

[#2 Leading delimiter] = 0:8-0:9
>-<
0| (foo aaa bbb)

[#2 Insertion delimiter] = " "
13 changes: 13 additions & 0 deletions data/fixtures/scopes/clojure/argumentList.actual.empty.scope
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
()
---

[Content] =
[Removal] = 0:1-0:1
><
0| ()

[Domain] = 0:0-0:2
>--<
0| ()

[Insertion delimiter] = ""
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
(foo
aaa
bbb)
---

[Content] =
[Removal] = 0:1-2:7
>---
0| (foo
1| aaa
2| bbb)
-------<

[Domain] = 0:0-2:8
>----
0| (foo
1| aaa
2| bbb)
--------<

[Insertion delimiter] = "\n"
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
(foo aaa bbb)
---

[Content] =
[Removal] = 0:1-0:12
>-----------<
0| (foo aaa bbb)

[Domain] = 0:0-0:13
>-------------<
0| (foo aaa bbb)

[Insertion delimiter] = " "
25 changes: 25 additions & 0 deletions data/fixtures/scopes/clojure/condition.if.scope
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
(if true
aaa
bbb)
---

[Content] = 0:4-0:8
>----<
0| (if true

[Removal] = 0:3-0:8
>-----<
0| (if true

[Leading delimiter] = 0:3-0:4
>-<
0| (if true

[Domain] = 0:0-2:8
>--------
0| (if true
1| aaa
2| bbb)
--------<

[Insertion delimiter] = " "
20 changes: 20 additions & 0 deletions data/fixtures/scopes/clojure/disqualifyDelimiter.scope
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
(< 1 2)
(> 1 2)
(<= 1 2)
(>= 1 2)
---
[#1 Content] = 0:1-0:2
>-<
0| (< 1 2)

[#2 Content] = 1:1-1:2
>-<
1| (> 1 2)

[#3 Content] = 2:1-2:3
>--<
2| (<= 1 2)

[#4 Content] = 3:1-3:3
>--<
3| (>= 1 2)
10 changes: 10 additions & 0 deletions data/fixtures/scopes/clojure/functionCall.scope
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
(foo)
---

[Content] =
[Removal] =
[Domain] = 0:0-0:5
>-----<
0| (foo)

[Insertion delimiter] = " "
13 changes: 13 additions & 0 deletions data/fixtures/scopes/clojure/functionCallee.scope
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
(foo)
---

[Content] =
[Removal] = 0:1-0:4
>---<
0| (foo)

[Domain] = 0:0-0:5
>-----<
0| (foo)

[Insertion delimiter] = " "
15 changes: 15 additions & 0 deletions data/fixtures/scopes/clojure/ifStatement.scope
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
(if true
aaa
bbb)
---

[Content] =
[Removal] =
[Domain] = 0:0-2:8
>--------
0| (if true
1| aaa
2| bbb)
--------<

[Insertion delimiter] = "\n"
10 changes: 10 additions & 0 deletions data/fixtures/scopes/clojure/list.scope
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
[aaa bbb]
---

[Content] =
[Removal] =
[Domain] = 0:0-0:9
>---------<
0| [aaa bbb]

[Insertion delimiter] = " "
10 changes: 10 additions & 0 deletions data/fixtures/scopes/clojure/list2.scope
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
'[aaa bbb]
---

[Content] =
[Removal] =
[Domain] = 0:0-0:10
>----------<
0| '[aaa bbb]

[Insertion delimiter] = " "
10 changes: 10 additions & 0 deletions data/fixtures/scopes/clojure/list3.scope
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
'(aaa bbb)
---

[Content] =
[Removal] =
[Domain] = 0:0-0:10
>----------<
0| '(aaa bbb)

[Insertion delimiter] = " "
10 changes: 10 additions & 0 deletions data/fixtures/scopes/clojure/map.scope
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{:aaa 0 :bbb 1}
---

[Content] =
[Removal] =
[Domain] = 0:0-0:15
>---------------<
0| {:aaa 0 :bbb 1}

[Insertion delimiter] = " "
10 changes: 10 additions & 0 deletions data/fixtures/scopes/clojure/map2.scope
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
'{:aaa 0 :bbb 1}
---

[Content] =
[Removal] =
[Domain] = 0:0-0:16
>----------------<
0| '{:aaa 0 :bbb 1}

[Insertion delimiter] = " "
24 changes: 24 additions & 0 deletions data/fixtures/scopes/clojure/name.function.scope
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
(defn foo [] 0)
---

[Content] = 0:6-0:9
>---<
0| (defn foo [] 0)

[Removal] = 0:6-0:10
>----<
0| (defn foo [] 0)

[Leading delimiter] = 0:5-0:6
>-<
0| (defn foo [] 0)

[Trailing delimiter] = 0:9-0:10
>-<
0| (defn foo [] 0)

[Domain] = 0:0-0:15
>---------------<
0| (defn foo [] 0)

[Insertion delimiter] = " "
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@

(defn foo [] 0)

---

[Content] =
[Domain] = 0:0-2:0
>
0|
1| (defn foo [] 0)
2|
<
10 changes: 10 additions & 0 deletions data/fixtures/scopes/clojure/namedFunction.scope
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
(defn foo [] 0)
---

[Content] =
[Removal] =
[Domain] = 0:0-0:15
>---------------<
0| (defn foo [] 0)

[Insertion delimiter] = "\n\n"
13 changes: 13 additions & 0 deletions data/fixtures/scopes/clojure/string.multiLine.scope
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
"Hello
world"
---

[Content] =
[Removal] =
[Domain] = 0:0-1:6
>------
0| "Hello
1| world"
------<

[Insertion delimiter] = " "
Loading
Loading