-
-
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 next-gen shellscript support
- Loading branch information
1 parent
5f94e08
commit b650b22
Showing
84 changed files
with
2,957 additions
and
0 deletions.
There are no files selected for viewing
23 changes: 23 additions & 0 deletions
23
data/fixtures/recorded/languages/shellscript/changeArg.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,23 @@ | ||
languageId: shellscript | ||
command: | ||
version: 6 | ||
spokenForm: change arg | ||
action: | ||
name: clearAndSetSelection | ||
target: | ||
type: primitive | ||
modifiers: | ||
- type: containingScope | ||
scopeType: {type: argumentOrParameter} | ||
usePrePhraseSnapshot: true | ||
initialState: | ||
documentContents: var="foo ${bar}" | ||
selections: | ||
- anchor: {line: 0, character: 13} | ||
active: {line: 0, character: 13} | ||
marks: {} | ||
finalState: | ||
documentContents: var="foo " | ||
selections: | ||
- anchor: {line: 0, character: 9} | ||
active: {line: 0, character: 9} |
23 changes: 23 additions & 0 deletions
23
data/fixtures/recorded/languages/shellscript/changeArg2.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,23 @@ | ||
languageId: shellscript | ||
command: | ||
version: 6 | ||
spokenForm: change arg | ||
action: | ||
name: clearAndSetSelection | ||
target: | ||
type: primitive | ||
modifiers: | ||
- type: containingScope | ||
scopeType: {type: argumentOrParameter} | ||
usePrePhraseSnapshot: true | ||
initialState: | ||
documentContents: var="foo $bar" | ||
selections: | ||
- anchor: {line: 0, character: 10} | ||
active: {line: 0, character: 10} | ||
marks: {} | ||
finalState: | ||
documentContents: var="foo " | ||
selections: | ||
- anchor: {line: 0, character: 9} | ||
active: {line: 0, character: 9} |
23 changes: 23 additions & 0 deletions
23
data/fixtures/recorded/languages/shellscript/changeArg3.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,23 @@ | ||
languageId: shellscript | ||
command: | ||
version: 6 | ||
spokenForm: change arg | ||
action: | ||
name: clearAndSetSelection | ||
target: | ||
type: primitive | ||
modifiers: | ||
- type: containingScope | ||
scopeType: {type: argumentOrParameter} | ||
usePrePhraseSnapshot: true | ||
initialState: | ||
documentContents: echo "foo" | ||
selections: | ||
- anchor: {line: 0, character: 6} | ||
active: {line: 0, character: 6} | ||
marks: {} | ||
finalState: | ||
documentContents: "echo " | ||
selections: | ||
- anchor: {line: 0, character: 5} | ||
active: {line: 0, character: 5} |
23 changes: 23 additions & 0 deletions
23
data/fixtures/recorded/languages/shellscript/changeArg4.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,23 @@ | ||
languageId: shellscript | ||
command: | ||
version: 6 | ||
spokenForm: change arg | ||
action: | ||
name: clearAndSetSelection | ||
target: | ||
type: primitive | ||
modifiers: | ||
- type: containingScope | ||
scopeType: {type: argumentOrParameter} | ||
usePrePhraseSnapshot: true | ||
initialState: | ||
documentContents: echo "foo" "bar" | ||
selections: | ||
- anchor: {line: 0, character: 15} | ||
active: {line: 0, character: 15} | ||
marks: {} | ||
finalState: | ||
documentContents: "echo \"foo\" " | ||
selections: | ||
- anchor: {line: 0, character: 11} | ||
active: {line: 0, character: 11} |
25 changes: 25 additions & 0 deletions
25
data/fixtures/recorded/languages/shellscript/changeArg5.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,25 @@ | ||
languageId: shellscript | ||
command: | ||
version: 6 | ||
spokenForm: change arg | ||
action: | ||
name: clearAndSetSelection | ||
target: | ||
type: primitive | ||
modifiers: | ||
- type: containingScope | ||
scopeType: {type: argumentOrParameter} | ||
usePrePhraseSnapshot: true | ||
initialState: | ||
documentContents: | | ||
echo "Foo ${BAR}" | ||
selections: | ||
- anchor: {line: 0, character: 12} | ||
active: {line: 0, character: 12} | ||
marks: {} | ||
finalState: | ||
documentContents: | | ||
echo "Foo " | ||
selections: | ||
- anchor: {line: 0, character: 10} | ||
active: {line: 0, character: 10} |
29 changes: 29 additions & 0 deletions
29
data/fixtures/recorded/languages/shellscript/changeArgBat.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: shellscript | ||
command: | ||
version: 6 | ||
spokenForm: change arg bat | ||
action: | ||
name: clearAndSetSelection | ||
target: | ||
type: primitive | ||
mark: {type: decoratedSymbol, symbolColor: default, character: b} | ||
modifiers: | ||
- type: containingScope | ||
scopeType: {type: argumentOrParameter} | ||
usePrePhraseSnapshot: true | ||
initialState: | ||
documentContents: | | ||
echo "Foo ${BAR} ${BAZ} bar" | ||
selections: | ||
- anchor: {line: 0, character: 28} | ||
active: {line: 0, character: 28} | ||
marks: | ||
default.b: | ||
start: {line: 0, character: 12} | ||
end: {line: 0, character: 15} | ||
finalState: | ||
documentContents: | | ||
echo "Foo ${BAZ} bar" | ||
selections: | ||
- anchor: {line: 0, character: 10} | ||
active: {line: 0, character: 10} |
29 changes: 29 additions & 0 deletions
29
data/fixtures/recorded/languages/shellscript/changeArgRed.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: shellscript | ||
command: | ||
version: 6 | ||
spokenForm: change arg red | ||
action: | ||
name: clearAndSetSelection | ||
target: | ||
type: primitive | ||
mark: {type: decoratedSymbol, symbolColor: default, character: r} | ||
modifiers: | ||
- type: containingScope | ||
scopeType: {type: argumentOrParameter} | ||
usePrePhraseSnapshot: true | ||
initialState: | ||
documentContents: | | ||
echo "Foo $BAR as $BAZ" | ||
selections: | ||
- anchor: {line: 0, character: 9} | ||
active: {line: 0, character: 9} | ||
marks: | ||
default.r: | ||
start: {line: 0, character: 11} | ||
end: {line: 0, character: 14} | ||
finalState: | ||
documentContents: | | ||
echo "Foo as $BAZ" | ||
selections: | ||
- anchor: {line: 0, character: 10} | ||
active: {line: 0, character: 10} |
31 changes: 31 additions & 0 deletions
31
data/fixtures/recorded/languages/shellscript/changeBranch.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,31 @@ | ||
languageId: shellscript | ||
command: | ||
version: 6 | ||
spokenForm: change branch | ||
action: | ||
name: clearAndSetSelection | ||
target: | ||
type: primitive | ||
modifiers: | ||
- type: containingScope | ||
scopeType: {type: branch} | ||
usePrePhraseSnapshot: true | ||
initialState: | ||
documentContents: |- | ||
if [ "$number" -eq 42 ]; then | ||
echo "The number is 42" | ||
else | ||
echo "The number is not 42" | ||
fi | ||
selections: | ||
- anchor: {line: 3, character: 10} | ||
active: {line: 3, character: 10} | ||
marks: {} | ||
finalState: | ||
documentContents: |- | ||
if [ "$number" -eq 42 ]; then | ||
echo "The number is 42" | ||
fi | ||
selections: | ||
- anchor: {line: 2, character: 0} | ||
active: {line: 2, character: 0} |
35 changes: 35 additions & 0 deletions
35
data/fixtures/recorded/languages/shellscript/changeBranch2.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,35 @@ | ||
languageId: shellscript | ||
command: | ||
version: 6 | ||
spokenForm: change branch | ||
action: | ||
name: clearAndSetSelection | ||
target: | ||
type: primitive | ||
modifiers: | ||
- type: containingScope | ||
scopeType: {type: branch} | ||
usePrePhraseSnapshot: true | ||
initialState: | ||
documentContents: |- | ||
if [ "$number" -eq 42 ]; then | ||
echo "The number is 42" | ||
elif [ "$number" -gt 42 ]; then | ||
echo "The number is greater than 42" | ||
else | ||
echo "The number is less than than 42" | ||
fi | ||
selections: | ||
- anchor: {line: 3, character: 10} | ||
active: {line: 3, character: 10} | ||
marks: {} | ||
finalState: | ||
documentContents: |- | ||
if [ "$number" -eq 42 ]; then | ||
echo "The number is 42" | ||
else | ||
echo "The number is less than than 42" | ||
fi | ||
selections: | ||
- anchor: {line: 2, character: 0} | ||
active: {line: 2, character: 0} |
31 changes: 31 additions & 0 deletions
31
data/fixtures/recorded/languages/shellscript/changeBranch3.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,31 @@ | ||
languageId: shellscript | ||
command: | ||
version: 6 | ||
spokenForm: change branch | ||
action: | ||
name: clearAndSetSelection | ||
target: | ||
type: primitive | ||
modifiers: | ||
- type: containingScope | ||
scopeType: {type: branch} | ||
usePrePhraseSnapshot: true | ||
initialState: | ||
documentContents: |+ | ||
if [ $value -le 0 ]; then | ||
fi | ||
selections: | ||
- anchor: {line: 0, character: 0} | ||
active: {line: 0, character: 0} | ||
marks: {} | ||
finalState: | ||
documentContents: |+ | ||
fi | ||
selections: | ||
- anchor: {line: 0, character: 0} | ||
active: {line: 0, character: 0} |
31 changes: 31 additions & 0 deletions
31
data/fixtures/recorded/languages/shellscript/changeBranch4.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,31 @@ | ||
languageId: shellscript | ||
command: | ||
version: 6 | ||
spokenForm: change branch | ||
action: | ||
name: clearAndSetSelection | ||
target: | ||
type: primitive | ||
modifiers: | ||
- type: containingScope | ||
scopeType: {type: branch} | ||
usePrePhraseSnapshot: true | ||
initialState: | ||
documentContents: |+ | ||
if [ $value -le 0 ]; then | ||
else | ||
fi | ||
selections: | ||
- anchor: {line: 1, character: 2} | ||
active: {line: 1, character: 2} | ||
marks: {} | ||
finalState: | ||
documentContents: |+ | ||
if [ $value -le 0 ]; then | ||
fi | ||
selections: | ||
- anchor: {line: 1, character: 0} | ||
active: {line: 1, character: 0} |
31 changes: 31 additions & 0 deletions
31
data/fixtures/recorded/languages/shellscript/changeBranch5.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,31 @@ | ||
languageId: shellscript | ||
command: | ||
version: 6 | ||
spokenForm: change branch | ||
action: | ||
name: clearAndSetSelection | ||
target: | ||
type: primitive | ||
modifiers: | ||
- type: containingScope | ||
scopeType: {type: branch} | ||
usePrePhraseSnapshot: true | ||
initialState: | ||
documentContents: |+ | ||
if [ $value -le 0 ]; then | ||
else | ||
fi | ||
selections: | ||
- anchor: {line: 0, character: 2} | ||
active: {line: 0, character: 2} | ||
marks: {} | ||
finalState: | ||
documentContents: |+ | ||
else | ||
fi | ||
selections: | ||
- anchor: {line: 0, character: 0} | ||
active: {line: 0, character: 0} |
31 changes: 31 additions & 0 deletions
31
data/fixtures/recorded/languages/shellscript/changeBranch6.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,31 @@ | ||
languageId: shellscript | ||
command: | ||
version: 6 | ||
spokenForm: change branch | ||
action: | ||
name: clearAndSetSelection | ||
target: | ||
type: primitive | ||
modifiers: | ||
- type: containingScope | ||
scopeType: {type: branch} | ||
usePrePhraseSnapshot: true | ||
initialState: | ||
documentContents: | | ||
if [ $value -le 0 ]; then | ||
elif [ $value -le 0 ]; then | ||
else | ||
fi | ||
selections: | ||
- anchor: {line: 1, character: 4} | ||
active: {line: 1, character: 4} | ||
marks: {} | ||
finalState: | ||
documentContents: | | ||
if [ $value -le 0 ]; then | ||
else | ||
fi | ||
selections: | ||
- anchor: {line: 1, character: 0} | ||
active: {line: 1, character: 0} |
Oops, something went wrong.