Skip to content

Commit b650b22

Browse files
committed
initial next-gen shellscript support
1 parent 5f94e08 commit b650b22

File tree

84 files changed

+2957
-0
lines changed

Some content is hidden

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

84 files changed

+2957
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
languageId: shellscript
2+
command:
3+
version: 6
4+
spokenForm: change arg
5+
action:
6+
name: clearAndSetSelection
7+
target:
8+
type: primitive
9+
modifiers:
10+
- type: containingScope
11+
scopeType: {type: argumentOrParameter}
12+
usePrePhraseSnapshot: true
13+
initialState:
14+
documentContents: var="foo ${bar}"
15+
selections:
16+
- anchor: {line: 0, character: 13}
17+
active: {line: 0, character: 13}
18+
marks: {}
19+
finalState:
20+
documentContents: var="foo "
21+
selections:
22+
- anchor: {line: 0, character: 9}
23+
active: {line: 0, character: 9}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
languageId: shellscript
2+
command:
3+
version: 6
4+
spokenForm: change arg
5+
action:
6+
name: clearAndSetSelection
7+
target:
8+
type: primitive
9+
modifiers:
10+
- type: containingScope
11+
scopeType: {type: argumentOrParameter}
12+
usePrePhraseSnapshot: true
13+
initialState:
14+
documentContents: var="foo $bar"
15+
selections:
16+
- anchor: {line: 0, character: 10}
17+
active: {line: 0, character: 10}
18+
marks: {}
19+
finalState:
20+
documentContents: var="foo "
21+
selections:
22+
- anchor: {line: 0, character: 9}
23+
active: {line: 0, character: 9}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
languageId: shellscript
2+
command:
3+
version: 6
4+
spokenForm: change arg
5+
action:
6+
name: clearAndSetSelection
7+
target:
8+
type: primitive
9+
modifiers:
10+
- type: containingScope
11+
scopeType: {type: argumentOrParameter}
12+
usePrePhraseSnapshot: true
13+
initialState:
14+
documentContents: echo "foo"
15+
selections:
16+
- anchor: {line: 0, character: 6}
17+
active: {line: 0, character: 6}
18+
marks: {}
19+
finalState:
20+
documentContents: "echo "
21+
selections:
22+
- anchor: {line: 0, character: 5}
23+
active: {line: 0, character: 5}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
languageId: shellscript
2+
command:
3+
version: 6
4+
spokenForm: change arg
5+
action:
6+
name: clearAndSetSelection
7+
target:
8+
type: primitive
9+
modifiers:
10+
- type: containingScope
11+
scopeType: {type: argumentOrParameter}
12+
usePrePhraseSnapshot: true
13+
initialState:
14+
documentContents: echo "foo" "bar"
15+
selections:
16+
- anchor: {line: 0, character: 15}
17+
active: {line: 0, character: 15}
18+
marks: {}
19+
finalState:
20+
documentContents: "echo \"foo\" "
21+
selections:
22+
- anchor: {line: 0, character: 11}
23+
active: {line: 0, character: 11}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
languageId: shellscript
2+
command:
3+
version: 6
4+
spokenForm: change arg
5+
action:
6+
name: clearAndSetSelection
7+
target:
8+
type: primitive
9+
modifiers:
10+
- type: containingScope
11+
scopeType: {type: argumentOrParameter}
12+
usePrePhraseSnapshot: true
13+
initialState:
14+
documentContents: |
15+
echo "Foo ${BAR}"
16+
selections:
17+
- anchor: {line: 0, character: 12}
18+
active: {line: 0, character: 12}
19+
marks: {}
20+
finalState:
21+
documentContents: |
22+
echo "Foo "
23+
selections:
24+
- anchor: {line: 0, character: 10}
25+
active: {line: 0, character: 10}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
languageId: shellscript
2+
command:
3+
version: 6
4+
spokenForm: change arg bat
5+
action:
6+
name: clearAndSetSelection
7+
target:
8+
type: primitive
9+
mark: {type: decoratedSymbol, symbolColor: default, character: b}
10+
modifiers:
11+
- type: containingScope
12+
scopeType: {type: argumentOrParameter}
13+
usePrePhraseSnapshot: true
14+
initialState:
15+
documentContents: |
16+
echo "Foo ${BAR} ${BAZ} bar"
17+
selections:
18+
- anchor: {line: 0, character: 28}
19+
active: {line: 0, character: 28}
20+
marks:
21+
default.b:
22+
start: {line: 0, character: 12}
23+
end: {line: 0, character: 15}
24+
finalState:
25+
documentContents: |
26+
echo "Foo ${BAZ} bar"
27+
selections:
28+
- anchor: {line: 0, character: 10}
29+
active: {line: 0, character: 10}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
languageId: shellscript
2+
command:
3+
version: 6
4+
spokenForm: change arg red
5+
action:
6+
name: clearAndSetSelection
7+
target:
8+
type: primitive
9+
mark: {type: decoratedSymbol, symbolColor: default, character: r}
10+
modifiers:
11+
- type: containingScope
12+
scopeType: {type: argumentOrParameter}
13+
usePrePhraseSnapshot: true
14+
initialState:
15+
documentContents: |
16+
echo "Foo $BAR as $BAZ"
17+
selections:
18+
- anchor: {line: 0, character: 9}
19+
active: {line: 0, character: 9}
20+
marks:
21+
default.r:
22+
start: {line: 0, character: 11}
23+
end: {line: 0, character: 14}
24+
finalState:
25+
documentContents: |
26+
echo "Foo as $BAZ"
27+
selections:
28+
- anchor: {line: 0, character: 10}
29+
active: {line: 0, character: 10}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
languageId: shellscript
2+
command:
3+
version: 6
4+
spokenForm: change branch
5+
action:
6+
name: clearAndSetSelection
7+
target:
8+
type: primitive
9+
modifiers:
10+
- type: containingScope
11+
scopeType: {type: branch}
12+
usePrePhraseSnapshot: true
13+
initialState:
14+
documentContents: |-
15+
if [ "$number" -eq 42 ]; then
16+
echo "The number is 42"
17+
else
18+
echo "The number is not 42"
19+
fi
20+
selections:
21+
- anchor: {line: 3, character: 10}
22+
active: {line: 3, character: 10}
23+
marks: {}
24+
finalState:
25+
documentContents: |-
26+
if [ "$number" -eq 42 ]; then
27+
echo "The number is 42"
28+
fi
29+
selections:
30+
- anchor: {line: 2, character: 0}
31+
active: {line: 2, character: 0}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
languageId: shellscript
2+
command:
3+
version: 6
4+
spokenForm: change branch
5+
action:
6+
name: clearAndSetSelection
7+
target:
8+
type: primitive
9+
modifiers:
10+
- type: containingScope
11+
scopeType: {type: branch}
12+
usePrePhraseSnapshot: true
13+
initialState:
14+
documentContents: |-
15+
if [ "$number" -eq 42 ]; then
16+
echo "The number is 42"
17+
elif [ "$number" -gt 42 ]; then
18+
echo "The number is greater than 42"
19+
else
20+
echo "The number is less than than 42"
21+
fi
22+
selections:
23+
- anchor: {line: 3, character: 10}
24+
active: {line: 3, character: 10}
25+
marks: {}
26+
finalState:
27+
documentContents: |-
28+
if [ "$number" -eq 42 ]; then
29+
echo "The number is 42"
30+
else
31+
echo "The number is less than than 42"
32+
fi
33+
selections:
34+
- anchor: {line: 2, character: 0}
35+
active: {line: 2, character: 0}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
languageId: shellscript
2+
command:
3+
version: 6
4+
spokenForm: change branch
5+
action:
6+
name: clearAndSetSelection
7+
target:
8+
type: primitive
9+
modifiers:
10+
- type: containingScope
11+
scopeType: {type: branch}
12+
usePrePhraseSnapshot: true
13+
initialState:
14+
documentContents: |+
15+
if [ $value -le 0 ]; then
16+
fi
17+
18+
19+
selections:
20+
- anchor: {line: 0, character: 0}
21+
active: {line: 0, character: 0}
22+
marks: {}
23+
finalState:
24+
documentContents: |+
25+
26+
fi
27+
28+
29+
selections:
30+
- anchor: {line: 0, character: 0}
31+
active: {line: 0, character: 0}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
languageId: shellscript
2+
command:
3+
version: 6
4+
spokenForm: change branch
5+
action:
6+
name: clearAndSetSelection
7+
target:
8+
type: primitive
9+
modifiers:
10+
- type: containingScope
11+
scopeType: {type: branch}
12+
usePrePhraseSnapshot: true
13+
initialState:
14+
documentContents: |+
15+
if [ $value -le 0 ]; then
16+
else
17+
fi
18+
19+
selections:
20+
- anchor: {line: 1, character: 2}
21+
active: {line: 1, character: 2}
22+
marks: {}
23+
finalState:
24+
documentContents: |+
25+
if [ $value -le 0 ]; then
26+
27+
fi
28+
29+
selections:
30+
- anchor: {line: 1, character: 0}
31+
active: {line: 1, character: 0}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
languageId: shellscript
2+
command:
3+
version: 6
4+
spokenForm: change branch
5+
action:
6+
name: clearAndSetSelection
7+
target:
8+
type: primitive
9+
modifiers:
10+
- type: containingScope
11+
scopeType: {type: branch}
12+
usePrePhraseSnapshot: true
13+
initialState:
14+
documentContents: |+
15+
if [ $value -le 0 ]; then
16+
else
17+
fi
18+
19+
selections:
20+
- anchor: {line: 0, character: 2}
21+
active: {line: 0, character: 2}
22+
marks: {}
23+
finalState:
24+
documentContents: |+
25+
26+
else
27+
fi
28+
29+
selections:
30+
- anchor: {line: 0, character: 0}
31+
active: {line: 0, character: 0}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
languageId: shellscript
2+
command:
3+
version: 6
4+
spokenForm: change branch
5+
action:
6+
name: clearAndSetSelection
7+
target:
8+
type: primitive
9+
modifiers:
10+
- type: containingScope
11+
scopeType: {type: branch}
12+
usePrePhraseSnapshot: true
13+
initialState:
14+
documentContents: |
15+
if [ $value -le 0 ]; then
16+
elif [ $value -le 0 ]; then
17+
else
18+
fi
19+
selections:
20+
- anchor: {line: 1, character: 4}
21+
active: {line: 1, character: 4}
22+
marks: {}
23+
finalState:
24+
documentContents: |
25+
if [ $value -le 0 ]; then
26+
27+
else
28+
fi
29+
selections:
30+
- anchor: {line: 1, character: 0}
31+
active: {line: 1, character: 0}

0 commit comments

Comments
 (0)