File tree Expand file tree Collapse file tree 5 files changed +185
-3
lines changed
packages/cursorless-vscode-e2e/src/suite/fixtures/recorded/languages/nix Expand file tree Collapse file tree 5 files changed +185
-3
lines changed Original file line number Diff line number Diff line change
1
+ languageId : nix
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
+ {
16
+ foo = let
17
+ a = b;
18
+ c = d;
19
+ in
20
+ {
21
+ output = b;
22
+ };
23
+
24
+ }
25
+ selections :
26
+ - anchor : {line: 1, character: 11}
27
+ active : {line: 1, character: 11}
28
+ marks : {}
29
+ finalState :
30
+ documentContents : |
31
+ {
32
+ = let
33
+ a = b;
34
+ c = d;
35
+ in
36
+ {
37
+ output = b;
38
+ };
39
+
40
+ }
41
+ selections :
42
+ - anchor : {line: 1, character: 2}
43
+ active : {line: 1, character: 2}
Original file line number Diff line number Diff line change
1
+ languageId : nix
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
+ {
16
+ foo = let
17
+ a = b;
18
+ c = d;
19
+ in
20
+ {
21
+ output = b;
22
+ };
23
+
24
+ }
25
+ selections :
26
+ - anchor : {line: 2, character: 10}
27
+ active : {line: 2, character: 10}
28
+ marks : {}
29
+ finalState :
30
+ documentContents : |
31
+ {
32
+ foo = let
33
+ = b;
34
+ c = d;
35
+ in
36
+ {
37
+ output = b;
38
+ };
39
+
40
+ }
41
+ selections :
42
+ - anchor : {line: 2, character: 4}
43
+ active : {line: 2, character: 4}
Original file line number Diff line number Diff line change
1
+ languageId : nix
2
+ command :
3
+ version : 6
4
+ spokenForm : chuck name
5
+ action :
6
+ name : remove
7
+ target :
8
+ type : primitive
9
+ modifiers :
10
+ - type : containingScope
11
+ scopeType : {type: name}
12
+ usePrePhraseSnapshot : true
13
+ initialState :
14
+ documentContents : |
15
+ {
16
+ foo = let
17
+ a = b;
18
+ c = d;
19
+ in
20
+ {
21
+ output = b;
22
+ };
23
+
24
+ }
25
+ selections :
26
+ - anchor : {line: 1, character: 11}
27
+ active : {line: 1, character: 11}
28
+ marks : {}
29
+ finalState :
30
+ documentContents : |
31
+ {
32
+ = let
33
+ a = b;
34
+ c = d;
35
+ in
36
+ {
37
+ output = b;
38
+ };
39
+
40
+ }
41
+ selections :
42
+ - anchor : {line: 1, character: 7}
43
+ active : {line: 1, character: 7}
Original file line number Diff line number Diff line change
1
+ languageId : nix
2
+ command :
3
+ version : 6
4
+ spokenForm : chuck name
5
+ action :
6
+ name : remove
7
+ target :
8
+ type : primitive
9
+ modifiers :
10
+ - type : containingScope
11
+ scopeType : {type: name}
12
+ usePrePhraseSnapshot : true
13
+ initialState :
14
+ documentContents : |
15
+ {
16
+ foo = let
17
+ a = b;
18
+ c = d;
19
+ in
20
+ {
21
+ output = b;
22
+ };
23
+
24
+ }
25
+ selections :
26
+ - anchor : {line: 6, character: 17}
27
+ active : {line: 6, character: 17}
28
+ marks : {}
29
+ finalState :
30
+ documentContents : |
31
+ {
32
+ foo = let
33
+ a = b;
34
+ c = d;
35
+ in
36
+ {
37
+ = b;
38
+ };
39
+
40
+ }
41
+ selections :
42
+ - anchor : {line: 6, character: 10}
43
+ active : {line: 6, character: 10}
Original file line number Diff line number Diff line change 21
21
[
22
22
(attrset_expression)
23
23
(rec_attrset_expression)
24
- ] @map @statement.iteration @value.iteration
24
+ ] @map @statement.iteration @value.iteration @name.iteration
25
25
(binding_set) @map.iteration @list.iteration @ifStatement.iteration
26
26
27
27
(source_code) @statement.iteration @map.iteration
34
34
;; !! in a + b
35
35
(let_expression
36
36
"let"
37
- (_) @statement.iteration @value.iteration
37
+ (_) @statement.iteration @value.iteration @name.iteration
38
38
)
39
39
40
40
(string_expression
87
87
;; !! a = 25;
88
88
;; ! ^^
89
89
;; ! xxxxx
90
- ;; ! ------
90
+ ;; ! -------
91
91
(binding
92
92
(_) @_.leading.start.endOf
93
93
.
94
94
expression: (_) @value @_.leading.end.startOf
95
95
) @_.domain
96
+
97
+ ;; !! a = 25;
98
+ ;; ! ^
99
+ ;; ! xx
100
+ ;; ! -------
101
+ (binding
102
+ (_) @name @_.leading.end.startOf
103
+ .
104
+ expression: (_)
105
+ ) @_.domain
You can’t perform that action at this time.
0 commit comments