File tree Expand file tree Collapse file tree 2 files changed +35
-9
lines changed
packages/cursorless-vscode-e2e/src/suite/fixtures/recorded/languages/nix Expand file tree Collapse file tree 2 files changed +35
-9
lines changed Original file line number Diff line number Diff line change
1
+ languageId : nix
2
+ command :
3
+ version : 6
4
+ spokenForm : change round
5
+ action :
6
+ name : clearAndSetSelection
7
+ target :
8
+ type : primitive
9
+ modifiers :
10
+ - type : containingScope
11
+ scopeType : {type: surroundingPair, delimiter: parentheses}
12
+ usePrePhraseSnapshot : true
13
+ initialState :
14
+ documentContents : |
15
+ {
16
+ foo = 1; # Test (round)
17
+ }
18
+ selections :
19
+ - anchor : {line: 1, character: 23}
20
+ active : {line: 1, character: 23}
21
+ marks : {}
22
+ finalState :
23
+ documentContents : |
24
+ {
25
+ foo = 1; # Test
26
+ }
27
+ selections :
28
+ - anchor : {line: 1, character: 18}
29
+ active : {line: 1, character: 18}
Original file line number Diff line number Diff line change 58
58
(list_expression) @list
59
59
60
60
;; !! foo = { x = 1; y = 2; };
61
- ;; ! ^^^^^^^^^^^^^^^^^^
61
+ ;; ! ^^^^^^^^^^^^^^^^^
62
62
[
63
63
(attrset_expression)
64
64
(rec_attrset_expression)
65
65
] @map @statement.iteration @value.iteration @name.iteration
66
66
67
67
;; !! foo = { x = 1; y = 2; };
68
68
;; ! ^
69
- (attrpath) @collectionKey
69
+ ;; ! -----
70
+ (binding
71
+ attrpath: (_) @collectionKey
72
+ ) @_.domain
70
73
71
74
;; Strings
72
75
86
89
"''" @textFragment.end.startOf
87
90
) @string
88
91
89
- ;; Hack to test these two are otherwise sane selectors
90
- ;; [
91
- ;; (string_expression)
92
- ;; (indented_string_expression)
93
- ;; ] @comment
94
-
95
92
;; Functions
96
93
97
94
;; Note for this part of the function, we identify is as lambda only
123
120
(ellipses) @argumentOrParameter
124
121
)
125
122
126
- ;; value
123
+ ;; Names and Values
127
124
128
125
;; !! a = 25;
129
126
;; ! ^^
You can’t perform that action at this time.
0 commit comments