Debian Codegraph @

testsuite/tests/lib-format/pp_print_custom_break.reference

raw
1 # Printing arrays: last trailing semicolon is optional
2
3 ## The "v" box
4 ```
5 [
6 Foo;
7 Baz;
8 Bar;
9 Qux;
10 Quux;
11 Quuz;
12 Corge;
13 Grault;
14 Garply;
15 ]
16 ```
17
18 ## The "b" box
19 ```
20 [
21 Foo; Baz; Bar; Qux; Quux;
22 Quuz; Corge; Grault; Garply;
23 ]
24 ```
25
26 ## The "h" box
27 ```
28 [Foo; Baz; Bar; Qux; Quux; Quuz; Corge; Grault; Garply]
29 ```
30
31 ## The "hv" box
32 ```
33 [
34 Foo;
35 Baz;
36 Bar;
37 Qux;
38 Quux;
39 Quuz;
40 Corge;
41 Grault;
42 Garply;
43 ]
44 ```
45
46 ## The "hov" box
47 ```
48 [
49 Foo; Baz; Bar; Qux; Quux;
50 Quuz; Corge; Grault; Garply;
51 ]
52 ```
53
54 # Printing statements: terminator is optional after newline
55
56 ## The "v" box
57 ```
58 {
59 Foo
60 Baz
61 Bar
62 Qux
63 Quux
64 Quuz
65 Corge
66 Grault
67 Garply
68 }
69 ```
70
71 ## The "b" box
72 ```
73 {
74 Foo; Baz; Bar; Qux; Quux
75 Quuz; Corge; Grault; Garply
76 }
77 ```
78
79 ## The "h" box
80 ```
81 {Foo; Baz; Bar; Qux; Quux; Quuz; Corge; Grault; Garply}
82 ```
83
84 ## The "hv" box
85 ```
86 {
87 Foo
88 Baz
89 Bar
90 Qux
91 Quux
92 Quuz
93 Corge
94 Grault
95 Garply
96 }
97 ```
98
99 ## The "hov" box
100 ```
101 {
102 Foo; Baz; Bar; Qux; Quux
103 Quuz; Corge; Grault; Garply
104 }
105 ```
106
107 # Printing function: first pipe character is optional
108
109 ## The "v" box
110 ```
111 function
112 | Foo -> ()
113 | Baz -> ()
114 | Bar -> ()
115 | Qux -> ()
116 | Quux -> ()
117 | Quuz -> ()
118 | Corge -> ()
119 | Grault -> ()
120 | Garply -> ()
121 ```
122
123 ## The "b" box
124 ```
125 function Foo -> ()
126 | Baz -> () | Bar -> ()
127 | Qux -> () | Quux -> ()
128 | Quuz -> () | Corge -> ()
129 | Grault -> () | Garply -> ()
130 ```
131
132 ## The "h" box
133 ```
134 function Foo -> () | Baz -> () | Bar -> () | Qux -> () | Quux -> () | Quuz -> () | Corge -> () | Grault -> () | Garply -> ()
135 ```
136
137 ## The "hv" box
138 ```
139 function
140 | Foo -> ()
141 | Baz -> ()
142 | Bar -> ()
143 | Qux -> ()
144 | Quux -> ()
145 | Quuz -> ()
146 | Corge -> ()
147 | Grault -> ()
148 | Garply -> ()
149 ```
150
151 ## The "hov" box
152 ```
153 function Foo -> ()
154 | Baz -> () | Bar -> ()
155 | Qux -> () | Quux -> ()
156 | Quuz -> () | Corge -> ()
157 | Grault -> () | Garply -> ()
158 ```
159