-
-
Notifications
You must be signed in to change notification settings - Fork 81
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Initial tree-sitter support for .scm files
- Loading branch information
Showing
33 changed files
with
897 additions
and
0 deletions.
There are no files selected for viewing
30 changes: 30 additions & 0 deletions
30
packages/cursorless-vscode-e2e/src/suite/fixtures/recorded/languages/scm/clearCall.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
languageId: scm | ||
command: | ||
version: 5 | ||
spokenForm: clear call | ||
action: {name: clearAndSetSelection} | ||
targets: | ||
- type: primitive | ||
modifiers: | ||
- type: containingScope | ||
scopeType: {type: functionCall} | ||
usePrePhraseSnapshot: true | ||
initialState: | ||
documentContents: |- | ||
( | ||
(aaa) | ||
(#bbb! @aaa) | ||
) | ||
selections: | ||
- anchor: {line: 2, character: 4} | ||
active: {line: 2, character: 4} | ||
marks: {} | ||
finalState: | ||
documentContents: |- | ||
( | ||
(aaa) | ||
) | ||
selections: | ||
- anchor: {line: 2, character: 4} | ||
active: {line: 2, character: 4} |
30 changes: 30 additions & 0 deletions
30
packages/cursorless-vscode-e2e/src/suite/fixtures/recorded/languages/scm/clearCallee.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
languageId: scm | ||
command: | ||
version: 5 | ||
spokenForm: clear callee | ||
action: {name: clearAndSetSelection} | ||
targets: | ||
- type: primitive | ||
modifiers: | ||
- type: containingScope | ||
scopeType: {type: functionCallee} | ||
usePrePhraseSnapshot: true | ||
initialState: | ||
documentContents: |- | ||
( | ||
(aaa) | ||
(#bbb! @aaa) | ||
) | ||
selections: | ||
- anchor: {line: 2, character: 4} | ||
active: {line: 2, character: 4} | ||
marks: {} | ||
finalState: | ||
documentContents: |- | ||
( | ||
(aaa) | ||
(#! @aaa) | ||
) | ||
selections: | ||
- anchor: {line: 2, character: 6} | ||
active: {line: 2, character: 6} |
22 changes: 22 additions & 0 deletions
22
packages/cursorless-vscode-e2e/src/suite/fixtures/recorded/languages/scm/clearComment.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
languageId: scm | ||
command: | ||
version: 5 | ||
spokenForm: clear comment | ||
action: {name: clearAndSetSelection} | ||
targets: | ||
- type: primitive | ||
modifiers: | ||
- type: containingScope | ||
scopeType: {type: comment} | ||
usePrePhraseSnapshot: true | ||
initialState: | ||
documentContents: ;; aaa | ||
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} |
32 changes: 32 additions & 0 deletions
32
packages/cursorless-vscode-e2e/src/suite/fixtures/recorded/languages/scm/clearEveryArgue.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
languageId: scm | ||
command: | ||
version: 5 | ||
spokenForm: clear every argue | ||
action: {name: clearAndSetSelection} | ||
targets: | ||
- type: primitive | ||
modifiers: | ||
- type: everyScope | ||
scopeType: {type: argumentOrParameter} | ||
usePrePhraseSnapshot: true | ||
initialState: | ||
documentContents: |- | ||
( | ||
(aaa) | ||
(#bbb! @aaa "ccc") | ||
) | ||
selections: | ||
- anchor: {line: 2, character: 4} | ||
active: {line: 2, character: 4} | ||
marks: {} | ||
finalState: | ||
documentContents: |- | ||
( | ||
(aaa) | ||
(#bbb! ) | ||
) | ||
selections: | ||
- anchor: {line: 2, character: 11} | ||
active: {line: 2, character: 11} | ||
- anchor: {line: 2, character: 12} | ||
active: {line: 2, character: 12} |
34 changes: 34 additions & 0 deletions
34
packages/cursorless-vscode-e2e/src/suite/fixtures/recorded/languages/scm/clearEveryCall.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
languageId: scm | ||
command: | ||
version: 5 | ||
spokenForm: clear every call | ||
action: {name: clearAndSetSelection} | ||
targets: | ||
- type: primitive | ||
modifiers: | ||
- type: everyScope | ||
scopeType: {type: functionCall} | ||
usePrePhraseSnapshot: true | ||
initialState: | ||
documentContents: |- | ||
( | ||
(aaa) | ||
(#bbb! @aaa) | ||
(#ccc! @aaa) | ||
) | ||
selections: | ||
- anchor: {line: 1, character: 4} | ||
active: {line: 1, character: 4} | ||
marks: {} | ||
finalState: | ||
documentContents: |- | ||
( | ||
(aaa) | ||
) | ||
selections: | ||
- anchor: {line: 2, character: 4} | ||
active: {line: 2, character: 4} | ||
- anchor: {line: 3, character: 4} | ||
active: {line: 3, character: 4} |
34 changes: 34 additions & 0 deletions
34
...ages/cursorless-vscode-e2e/src/suite/fixtures/recorded/languages/scm/clearEveryCallee.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
languageId: scm | ||
command: | ||
version: 5 | ||
spokenForm: clear every callee | ||
action: {name: clearAndSetSelection} | ||
targets: | ||
- type: primitive | ||
modifiers: | ||
- type: everyScope | ||
scopeType: {type: functionCallee} | ||
usePrePhraseSnapshot: true | ||
initialState: | ||
documentContents: |- | ||
( | ||
(aaa) | ||
(#bbb! @aaa) | ||
(#ccc! @aaa) | ||
) | ||
selections: | ||
- anchor: {line: 1, character: 4} | ||
active: {line: 1, character: 4} | ||
marks: {} | ||
finalState: | ||
documentContents: |- | ||
( | ||
(aaa) | ||
(#! @aaa) | ||
(#! @aaa) | ||
) | ||
selections: | ||
- anchor: {line: 2, character: 6} | ||
active: {line: 2, character: 6} | ||
- anchor: {line: 3, character: 6} | ||
active: {line: 3, character: 6} |
24 changes: 24 additions & 0 deletions
24
packages/cursorless-vscode-e2e/src/suite/fixtures/recorded/languages/scm/clearEveryEntry.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
languageId: scm | ||
command: | ||
version: 5 | ||
spokenForm: clear every entry | ||
action: {name: clearAndSetSelection} | ||
targets: | ||
- type: primitive | ||
modifiers: | ||
- type: everyScope | ||
scopeType: {type: collectionItem} | ||
usePrePhraseSnapshot: true | ||
initialState: | ||
documentContents: "[(aaa) (bbb)]" | ||
selections: | ||
- anchor: {line: 0, character: 1} | ||
active: {line: 0, character: 1} | ||
marks: {} | ||
finalState: | ||
documentContents: "[ ]" | ||
selections: | ||
- anchor: {line: 0, character: 1} | ||
active: {line: 0, character: 1} | ||
- anchor: {line: 0, character: 2} | ||
active: {line: 0, character: 2} |
32 changes: 32 additions & 0 deletions
32
...ages/cursorless-vscode-e2e/src/suite/fixtures/recorded/languages/scm/clearEveryEntry2.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
languageId: scm | ||
command: | ||
version: 5 | ||
spokenForm: clear every entry | ||
action: {name: clearAndSetSelection} | ||
targets: | ||
- type: primitive | ||
modifiers: | ||
- type: everyScope | ||
scopeType: {type: collectionItem} | ||
usePrePhraseSnapshot: true | ||
initialState: | ||
documentContents: |- | ||
( | ||
[(aaa) (bbb)] | ||
(ccc) | ||
) | ||
selections: | ||
- anchor: {line: 1, character: 4} | ||
active: {line: 1, character: 4} | ||
marks: {} | ||
finalState: | ||
documentContents: |- | ||
( | ||
) | ||
selections: | ||
- anchor: {line: 1, character: 4} | ||
active: {line: 1, character: 4} | ||
- anchor: {line: 2, character: 4} | ||
active: {line: 2, character: 4} |
32 changes: 32 additions & 0 deletions
32
...ages/cursorless-vscode-e2e/src/suite/fixtures/recorded/languages/scm/clearEveryEntry3.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
languageId: scm | ||
command: | ||
version: 5 | ||
spokenForm: clear every entry | ||
action: {name: clearAndSetSelection} | ||
targets: | ||
- type: primitive | ||
modifiers: | ||
- type: everyScope | ||
scopeType: {type: collectionItem} | ||
usePrePhraseSnapshot: true | ||
initialState: | ||
documentContents: |- | ||
(ddd | ||
[(aaa) (bbb)] | ||
(ccc) | ||
) | ||
selections: | ||
- anchor: {line: 0, character: 1} | ||
active: {line: 0, character: 1} | ||
marks: {} | ||
finalState: | ||
documentContents: |- | ||
(ddd | ||
) | ||
selections: | ||
- anchor: {line: 1, character: 4} | ||
active: {line: 1, character: 4} | ||
- anchor: {line: 2, character: 4} | ||
active: {line: 2, character: 4} |
24 changes: 24 additions & 0 deletions
24
packages/cursorless-vscode-e2e/src/suite/fixtures/recorded/languages/scm/clearEveryName.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
languageId: scm | ||
command: | ||
version: 5 | ||
spokenForm: clear every name | ||
action: {name: clearAndSetSelection} | ||
targets: | ||
- type: primitive | ||
modifiers: | ||
- type: everyScope | ||
scopeType: {type: name} | ||
usePrePhraseSnapshot: true | ||
initialState: | ||
documentContents: (aaa) @bbb @ccc | ||
selections: | ||
- anchor: {line: 0, character: 0} | ||
active: {line: 0, character: 0} | ||
marks: {} | ||
finalState: | ||
documentContents: "(aaa) " | ||
selections: | ||
- anchor: {line: 0, character: 6} | ||
active: {line: 0, character: 6} | ||
- anchor: {line: 0, character: 7} | ||
active: {line: 0, character: 7} |
24 changes: 24 additions & 0 deletions
24
packages/cursorless-vscode-e2e/src/suite/fixtures/recorded/languages/scm/clearEveryName2.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
languageId: scm | ||
command: | ||
version: 5 | ||
spokenForm: clear every name | ||
action: {name: clearAndSetSelection} | ||
targets: | ||
- type: primitive | ||
modifiers: | ||
- type: everyScope | ||
scopeType: {type: name} | ||
usePrePhraseSnapshot: true | ||
initialState: | ||
documentContents: "[(aaa) (bbb)] @ccc @ddd" | ||
selections: | ||
- anchor: {line: 0, character: 0} | ||
active: {line: 0, character: 0} | ||
marks: {} | ||
finalState: | ||
documentContents: "[(aaa) (bbb)] " | ||
selections: | ||
- anchor: {line: 0, character: 14} | ||
active: {line: 0, character: 14} | ||
- anchor: {line: 0, character: 15} | ||
active: {line: 0, character: 15} |
29 changes: 29 additions & 0 deletions
29
packages/cursorless-vscode-e2e/src/suite/fixtures/recorded/languages/scm/clearEveryState.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
languageId: scm | ||
command: | ||
version: 5 | ||
spokenForm: clear every state | ||
action: {name: clearAndSetSelection} | ||
targets: | ||
- type: primitive | ||
modifiers: | ||
- type: everyScope | ||
scopeType: {type: statement} | ||
usePrePhraseSnapshot: true | ||
initialState: | ||
documentContents: |- | ||
(aaa) @bbb | ||
;; ccc | ||
(ddd) @eee | ||
selections: | ||
- anchor: {line: 2, character: 10} | ||
active: {line: 2, character: 10} | ||
marks: {} | ||
finalState: | ||
documentContents: | | ||
;; ccc | ||
selections: | ||
- anchor: {line: 0, character: 0} | ||
active: {line: 0, character: 0} | ||
- anchor: {line: 2, character: 0} | ||
active: {line: 2, character: 0} |
22 changes: 22 additions & 0 deletions
22
packages/cursorless-vscode-e2e/src/suite/fixtures/recorded/languages/scm/clearItem.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
languageId: scm | ||
command: | ||
version: 5 | ||
spokenForm: clear item | ||
action: {name: clearAndSetSelection} | ||
targets: | ||
- type: primitive | ||
modifiers: | ||
- type: containingScope | ||
scopeType: {type: collectionItem} | ||
usePrePhraseSnapshot: true | ||
initialState: | ||
documentContents: ;; (aaa) | ||
selections: | ||
- anchor: {line: 0, character: 4} | ||
active: {line: 0, character: 4} | ||
marks: {} | ||
finalState: | ||
documentContents: ;; () | ||
selections: | ||
- anchor: {line: 0, character: 4} | ||
active: {line: 0, character: 4} |
Oops, something went wrong.