Skip to content

Commit

Permalink
initial bash-lang support
Browse files Browse the repository at this point in the history
  • Loading branch information
fidgetingbits committed Apr 23, 2024
1 parent d5be7e7 commit 59a9341
Show file tree
Hide file tree
Showing 84 changed files with 2,960 additions and 2 deletions.
23 changes: 23 additions & 0 deletions data/fixtures/recorded/languages/shellscript/changeArg.yml
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 data/fixtures/recorded/languages/shellscript/changeArg2.yml
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 data/fixtures/recorded/languages/shellscript/changeArg3.yml
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 data/fixtures/recorded/languages/shellscript/changeArg4.yml
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 data/fixtures/recorded/languages/shellscript/changeArg5.yml
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 data/fixtures/recorded/languages/shellscript/changeArgBat.yml
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 data/fixtures/recorded/languages/shellscript/changeArgRed.yml
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 data/fixtures/recorded/languages/shellscript/changeBranch.yml
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 data/fixtures/recorded/languages/shellscript/changeBranch2.yml
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 data/fixtures/recorded/languages/shellscript/changeBranch3.yml
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 data/fixtures/recorded/languages/shellscript/changeBranch4.yml
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 data/fixtures/recorded/languages/shellscript/changeBranch5.yml
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 data/fixtures/recorded/languages/shellscript/changeBranch6.yml
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}
Loading

0 comments on commit 59a9341

Please sign in to comment.