File tree Expand file tree Collapse file tree 2 files changed +36
-9
lines changed
packages/cursorless-vscode-e2e/src/suite/fixtures/recorded/languages/nix Expand file tree Collapse file tree 2 files changed +36
-9
lines changed Original file line number Diff line number Diff line change
1
+ languageId : nix
2
+ command :
3
+ version : 6
4
+ spokenForm : change inside lambda
5
+ action :
6
+ name : clearAndSetSelection
7
+ target :
8
+ type : primitive
9
+ modifiers :
10
+ - {type: interiorOnly}
11
+ - type : containingScope
12
+ scopeType : {type: anonymousFunction}
13
+ usePrePhraseSnapshot : true
14
+ initialState :
15
+ documentContents : |-
16
+ {
17
+ x = a: b: a + b;
18
+ }
19
+ selections :
20
+ - anchor : {line: 1, character: 9}
21
+ active : {line: 1, character: 9}
22
+ marks : {}
23
+ finalState :
24
+ documentContents : |-
25
+ {
26
+ x = a: b: ;
27
+ }
28
+ selections :
29
+ - anchor : {line: 1, character: 12}
30
+ active : {line: 1, character: 12}
Original file line number Diff line number Diff line change 9
9
;; file for an example.
10
10
(assert_expression
11
11
"assert" @statement.start
12
- condition: (_)
12
+ condition: (_) @condition
13
13
";" @statement.end
14
- body: (_)
15
- )
14
+ ) @_.domain
16
15
(binding_set) @map.iteration @list.iteration @ifStatement.iteration
17
16
(source_code) @statement.iteration @map.iteration @comment.iteration
18
17
97
96
;; ! ^^^^^^^^^^^ Func2 due to currying
98
97
(function_expression
99
98
universal: (identifier) @argumentOrParameter
100
- body: (_)
99
+ body: (_) @anonymousFunction.interior
101
100
) @anonymousFunction @argumentOrParameter.iteration
102
101
103
102
;; We define the named function as the full assignment of the lambda
114
113
) @_.domain
115
114
116
115
(apply_expression) @functionCall
117
- (formals) @argumentOrParameter.iteration
118
- (formal) @argumentOrParameter
119
- (formals
120
- (ellipses) @argumentOrParameter
121
- )
116
+ (function_expression
117
+ (formals) @argumentOrParameter
118
+ ) @_.domain
122
119
123
120
;; Names and Values
124
121
You can’t perform that action at this time.
0 commit comments