Skip to content

Commit 2e329f4

Browse files
author
fidgetingbits
committed
inside funk test
1 parent ee7fb93 commit 2e329f4

File tree

1 file changed

+50
-0
lines changed

1 file changed

+50
-0
lines changed
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
languageId: nix
2+
command:
3+
version: 6
4+
spokenForm: change inside funk
5+
action:
6+
name: clearAndSetSelection
7+
target:
8+
type: primitive
9+
modifiers:
10+
- {type: interiorOnly}
11+
- type: containingScope
12+
scopeType: {type: namedFunction}
13+
usePrePhraseSnapshot: true
14+
initialState:
15+
documentContents: |
16+
{
17+
# Anonymous function
18+
a = foo: (foo + 1);
19+
x = a: b: a + b;
20+
21+
# Non-built-in function
22+
ba = test( foo: bar: {
23+
b = foo;
24+
});
25+
26+
# Built-in function
27+
x = map (x: y: x + x) [ 1 2 3 ];
28+
}
29+
selections:
30+
- anchor: {line: 3, character: 16}
31+
active: {line: 3, character: 16}
32+
marks: {}
33+
finalState:
34+
documentContents: |
35+
{
36+
# Anonymous function
37+
a = foo: (foo + 1);
38+
x = ;
39+
40+
# Non-built-in function
41+
ba = test( foo: bar: {
42+
b = foo;
43+
});
44+
45+
# Built-in function
46+
x = map (x: y: x + x) [ 1 2 3 ];
47+
}
48+
selections:
49+
- anchor: {line: 3, character: 6}
50+
active: {line: 3, character: 6}

0 commit comments

Comments
 (0)