File tree Expand file tree Collapse file tree 6 files changed +195
-0
lines changed
packages/cursorless-vscode-e2e/src/suite/fixtures/recorded/languages/shellscript Expand file tree Collapse file tree 6 files changed +195
-0
lines changed Original file line number Diff line number Diff line change
1
+ languageId : shellscript
2
+ command :
3
+ version : 6
4
+ spokenForm : change condition five
5
+ action :
6
+ name : clearAndSetSelection
7
+ target :
8
+ type : primitive
9
+ mark : {type: decoratedSymbol, symbolColor: default, character: '5'}
10
+ modifiers :
11
+ - type : containingScope
12
+ scopeType : {type: condition}
13
+ usePrePhraseSnapshot : true
14
+ initialState :
15
+ documentContents : |2
16
+ # C-style for loop
17
+ for ((i = 1; i <= 5; i++)); do
18
+ echo "C-style loop iteration: $i"
19
+ done
20
+ selections :
21
+ - anchor : {line: 1, character: 19}
22
+ active : {line: 1, character: 19}
23
+ marks :
24
+ default.5 :
25
+ start : {line: 1, character: 20}
26
+ end : {line: 1, character: 21}
27
+ finalState :
28
+ documentContents : |2
29
+ # C-style for loop
30
+ for ((i = 1; ; i++)); do
31
+ echo "C-style loop iteration: $i"
32
+ done
33
+ selections :
34
+ - anchor : {line: 1, character: 15}
35
+ active : {line: 1, character: 15}
Original file line number Diff line number Diff line change
1
+ languageId : shellscript
2
+ command :
3
+ version : 6
4
+ spokenForm : change name
5
+ action :
6
+ name : clearAndSetSelection
7
+ target :
8
+ type : primitive
9
+ modifiers :
10
+ - type : containingScope
11
+ scopeType : {type: name}
12
+ usePrePhraseSnapshot : true
13
+ initialState :
14
+ documentContents : |-
15
+ for ((i = 1; i <= 5; i++)); do
16
+ echo "C-style loop iteration: $i"
17
+ done
18
+ selections :
19
+ - anchor : {line: 0, character: 8}
20
+ active : {line: 0, character: 8}
21
+ marks : {}
22
+ finalState :
23
+ documentContents : |-
24
+ for (( = 1; i <= 5; i++)); do
25
+ echo "C-style loop iteration: $i"
26
+ done
27
+ selections :
28
+ - anchor : {line: 0, character: 6}
29
+ active : {line: 0, character: 6}
Original file line number Diff line number Diff line change
1
+ languageId : shellscript
2
+ command :
3
+ version : 6
4
+ spokenForm : change value one
5
+ action :
6
+ name : clearAndSetSelection
7
+ target :
8
+ type : primitive
9
+ mark : {type: decoratedSymbol, symbolColor: default, character: '1'}
10
+ modifiers :
11
+ - type : containingScope
12
+ scopeType : {type: value}
13
+ usePrePhraseSnapshot : true
14
+ initialState :
15
+ documentContents : |2
16
+ # C-style for loop
17
+ for ((i = 1; i <= 5; i++)); do
18
+ echo "C-style loop iteration: $i"
19
+ done
20
+ selections :
21
+ - anchor : {line: 1, character: 12}
22
+ active : {line: 1, character: 12}
23
+ marks :
24
+ default.1 :
25
+ start : {line: 1, character: 12}
26
+ end : {line: 1, character: 13}
27
+ finalState :
28
+ documentContents : |2
29
+ # C-style for loop
30
+ for ((i = ; i <= 5; i++)); do
31
+ echo "C-style loop iteration: $i"
32
+ done
33
+ selections :
34
+ - anchor : {line: 1, character: 12}
35
+ active : {line: 1, character: 12}
Original file line number Diff line number Diff line change
1
+ languageId : shellscript
2
+ command :
3
+ version : 6
4
+ spokenForm : chuck name green sit
5
+ action :
6
+ name : remove
7
+ target :
8
+ type : primitive
9
+ mark : {type: decoratedSymbol, symbolColor: green, character: i}
10
+ modifiers :
11
+ - type : containingScope
12
+ scopeType : {type: name}
13
+ usePrePhraseSnapshot : true
14
+ initialState :
15
+ documentContents : |2-
16
+ # C-style for loop
17
+ for ((i = 1; i <= 5; i++)); do
18
+ echo "C-style loop iteration: $i"
19
+ done
20
+ selections :
21
+ - anchor : {line: 1, character: 12}
22
+ active : {line: 1, character: 12}
23
+ marks :
24
+ green.i :
25
+ start : {line: 1, character: 8}
26
+ end : {line: 1, character: 9}
27
+ finalState :
28
+ documentContents : |2-
29
+ # C-style for loop
30
+ for ((1; i <= 5; i++)); do
31
+ echo "C-style loop iteration: $i"
32
+ done
33
+ selections :
34
+ - anchor : {line: 1, character: 8}
35
+ active : {line: 1, character: 8}
Original file line number Diff line number Diff line change
1
+ languageId : shellscript
2
+ command :
3
+ version : 6
4
+ spokenForm : chuck value one
5
+ action :
6
+ name : remove
7
+ target :
8
+ type : primitive
9
+ mark : {type: decoratedSymbol, symbolColor: default, character: '1'}
10
+ modifiers :
11
+ - type : containingScope
12
+ scopeType : {type: value}
13
+ usePrePhraseSnapshot : true
14
+ initialState :
15
+ documentContents : |2
16
+ # C-style for loop
17
+ for ((i = 1; i <= 5; i++)); do
18
+ echo "C-style loop iteration: $i"
19
+ done
20
+ selections :
21
+ - anchor : {line: 1, character: 12}
22
+ active : {line: 1, character: 12}
23
+ marks :
24
+ default.1 :
25
+ start : {line: 1, character: 12}
26
+ end : {line: 1, character: 13}
27
+ finalState :
28
+ documentContents : |2
29
+ # C-style for loop
30
+ for ((i; i <= 5; i++)); do
31
+ echo "C-style loop iteration: $i"
32
+ done
33
+ selections :
34
+ - anchor : {line: 1, character: 9}
35
+ active : {line: 1, character: 9}
Original file line number Diff line number Diff line change 270
270
(#not-parent-type? @dummy declaration_command)
271
271
)
272
272
273
+ ; ;!! for ((i = 1; i <= 5; i++)); do
274
+ ; ;! ^
275
+ ; ;! xxxx
276
+ ; ;! -----
277
+ (variable_assignment
278
+ !name
279
+ (variable_name) @name @_.trailing.start.startOf
280
+ " ="
281
+ (_) @_.trailing.end.startOf
282
+ ) @_.domain
283
+
273
284
; ;!! local foo="bar"
274
285
; ;! ^^^
275
286
; ;! xxxxxxxxxx
296
307
(#not-parent-type? @dummy declaration_command)
297
308
)
298
309
310
+ ; ;!! for ((i = 1; i <= 5; i++)); do
311
+ ; ;! ^
312
+ ; ;! xxxx
313
+ ; ;! -----
314
+ (
315
+ (variable_assignment
316
+ !name
317
+ !value
318
+ (_) @_.leading.start.endOf
319
+ " ="
320
+ .
321
+ (_) @value @_.leading.end.endOf
322
+ ) @_.domain
323
+ )
324
+
299
325
(declaration_command
300
326
" local" @_.domain.start.startOf
301
327
(variable_assignment
You can’t perform that action at this time.
0 commit comments