v2 / vlib / v / fmt / tests / empty_lines_input.vv
36 lines · 20 sloc · 350 bytes · 5d0af69bfd6a6e5003dac7fe99d1ab8745c8f84f
Raw
1type MyInt = int
2type EmptyLineAfterLastType = fn() int
3struct EmptyLineAfterStructs {}
4fn empty_line_after_functions() {}
5fn squash_multiple_empty_lines() {
6 println('a')
7
8
9 println('b')
10
11 dump('c')
12
13
14 c := 0
15
16
17 d := 0
18}
19
20fn remove_leading_and_trailing_empty_lines() {
21
22 println('a')
23
24 println('b')
25
26 if test {
27
28 c := 0
29
30 } else {
31
32 d := 0
33
34 }
35
36}
37