summaryrefslogtreecommitdiff
path: root/test/snapshots/syntax.snap
blob: aae49c1b0f6b8851ea24fa86a1e1cf06dcc7c41e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# tree-sitter: open a .zig file, keyword/string/number/comment colors on;
# Colors off (SPC t c) clears them; edit re-highlights
file demo.zig const std = @import("std"); // greet\npub fn main() void {\n    var x: u32 = 42;\n    _ = x;\n}
start 31 150 -n 3
wait 8000 demo.zig
stable 700 20000
press left 5 9
release left 5 9
stable 400 5000
key i
text demo.zig
key esc
settle 100
press right 6 9
release right 6 9
wait 10000 @import
stable 700 15000
snap zig-open
snapstyle zig-open
key space
key t
key c
stable 500 10000
snapstyle colors-off
key space
key t
key c
stable 500 10000
snapstyle colors-on