-
Notifications
You must be signed in to change notification settings - Fork 63
/
failing.html
670 lines (670 loc) · 87.5 KB
/
failing.html
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"
"http://www.w3.org/TR/REC-html40/loose.dtd">
<html>
<head>
<title>Failing tests, ocp-indent version 1.4.1 (2014-01-15)</title>
<meta http-equiv="Content-type" content="text/html; charset=utf-8" />
<style>
TABLE { border-collapse: collapse; border-spacing: 0px; margin: auto; }
H2 { margin-top: 5ex; text-align: center; padding: 1ex;
background-color: orange; }
TR,TD,PRE { padding: 0; margin: 0; }
TD.linenum { vertical-align: top; font-family: monospace;
padding-right:2px; text-align: right }
TD.correct { background-color: #EEE; border: 1px solid white; }
TD.different { background-color: orange; border: 1px solid white; }
</style>
</head>
<body>
<h1>Failing tests, ocp-indent version 1.4.1 (2014-01-15)</h1>
<div>
<h2>Differences in js-args.ml</h2>
<table>
<tr><th><th>Expected<th>Ocp-indent output</tr>
<tr><td class="linenum">0</td><td class="correct"><pre>let () =</pre></td><td class="correct"><pre>let () =</pre></td></tr>
<tr><td class="linenum">1</td><td class="correct"><pre> foo.bar <-</pre></td><td class="correct"><pre> foo.bar <-</pre></td></tr>
<tr><td class="linenum">2</td><td class="correct"><pre> f x</pre></td><td class="correct"><pre> f x</pre></td></tr>
<tr><td class="linenum">3</td><td class="correct"><pre> y z</pre></td><td class="correct"><pre> y z</pre></td></tr>
<tr><td class="linenum">4</td><td class="correct"><pre></pre></td><td class="correct"><pre></pre></td></tr>
<tr><td class="linenum">5</td><td class="correct"><pre>(* yminsky *)</pre></td><td class="correct"><pre>(* yminsky *)</pre></td></tr>
<tr><td class="linenum">6</td><td class="correct"><pre>let should_check_can_sell_and_marking regulatory_regime =</pre></td><td class="correct"><pre>let should_check_can_sell_and_marking regulatory_regime =</pre></td></tr>
<tr><td class="linenum">7</td><td class="correct"><pre> match z with</pre></td><td class="correct"><pre> match z with</pre></td></tr>
<tr><td class="linenum">8</td><td class="correct"><pre> | `foo</pre></td><td class="correct"><pre> | `foo</pre></td></tr>
<tr><td class="linenum">9</td><td class="correct"><pre> -> some_function</pre></td><td class="correct"><pre> -> some_function</pre></td></tr>
<tr><td class="linenum">10</td><td class="correct"><pre> argument</pre></td><td class="correct"><pre> argument</pre></td></tr>
<tr><td class="linenum">11</td><td class="correct"><pre>(* pszilagyi: The above typically occurs in a multi-pattern match clause, so the</pre></td><td class="correct"><pre>(* pszilagyi: The above typically occurs in a multi-pattern match clause, so the</pre></td></tr>
<tr><td class="linenum">12</td><td class="correct"><pre> clause expression is on a line by itself. This is the more typical way a</pre></td><td class="correct"><pre> clause expression is on a line by itself. This is the more typical way a</pre></td></tr>
<tr><td class="linenum">13</td><td class="correct"><pre> long single-pattern match clause would be written: *)</pre></td><td class="correct"><pre> long single-pattern match clause would be written: *)</pre></td></tr>
<tr><td class="linenum">14</td><td class="correct"><pre>let should_check_can_sell_and_marking regulatory_regime =</pre></td><td class="correct"><pre>let should_check_can_sell_and_marking regulatory_regime =</pre></td></tr>
<tr><td class="linenum">15</td><td class="correct"><pre> match z with</pre></td><td class="correct"><pre> match z with</pre></td></tr>
<tr><td class="linenum">16</td><td class="correct"><pre> | `foo -></pre></td><td class="correct"><pre> | `foo -></pre></td></tr>
<tr><td class="linenum">17</td><td class="correct"><pre> some_function</pre></td><td class="correct"><pre> some_function</pre></td></tr>
<tr><td class="linenum">18</td><td class="correct"><pre> argument</pre></td><td class="correct"><pre> argument</pre></td></tr>
<tr><td class="linenum">19</td><td class="correct"><pre></pre></td><td class="correct"><pre></pre></td></tr>
<tr><td class="linenum">20</td><td class="correct"><pre>let f = fun x -></pre></td><td class="correct"><pre>let f = fun x -></pre></td></tr>
<tr><td class="linenum">21</td><td class="correct"><pre> ghi</pre></td><td class="correct"><pre> ghi</pre></td></tr>
<tr><td class="linenum">22</td><td class="correct"><pre> x</pre></td><td class="correct"><pre> x</pre></td></tr>
<tr><td class="linenum">23</td><td class="correct"><pre></pre></td><td class="correct"><pre></pre></td></tr>
<tr><td class="linenum">24</td><td class="correct"><pre>(* common *)</pre></td><td class="correct"><pre>(* common *)</pre></td></tr>
<tr><td class="linenum">25</td><td class="correct"><pre>let x =</pre></td><td class="correct"><pre>let x =</pre></td></tr>
<tr><td class="linenum">26</td><td class="correct"><pre> try x with</pre></td><td class="correct"><pre> try x with</pre></td></tr>
<tr><td class="linenum">27</td><td class="correct"><pre> | a -> b</pre></td><td class="correct"><pre> | a -> b</pre></td></tr>
<tr><td class="linenum">28</td><td class="correct"><pre> | c -> d</pre></td><td class="correct"><pre> | c -> d</pre></td></tr>
<tr><td class="linenum">29</td><td class="correct"><pre>let x = try x with</pre></td><td class="correct"><pre>let x = try x with</pre></td></tr>
<tr><td class="linenum">30</td><td class="correct"><pre> | a -> b</pre></td><td class="correct"><pre> | a -> b</pre></td></tr>
<tr><td class="linenum">31</td><td class="correct"><pre> | c -> d</pre></td><td class="correct"><pre> | c -> d</pre></td></tr>
<tr><td class="linenum">32</td><td class="correct"><pre>let x =</pre></td><td class="correct"><pre>let x =</pre></td></tr>
<tr><td class="linenum">33</td><td class="correct"><pre> try x</pre></td><td class="correct"><pre> try x</pre></td></tr>
<tr><td class="linenum">34</td><td class="correct"><pre> with</pre></td><td class="correct"><pre> with</pre></td></tr>
<tr><td class="linenum">35</td><td class="correct"><pre> | a -> b</pre></td><td class="correct"><pre> | a -> b</pre></td></tr>
<tr><td class="linenum">36</td><td class="correct"><pre> | c -> d</pre></td><td class="correct"><pre> | c -> d</pre></td></tr>
<tr><td class="linenum">37</td><td class="correct"><pre></pre></td><td class="correct"><pre></pre></td></tr>
<tr><td class="linenum">38</td><td class="correct"><pre>let z =</pre></td><td class="correct"><pre>let z =</pre></td></tr>
<tr><td class="linenum">39</td><td class="correct"><pre> some_function</pre></td><td class="correct"><pre> some_function</pre></td></tr>
<tr><td class="linenum">40</td><td class="correct"><pre> argument</pre></td><td class="correct"><pre> argument</pre></td></tr>
<tr><td class="linenum">41</td><td class="correct"><pre></pre></td><td class="correct"><pre></pre></td></tr>
<tr><td class="linenum">42</td><td class="correct"><pre></pre></td><td class="correct"><pre></pre></td></tr>
<tr><td class="linenum">43</td><td class="correct"><pre></pre></td><td class="correct"><pre></pre></td></tr>
<tr><td class="linenum">44</td><td class="correct"><pre>(* dwu *)</pre></td><td class="correct"><pre>(* dwu *)</pre></td></tr>
<tr><td class="linenum">45</td><td class="correct"><pre>let () =</pre></td><td class="correct"><pre>let () =</pre></td></tr>
<tr><td class="linenum">46</td><td class="correct"><pre> f a b ~c:c</pre></td><td class="correct"><pre> f a b ~c:c</pre></td></tr>
<tr><td class="linenum">47</td><td class="correct"><pre> d</pre></td><td class="correct"><pre> d</pre></td></tr>
<tr><td class="linenum">48</td><td class="correct"><pre></pre></td><td class="correct"><pre></pre></td></tr>
<tr><td class="linenum">49</td><td class="correct"><pre>let () =</pre></td><td class="correct"><pre>let () =</pre></td></tr>
<tr><td class="linenum">50</td><td class="correct"><pre> f a b ~c:1.</pre></td><td class="correct"><pre> f a b ~c:1.</pre></td></tr>
<tr><td class="linenum">51</td><td class="correct"><pre> d</pre></td><td class="correct"><pre> d</pre></td></tr>
<tr><td class="linenum">52</td><td class="correct"><pre></pre></td><td class="correct"><pre></pre></td></tr>
<tr><td class="linenum">53</td><td class="correct"><pre>let () =</pre></td><td class="correct"><pre>let () =</pre></td></tr>
<tr><td class="linenum">54</td><td class="correct"><pre> My_module.f a b ~c:c</pre></td><td class="correct"><pre> My_module.f a b ~c:c</pre></td></tr>
<tr><td class="linenum">55</td><td class="correct"><pre> d</pre></td><td class="correct"><pre> d</pre></td></tr>
<tr><td class="linenum">56</td><td class="correct"><pre></pre></td><td class="correct"><pre></pre></td></tr>
<tr><td class="linenum">57</td><td class="correct"><pre>(* This last case is where Tuareg is inconsistent with the others. *)</pre></td><td class="correct"><pre>(* This last case is where Tuareg is inconsistent with the others. *)</pre></td></tr>
<tr><td class="linenum">58</td><td class="correct"><pre>let () =</pre></td><td class="correct"><pre>let () =</pre></td></tr>
<tr><td class="linenum">59</td><td class="correct"><pre> My_module.f a b ~c:1.</pre></td><td class="correct"><pre> My_module.f a b ~c:1.</pre></td></tr>
<tr><td class="linenum">60</td><td class="correct"><pre> d</pre></td><td class="correct"><pre> d</pre></td></tr>
<tr><td class="linenum">61</td><td class="correct"><pre></pre></td><td class="correct"><pre></pre></td></tr>
<tr><td class="linenum">62</td><td class="correct"><pre></pre></td><td class="correct"><pre></pre></td></tr>
<tr><td class="linenum">63</td><td class="correct"><pre></pre></td><td class="correct"><pre></pre></td></tr>
<tr><td class="linenum">64</td><td class="correct"><pre>let () =</pre></td><td class="correct"><pre>let () =</pre></td></tr>
<tr><td class="linenum">65</td><td class="correct"><pre> messages :=</pre></td><td class="correct"><pre> messages :=</pre></td></tr>
<tr><td class="linenum">66</td><td class="correct"><pre> Message_store.create (Session_id.of_string "")</pre></td><td class="correct"><pre> Message_store.create (Session_id.of_string "")</pre></td></tr>
<tr><td class="linenum">67</td><td class="correct"><pre> (* Tuareg indents these lines too far to the left. *)</pre></td><td class="correct"><pre> (* Tuareg indents these lines too far to the left. *)</pre></td></tr>
<tr><td class="linenum">68</td><td class="correct"><pre> "herd-retransmitter"</pre></td><td class="correct"><pre> "herd-retransmitter"</pre></td></tr>
<tr><td class="linenum">69</td><td class="correct"><pre> Message_store.Message_size.Byte</pre></td><td class="correct"><pre> Message_store.Message_size.Byte</pre></td></tr>
<tr><td class="linenum">70</td><td class="correct"><pre></pre></td><td class="correct"><pre></pre></td></tr>
<tr><td class="linenum">71</td><td class="correct"><pre></pre></td><td class="correct"><pre></pre></td></tr>
<tr><td class="linenum">72</td><td class="correct"><pre></pre></td><td class="correct"><pre></pre></td></tr>
<tr><td class="linenum">73</td><td class="correct"><pre>let () =</pre></td><td class="correct"><pre>let () =</pre></td></tr>
<tr><td class="linenum">74</td><td class="correct"><pre> raise (Bug ("foo"</pre></td><td class="correct"><pre> raise (Bug ("foo"</pre></td></tr>
<tr><td class="linenum">75</td><td class="correct"><pre> (* In this and similar cases, we want the subsequent lines to</pre></td><td class="correct"><pre> (* In this and similar cases, we want the subsequent lines to</pre></td></tr>
<tr><td class="linenum">76</td><td class="correct"><pre> align with the first expression. *)</pre></td><td class="correct"><pre> align with the first expression. *)</pre></td></tr>
<tr><td class="linenum">77</td><td class="correct"><pre> ^ "bar"));</pre></td><td class="correct"><pre> ^ "bar"));</pre></td></tr>
<tr><td class="linenum">78</td><td class="correct"><pre> raise (Bug ("foo" ^ "quux"</pre></td><td class="correct"><pre> raise (Bug ("foo" ^ "quux"</pre></td></tr>
<tr><td class="linenum">79</td><td class="correct"><pre> ^ "bar"));</pre></td><td class="correct"><pre> ^ "bar"));</pre></td></tr>
<tr><td class="linenum">80</td><td class="correct"><pre> raise (Bug (foo + quux</pre></td><td class="correct"><pre> raise (Bug (foo + quux</pre></td></tr>
<tr><td class="linenum">81</td><td class="correct"><pre> ^ "bar"));</pre></td><td class="correct"><pre> ^ "bar"));</pre></td></tr>
<tr><td class="linenum">82</td><td class="correct"><pre> raise (Bug ((foo + quux)</pre></td><td class="correct"><pre> raise (Bug ((foo + quux)</pre></td></tr>
<tr><td class="linenum">83</td><td class="correct"><pre> ^ "bar"))</pre></td><td class="correct"><pre> ^ "bar"))</pre></td></tr>
<tr><td class="linenum">84</td><td class="correct"><pre></pre></td><td class="correct"><pre></pre></td></tr>
<tr><td class="linenum">85</td><td class="correct"><pre>(* Except in specific cases, we want the argument indented relative to the</pre></td><td class="correct"><pre>(* Except in specific cases, we want the argument indented relative to the</pre></td></tr>
<tr><td class="linenum">86</td><td class="correct"><pre> function being called. (Exceptions include "fun" arguments where the line</pre></td><td class="correct"><pre> function being called. (Exceptions include "fun" arguments where the line</pre></td></tr>
<tr><td class="linenum">87</td><td class="correct"><pre> ends with "->" and subsequent lines beginning with operators, like above.) *)</pre></td><td class="correct"><pre> ends with "->" and subsequent lines beginning with operators, like above.) *)</pre></td></tr>
<tr><td class="linenum">88</td><td class="correct"><pre>let () =</pre></td><td class="correct"><pre>let () =</pre></td></tr>
<tr><td class="linenum">89</td><td class="correct"><pre> Some (Message_store.create s</pre></td><td class="correct"><pre> Some (Message_store.create s</pre></td></tr>
<tr><td class="linenum">90</td><td class="correct"><pre> "herd-retransmitter" ~unlink:true Message_store.Message_size.Byte)</pre></td><td class="correct"><pre> "herd-retransmitter" ~unlink:true Message_store.Message_size.Byte)</pre></td></tr>
<tr><td class="linenum">91</td><td class="correct"><pre></pre></td><td class="correct"><pre></pre></td></tr>
<tr><td class="linenum">92</td><td class="correct"><pre></pre></td><td class="correct"><pre></pre></td></tr>
<tr><td class="linenum">93</td><td class="correct"><pre></pre></td><td class="correct"><pre></pre></td></tr>
<tr><td class="linenum">94</td><td class="correct"><pre>(* We like the indentation of most arguments, but want to get back towards the</pre></td><td class="correct"><pre>(* We like the indentation of most arguments, but want to get back towards the</pre></td></tr>
<tr><td class="linenum">95</td><td class="correct"><pre> left margin in a few special cases: *)</pre></td><td class="correct"><pre> left margin in a few special cases: *)</pre></td></tr>
<tr><td class="linenum">96</td><td class="correct"><pre>let _ =</pre></td><td class="correct"><pre>let _ =</pre></td></tr>
<tr><td class="linenum">97</td><td class="correct"><pre> foo (bar (fun x -> (* special: "fun _ ->" at EOL *)</pre></td><td class="correct"><pre> foo (bar (fun x -> (* special: "fun _ ->" at EOL *)</pre></td></tr>
<tr><td class="linenum">98</td><td class="correct"><pre> baz)) (* assume no more arguments to "bar" *)</pre></td><td class="correct"><pre> baz)) (* assume no more arguments to "bar" *)</pre></td></tr>
<tr><td class="linenum">99</td><td class="correct"><pre>let _ =</pre></td><td class="correct"><pre>let _ =</pre></td></tr>
<tr><td class="linenum">100</td><td class="correct"><pre> foo</pre></td><td class="correct"><pre> foo</pre></td></tr>
<tr><td class="linenum">101</td><td class="correct"><pre> ~a_long_field_name:(check (fun bar -></pre></td><td class="correct"><pre> ~a_long_field_name:(check (fun bar -></pre></td></tr>
<tr><td class="linenum">102</td><td class="correct"><pre> baz))</pre></td><td class="correct"><pre> baz))</pre></td></tr>
<tr><td class="linenum">103</td><td class="correct"><pre>let _ =</pre></td><td class="correct"><pre>let _ =</pre></td></tr>
<tr><td class="linenum">104</td><td class="correct"><pre> foo ~a_long_field_name:(check (fun bar -></pre></td><td class="correct"><pre> foo ~a_long_field_name:(check (fun bar -></pre></td></tr>
<tr><td class="linenum">105</td><td class="correct"><pre> baz))</pre></td><td class="correct"><pre> baz))</pre></td></tr>
<tr><td class="linenum">106</td><td class="correct"><pre>let _ =</pre></td><td class="correct"><pre>let _ =</pre></td></tr>
<tr><td class="linenum">107</td><td class="correct"><pre> foo (bar (quux (fnord (fun x -> (* any depth *)</pre></td><td class="correct"><pre> foo (bar (quux (fnord (fun x -> (* any depth *)</pre></td></tr>
<tr><td class="linenum">108</td><td class="correct"><pre> baz))))</pre></td><td class="correct"><pre> baz))))</pre></td></tr>
<tr><td class="linenum">109</td><td class="correct"><pre></pre></td><td class="correct"><pre></pre></td></tr>
<tr><td class="linenum">110</td><td class="correct"><pre>(* We also wanted to tweak the operator indentation, making operators like <=</pre></td><td class="correct"><pre>(* We also wanted to tweak the operator indentation, making operators like <=</pre></td></tr>
<tr><td class="linenum">111</td><td class="correct"><pre> not special cases in contexts like this: *)</pre></td><td class="correct"><pre> not special cases in contexts like this: *)</pre></td></tr>
<tr><td class="linenum">112</td><td class="correct"><pre>let _ =</pre></td><td class="correct"><pre>let _ =</pre></td></tr>
<tr><td class="linenum">113</td><td class="correct"><pre> assert (foo (bar + baz</pre></td><td class="correct"><pre> assert (foo (bar + baz</pre></td></tr>
<tr><td class="linenum">114</td><td class="correct"><pre> <= quux)) (* lined up under left argument to op,</pre></td><td class="correct"><pre> <= quux)) (* lined up under left argument to op,</pre></td></tr>
<tr><td class="linenum">115</td><td class="correct"><pre> sim. to ^ above *)</pre></td><td class="correct"><pre> sim. to ^ above *)</pre></td></tr>
<tr><td class="linenum">116</td><td class="correct"><pre>(* Sim. indentation of if conditions: *)</pre></td><td class="correct"><pre>(* Sim. indentation of if conditions: *)</pre></td></tr>
<tr><td class="linenum">117</td><td class="correct"><pre>let _ =</pre></td><td class="correct"><pre>let _ =</pre></td></tr>
<tr><td class="linenum">118</td><td class="correct"><pre> if (a</pre></td><td class="correct"><pre> if (a</pre></td></tr>
<tr><td class="linenum">119</td><td class="correct"><pre> <= b)</pre></td><td class="correct"><pre> <= b)</pre></td></tr>
<tr><td class="linenum">120</td><td class="correct"><pre> then ()</pre></td><td class="correct"><pre> then ()</pre></td></tr>
<tr><td class="linenum">121</td><td class="correct"><pre>let _ =</pre></td><td class="correct"><pre>let _ =</pre></td></tr>
<tr><td class="linenum">122</td><td class="correct"><pre> if a</pre></td><td class="correct"><pre> if a</pre></td></tr>
<tr><td class="linenum">123</td><td class="correct"><pre> <= b</pre></td><td class="correct"><pre> <= b</pre></td></tr>
<tr><td class="linenum">124</td><td class="correct"><pre> then ()</pre></td><td class="correct"><pre> then ()</pre></td></tr>
<tr><td class="linenum">125</td><td class="correct"><pre>let _ =</pre></td><td class="correct"><pre>let _ =</pre></td></tr>
<tr><td class="linenum">126</td><td class="correct"><pre> if Edge_adjustment.is_zero arb.cfg.extra_edge</pre></td><td class="correct"><pre> if Edge_adjustment.is_zero arb.cfg.extra_edge</pre></td></tr>
<tr><td class="linenum">127</td><td class="different"><pre>·····&&·0.·=·sys.plugs.edge_backoff</pre></td><td class="different"><pre>··&&·0.·=·sys.plugs.edge_backoff</pre></td></tr>
<tr><td class="linenum">128</td><td class="different"><pre>·····&&·0.·=·zero_acvol_edge_backoff</pre></td><td class="different"><pre>··&&·0.·=·zero_acvol_edge_backoff</pre></td></tr>
<tr><td class="linenum">129</td><td class="correct"><pre> then 0.</pre></td><td class="correct"><pre> then 0.</pre></td></tr>
<tr><td class="linenum">130</td><td class="correct"><pre> else 1.</pre></td><td class="correct"><pre> else 1.</pre></td></tr>
<tr><td class="linenum">131</td><td class="correct"><pre>let _ =</pre></td><td class="correct"><pre>let _ =</pre></td></tr>
<tr><td class="linenum">132</td><td class="correct"><pre> if</pre></td><td class="correct"><pre> if</pre></td></tr>
<tr><td class="linenum">133</td><td class="correct"><pre> Edge_adjustment.is_zero arb.cfg.extra_edge</pre></td><td class="correct"><pre> Edge_adjustment.is_zero arb.cfg.extra_edge</pre></td></tr>
<tr><td class="linenum">134</td><td class="correct"><pre> && 0. = sys.plugs.edge_backoff</pre></td><td class="correct"><pre> && 0. = sys.plugs.edge_backoff</pre></td></tr>
<tr><td class="linenum">135</td><td class="correct"><pre> && 0. = zero_acvol_edge_backoff</pre></td><td class="correct"><pre> && 0. = zero_acvol_edge_backoff</pre></td></tr>
<tr><td class="linenum">136</td><td class="correct"><pre> then 0.</pre></td><td class="correct"><pre> then 0.</pre></td></tr>
<tr><td class="linenum">137</td><td class="correct"><pre> else 1.</pre></td><td class="correct"><pre> else 1.</pre></td></tr>
<tr><td class="linenum">138</td><td class="correct"><pre>let _ =</pre></td><td class="correct"><pre>let _ =</pre></td></tr>
<tr><td class="linenum">139</td><td class="correct"><pre> let entries = List.filter (Lazy.force transferstati) ~f:(fun ts -></pre></td><td class="correct"><pre> let entries = List.filter (Lazy.force transferstati) ~f:(fun ts -></pre></td></tr>
<tr><td class="linenum">140</td><td class="correct"><pre> Pcre.pmatch ~pat ts.RQ.description</pre></td><td class="correct"><pre> Pcre.pmatch ~pat ts.RQ.description</pre></td></tr>
<tr><td class="linenum">141</td><td class="correct"><pre> ) in</pre></td><td class="correct"><pre> ) in</pre></td></tr>
<tr><td class="linenum">142</td><td class="correct"><pre> x</pre></td><td class="correct"><pre> x</pre></td></tr>
<tr><td class="linenum">143</td><td class="correct"><pre></pre></td><td class="correct"><pre></pre></td></tr>
<tr><td class="linenum">144</td><td class="correct"><pre>(* combination of operator at BOL and -> at EOL: *)</pre></td><td class="correct"><pre>(* combination of operator at BOL and -> at EOL: *)</pre></td></tr>
<tr><td class="linenum">145</td><td class="correct"><pre>let _ =</pre></td><td class="correct"><pre>let _ =</pre></td></tr>
<tr><td class="linenum">146</td><td class="correct"><pre> Shell.ssh_lines x</pre></td><td class="correct"><pre> Shell.ssh_lines x</pre></td></tr>
<tr><td class="linenum">147</td><td class="correct"><pre> |! List.map ~f:(f (g (fun x -></pre></td><td class="correct"><pre> |! List.map ~f:(f (g (fun x -></pre></td></tr>
<tr><td class="linenum">148</td><td class="different"><pre>·······let·name,·path·=·String.lsplit2_exn·~on:'|'·x·in</pre></td><td class="different"><pre>····let·name,·path·=·String.lsplit2_exn·~on:'|'·x·in</pre></td></tr>
<tr><td class="linenum">149</td><td class="different"><pre>·······String.strip·name,·String.strip·path)))</pre></td><td class="different"><pre>····String.strip·name,·String.strip·path)))</pre></td></tr>
<tr><td class="linenum">150</td><td class="correct"><pre></pre></td><td class="correct"><pre></pre></td></tr>
<tr><td class="linenum">151</td><td class="correct"><pre>(* open paren ending line like begin *)</pre></td><td class="correct"><pre>(* open paren ending line like begin *)</pre></td></tr>
<tr><td class="linenum">152</td><td class="correct"><pre>let _ =</pre></td><td class="correct"><pre>let _ =</pre></td></tr>
<tr><td class="linenum">153</td><td class="correct"><pre> if a (p ^/ "s") [ e ] = Ok () then `S (</pre></td><td class="correct"><pre> if a (p ^/ "s") [ e ] = Ok () then `S (</pre></td></tr>
<tr><td class="linenum">154</td><td class="correct"><pre> let label count =</pre></td><td class="correct"><pre> let label count =</pre></td></tr>
<tr><td class="linenum">155</td><td class="correct"><pre> sprintf "%d s" c ^ if c = 1 then ":" else "s"</pre></td><td class="correct"><pre> sprintf "%d s" c ^ if c = 1 then ":" else "s"</pre></td></tr>
<tr><td class="linenum">156</td><td class="correct"><pre> in</pre></td><td class="correct"><pre> in</pre></td></tr>
<tr><td class="linenum">157</td><td class="correct"><pre> x</pre></td><td class="correct"><pre> x</pre></td></tr>
<tr><td class="linenum">158</td><td class="correct"><pre> )</pre></td><td class="correct"><pre> )</pre></td></tr>
</table>
</div>
<div>
<h2>Differences in js-bench.ml</h2>
<table>
<tr><th><th>Expected<th>Ocp-indent output</tr>
<tr><td class="linenum">0</td><td class="correct"><pre>BENCH_FUN "Array.get (tuple)" =</pre></td><td class="correct"><pre>BENCH_FUN "Array.get (tuple)" =</pre></td></tr>
<tr><td class="linenum">1</td><td class="different"><pre>··(*·This·is·mis-indented·only·when·BENCH_FUN·is·on·the·first·line.·*)</pre></td><td class="different"><pre>(*·This·is·mis-indented·only·when·BENCH_FUN·is·on·the·first·line.·*)</pre></td></tr>
<tr><td class="linenum">2</td><td class="different"><pre>··let·len·=·300·in</pre></td><td class="different"><pre>let·len·=·300·in</pre></td></tr>
<tr><td class="linenum">3</td><td class="different"><pre>··let·arr·=·create·~len·(1,2)·in</pre></td><td class="different"><pre>let·arr·=·create·~len·(1,2)·in</pre></td></tr>
<tr><td class="linenum">4</td><td class="different"><pre>··(fun·()·->·ignore(arr.(len-1)))</pre></td><td class="different"><pre>(fun·()·->·ignore(arr.(len-1)))</pre></td></tr>
<tr><td class="linenum">5</td><td class="correct"><pre></pre></td><td class="correct"><pre></pre></td></tr>
<tr><td class="linenum">6</td><td class="correct"><pre>BENCH_FUN "Array.set (tuple)" =</pre></td><td class="correct"><pre>BENCH_FUN "Array.set (tuple)" =</pre></td></tr>
<tr><td class="linenum">7</td><td class="correct"><pre> let len = 300 in</pre></td><td class="correct"><pre> let len = 300 in</pre></td></tr>
<tr><td class="linenum">8</td><td class="correct"><pre> let arr = create ~len (1,2) in</pre></td><td class="correct"><pre> let arr = create ~len (1,2) in</pre></td></tr>
<tr><td class="linenum">9</td><td class="correct"><pre> (fun () -> arr.(len-1) <- (3,4))</pre></td><td class="correct"><pre> (fun () -> arr.(len-1) <- (3,4))</pre></td></tr>
<tr><td class="linenum">10</td><td class="correct"><pre></pre></td><td class="correct"><pre></pre></td></tr>
<tr><td class="linenum">11</td><td class="correct"><pre>(* Some benchmarks of the blit operations *)</pre></td><td class="correct"><pre>(* Some benchmarks of the blit operations *)</pre></td></tr>
<tr><td class="linenum">12</td><td class="correct"><pre>BENCH_MODULE "Blit tests" = struct</pre></td><td class="correct"><pre>BENCH_MODULE "Blit tests" = struct</pre></td></tr>
<tr><td class="linenum">13</td><td class="correct"><pre> let lengths = [0; 10; 100; 1000; 10_000]</pre></td><td class="correct"><pre> let lengths = [0; 10; 100; 1000; 10_000]</pre></td></tr>
<tr><td class="linenum">14</td><td class="correct"><pre></pre></td><td class="correct"><pre></pre></td></tr>
<tr><td class="linenum">15</td><td class="correct"><pre> BENCH_MODULE "Int" = struct</pre></td><td class="correct"><pre> BENCH_MODULE "Int" = struct</pre></td></tr>
<tr><td class="linenum">16</td><td class="correct"><pre> BENCH_INDEXED "blit" len lengths =</pre></td><td class="correct"><pre> BENCH_INDEXED "blit" len lengths =</pre></td></tr>
<tr><td class="linenum">17</td><td class="correct"><pre> let src = create ~len 0 in</pre></td><td class="correct"><pre> let src = create ~len 0 in</pre></td></tr>
<tr><td class="linenum">18</td><td class="correct"><pre> let dst = create ~len 0 in</pre></td><td class="correct"><pre> let dst = create ~len 0 in</pre></td></tr>
<tr><td class="linenum">19</td><td class="correct"><pre> (fun () -> Int.blit ~src ~src_pos:0 ~dst ~dst_pos:0 ~len)</pre></td><td class="correct"><pre> (fun () -> Int.blit ~src ~src_pos:0 ~dst ~dst_pos:0 ~len)</pre></td></tr>
<tr><td class="linenum">20</td><td class="correct"><pre></pre></td><td class="correct"><pre></pre></td></tr>
<tr><td class="linenum">21</td><td class="correct"><pre> BENCH_INDEXED "blito" len lengths =</pre></td><td class="correct"><pre> BENCH_INDEXED "blito" len lengths =</pre></td></tr>
<tr><td class="linenum">22</td><td class="correct"><pre> let src = create ~len 0 in</pre></td><td class="correct"><pre> let src = create ~len 0 in</pre></td></tr>
<tr><td class="linenum">23</td><td class="correct"><pre> let dst = create ~len 0 in</pre></td><td class="correct"><pre> let dst = create ~len 0 in</pre></td></tr>
<tr><td class="linenum">24</td><td class="correct"><pre> (fun () -> Int.blito ~src ~src_pos:0 ~dst ~dst_pos:0 ~src_len:len ())</pre></td><td class="correct"><pre> (fun () -> Int.blito ~src ~src_pos:0 ~dst ~dst_pos:0 ~src_len:len ())</pre></td></tr>
<tr><td class="linenum">25</td><td class="correct"><pre> end</pre></td><td class="correct"><pre> end</pre></td></tr>
<tr><td class="linenum">26</td><td class="correct"><pre></pre></td><td class="correct"><pre></pre></td></tr>
<tr><td class="linenum">27</td><td class="correct"><pre> BENCH_MODULE "Float" = struct</pre></td><td class="correct"><pre> BENCH_MODULE "Float" = struct</pre></td></tr>
<tr><td class="linenum">28</td><td class="correct"><pre> BENCH_INDEXED "blit" len lengths =</pre></td><td class="correct"><pre> BENCH_INDEXED "blit" len lengths =</pre></td></tr>
<tr><td class="linenum">29</td><td class="correct"><pre> let src = create ~len 0.0 in</pre></td><td class="correct"><pre> let src = create ~len 0.0 in</pre></td></tr>
<tr><td class="linenum">30</td><td class="correct"><pre> let dst = create ~len 0.0 in</pre></td><td class="correct"><pre> let dst = create ~len 0.0 in</pre></td></tr>
<tr><td class="linenum">31</td><td class="correct"><pre> (fun () -> Float.blit ~src ~src_pos:0 ~dst ~dst_pos:0 ~len)</pre></td><td class="correct"><pre> (fun () -> Float.blit ~src ~src_pos:0 ~dst ~dst_pos:0 ~len)</pre></td></tr>
<tr><td class="linenum">32</td><td class="correct"><pre></pre></td><td class="correct"><pre></pre></td></tr>
<tr><td class="linenum">33</td><td class="correct"><pre> BENCH_INDEXED "blito" len lengths =</pre></td><td class="correct"><pre> BENCH_INDEXED "blito" len lengths =</pre></td></tr>
<tr><td class="linenum">34</td><td class="correct"><pre> let src = create ~len 0.0 in</pre></td><td class="correct"><pre> let src = create ~len 0.0 in</pre></td></tr>
<tr><td class="linenum">35</td><td class="correct"><pre> let dst = create ~len 0.0 in</pre></td><td class="correct"><pre> let dst = create ~len 0.0 in</pre></td></tr>
<tr><td class="linenum">36</td><td class="correct"><pre> (fun () -> Float.blito ~src ~src_pos:0 ~dst ~dst_pos:0 ~src_len:len ())</pre></td><td class="correct"><pre> (fun () -> Float.blito ~src ~src_pos:0 ~dst ~dst_pos:0 ~src_len:len ())</pre></td></tr>
<tr><td class="linenum">37</td><td class="correct"><pre> end</pre></td><td class="correct"><pre> end</pre></td></tr>
<tr><td class="linenum">38</td><td class="correct"><pre>end</pre></td><td class="correct"><pre>end</pre></td></tr>
</table>
</div>
<div>
<h2>Differences in js-default.ml</h2>
<table>
<tr><th><th>Expected<th>Ocp-indent output</tr>
<tr><td class="linenum">0</td><td class="correct"><pre>(* maizatulin *)</pre></td><td class="correct"><pre>(* maizatulin *)</pre></td></tr>
<tr><td class="linenum">1</td><td class="correct"><pre>type t =</pre></td><td class="correct"><pre>type t =</pre></td></tr>
<tr><td class="linenum">2</td><td class="correct"><pre> { last_trading : Week_date.Spec.t;</pre></td><td class="correct"><pre> { last_trading : Week_date.Spec.t;</pre></td></tr>
<tr><td class="linenum">3</td><td class="correct"><pre> first_notice : Week_date.Spec.t option;</pre></td><td class="correct"><pre> first_notice : Week_date.Spec.t option;</pre></td></tr>
<tr><td class="linenum">4</td><td class="correct"><pre> first_notice_exceptions : Date.t Year_month.Map.t</pre></td><td class="correct"><pre> first_notice_exceptions : Date.t Year_month.Map.t</pre></td></tr>
<tr><td class="linenum">5</td><td class="different"><pre>······with·default(Year_month.Map.empty);</pre></td><td class="different"><pre>····with·default(Year_month.Map.empty);</pre></td></tr>
<tr><td class="linenum">6</td><td class="different"><pre>····offset·······:·Week_date.Offset.t;</pre></td><td class="different"><pre>·········offset·······:·Week_date.Offset.t;</pre></td></tr>
<tr><td class="linenum">7</td><td class="different"><pre>····(*·n·>·0·*)</pre></td><td class="different"><pre>·········(*·n·>·0·*)</pre></td></tr>
<tr><td class="linenum">8</td><td class="different"><pre>····new_contract_expires_in_n_months·:·int</pre></td><td class="different"><pre>·········new_contract_expires_in_n_months·:·int</pre></td></tr>
<tr><td class="linenum">9</td><td class="correct"><pre> } with sexp, compare</pre></td><td class="correct"><pre> } with sexp, compare</pre></td></tr>
</table>
</div>
<div>
<h2>Differences in js-functor.ml</h2>
<table>
<tr><th><th>Expected<th>Ocp-indent output</tr>
<tr><td class="linenum">0</td><td class="correct"><pre>module M =</pre></td><td class="correct"><pre>module M =</pre></td></tr>
<tr><td class="linenum">1</td><td class="correct"><pre> Foo (G)</pre></td><td class="correct"><pre> Foo (G)</pre></td></tr>
<tr><td class="linenum">2</td><td class="correct"><pre> (H)</pre></td><td class="correct"><pre> (H)</pre></td></tr>
<tr><td class="linenum">3</td><td class="correct"><pre></pre></td><td class="correct"><pre></pre></td></tr>
<tr><td class="linenum">4</td><td class="correct"><pre>module M =</pre></td><td class="correct"><pre>module M =</pre></td></tr>
<tr><td class="linenum">5</td><td class="correct"><pre> Foo</pre></td><td class="correct"><pre> Foo</pre></td></tr>
<tr><td class="linenum">6</td><td class="correct"><pre> (G)</pre></td><td class="correct"><pre> (G)</pre></td></tr>
<tr><td class="linenum">7</td><td class="correct"><pre> (struct</pre></td><td class="correct"><pre> (struct</pre></td></tr>
<tr><td class="linenum">8</td><td class="correct"><pre> let x</pre></td><td class="correct"><pre> let x</pre></td></tr>
<tr><td class="linenum">9</td><td class="correct"><pre> end)</pre></td><td class="correct"><pre> end)</pre></td></tr>
<tr><td class="linenum">10</td><td class="correct"><pre> (H)</pre></td><td class="correct"><pre> (H)</pre></td></tr>
<tr><td class="linenum">11</td><td class="correct"><pre></pre></td><td class="correct"><pre></pre></td></tr>
<tr><td class="linenum">12</td><td class="correct"><pre>(* pszilagyi: To me, this looks fine as it is. The rule seems fine as "indent</pre></td><td class="correct"><pre>(* pszilagyi: To me, this looks fine as it is. The rule seems fine as "indent</pre></td></tr>
<tr><td class="linenum">13</td><td class="correct"><pre> arguments by 2". To illustrate, with a case where the functor name is</pre></td><td class="correct"><pre> arguments by 2". To illustrate, with a case where the functor name is</pre></td></tr>
<tr><td class="linenum">14</td><td class="correct"><pre> longer: *)</pre></td><td class="correct"><pre> longer: *)</pre></td></tr>
<tr><td class="linenum">15</td><td class="correct"><pre>module M =</pre></td><td class="correct"><pre>module M =</pre></td></tr>
<tr><td class="linenum">16</td><td class="correct"><pre> Functor (G)</pre></td><td class="correct"><pre> Functor (G)</pre></td></tr>
<tr><td class="linenum">17</td><td class="correct"><pre> (H)</pre></td><td class="correct"><pre> (H)</pre></td></tr>
<tr><td class="linenum">18</td><td class="correct"><pre> (I)</pre></td><td class="correct"><pre> (I)</pre></td></tr>
<tr><td class="linenum">19</td><td class="correct"><pre></pre></td><td class="correct"><pre></pre></td></tr>
<tr><td class="linenum">20</td><td class="correct"><pre></pre></td><td class="correct"><pre></pre></td></tr>
<tr><td class="linenum">21</td><td class="correct"><pre></pre></td><td class="correct"><pre></pre></td></tr>
<tr><td class="linenum">22</td><td class="correct"><pre>(* sweeks *)</pre></td><td class="correct"><pre>(* sweeks *)</pre></td></tr>
<tr><td class="linenum">23</td><td class="correct"><pre></pre></td><td class="correct"><pre></pre></td></tr>
<tr><td class="linenum">24</td><td class="correct"><pre>include Foo (struct</pre></td><td class="correct"><pre>include Foo (struct</pre></td></tr>
<tr><td class="linenum">25</td><td class="different"><pre>····let·x</pre></td><td class="different"><pre>··let·x</pre></td></tr>
<tr><td class="linenum">26</td><td class="different"><pre>··end)·(struct</pre></td><td class="different"><pre>end)·(struct</pre></td></tr>
<tr><td class="linenum">27</td><td class="different"><pre>····let·y</pre></td><td class="different"><pre>··let·y</pre></td></tr>
<tr><td class="linenum">28</td><td class="different"><pre>··end)</pre></td><td class="different"><pre>end)</pre></td></tr>
<tr><td class="linenum">29</td><td class="correct"><pre></pre></td><td class="correct"><pre></pre></td></tr>
<tr><td class="linenum">30</td><td class="correct"><pre>include</pre></td><td class="correct"><pre>include</pre></td></tr>
<tr><td class="linenum">31</td><td class="correct"><pre> Foo (struct</pre></td><td class="correct"><pre> Foo (struct</pre></td></tr>
<tr><td class="linenum">32</td><td class="correct"><pre> let x</pre></td><td class="correct"><pre> let x</pre></td></tr>
<tr><td class="linenum">33</td><td class="correct"><pre> end) (struct</pre></td><td class="correct"><pre> end) (struct</pre></td></tr>
<tr><td class="linenum">34</td><td class="correct"><pre> let y</pre></td><td class="correct"><pre> let y</pre></td></tr>
<tr><td class="linenum">35</td><td class="correct"><pre> end)</pre></td><td class="correct"><pre> end)</pre></td></tr>
<tr><td class="linenum">36</td><td class="correct"><pre></pre></td><td class="correct"><pre></pre></td></tr>
<tr><td class="linenum">37</td><td class="correct"><pre>module M =</pre></td><td class="correct"><pre>module M =</pre></td></tr>
<tr><td class="linenum">38</td><td class="correct"><pre> Foo (struct</pre></td><td class="correct"><pre> Foo (struct</pre></td></tr>
<tr><td class="linenum">39</td><td class="correct"><pre> let x</pre></td><td class="correct"><pre> let x</pre></td></tr>
<tr><td class="linenum">40</td><td class="correct"><pre> end) (struct</pre></td><td class="correct"><pre> end) (struct</pre></td></tr>
<tr><td class="linenum">41</td><td class="correct"><pre> let y</pre></td><td class="correct"><pre> let y</pre></td></tr>
<tr><td class="linenum">42</td><td class="correct"><pre> end)</pre></td><td class="correct"><pre> end)</pre></td></tr>
<tr><td class="linenum">43</td><td class="correct"><pre></pre></td><td class="correct"><pre></pre></td></tr>
<tr><td class="linenum">44</td><td class="correct"><pre>module M : S =</pre></td><td class="correct"><pre>module M : S =</pre></td></tr>
<tr><td class="linenum">45</td><td class="correct"><pre> Make (M)</pre></td><td class="correct"><pre> Make (M)</pre></td></tr>
<tr><td class="linenum">46</td><td class="correct"><pre>module M : S with type t := int =</pre></td><td class="correct"><pre>module M : S with type t := int =</pre></td></tr>
<tr><td class="linenum">47</td><td class="correct"><pre> Make (M)</pre></td><td class="correct"><pre> Make (M)</pre></td></tr>
</table>
</div>
<div>
<h2>Differences in js-let.ml</h2>
<table>
<tr><th><th>Expected<th>Ocp-indent output</tr>
<tr><td class="linenum">0</td><td class="correct"><pre>let foo</pre></td><td class="correct"><pre>let foo</pre></td></tr>
<tr><td class="linenum">1</td><td class="correct"><pre> some very long arguments that we break onto the next line</pre></td><td class="correct"><pre> some very long arguments that we break onto the next line</pre></td></tr>
<tr><td class="linenum">2</td><td class="correct"><pre> =</pre></td><td class="correct"><pre> =</pre></td></tr>
<tr><td class="linenum">3</td><td class="correct"><pre> bar ();</pre></td><td class="correct"><pre> bar ();</pre></td></tr>
<tr><td class="linenum">4</td><td class="correct"><pre> baz</pre></td><td class="correct"><pre> baz</pre></td></tr>
<tr><td class="linenum">5</td><td class="correct"><pre>(* The [some] above is indented less when [let foo] is the first line. The</pre></td><td class="correct"><pre>(* The [some] above is indented less when [let foo] is the first line. The</pre></td></tr>
<tr><td class="linenum">6</td><td class="correct"><pre> problem goes away if there's anything on the line before [let foo]. *)</pre></td><td class="correct"><pre> problem goes away if there's anything on the line before [let foo]. *)</pre></td></tr>
<tr><td class="linenum">7</td><td class="correct"><pre></pre></td><td class="correct"><pre></pre></td></tr>
<tr><td class="linenum">8</td><td class="correct"><pre>(* The picture shows where we want the `=' to be. However, Tuareg currently moves it over</pre></td><td class="correct"><pre>(* The picture shows where we want the `=' to be. However, Tuareg currently moves it over</pre></td></tr>
<tr><td class="linenum">9</td><td class="correct"><pre> to line up with the arguments.</pre></td><td class="correct"><pre> to line up with the arguments.</pre></td></tr>
<tr><td class="linenum">10</td><td class="correct"><pre></pre></td><td class="correct"><pre></pre></td></tr>
<tr><td class="linenum">11</td><td class="correct"><pre> Perhaps this is merely a personal preference, but that seems ugly to me.</pre></td><td class="correct"><pre> Perhaps this is merely a personal preference, but that seems ugly to me.</pre></td></tr>
<tr><td class="linenum">12</td><td class="correct"><pre></pre></td><td class="correct"><pre></pre></td></tr>
<tr><td class="linenum">13</td><td class="correct"><pre> pszilagyi: It's consistent with other infix operators (although this is syntax) for it</pre></td><td class="correct"><pre> pszilagyi: It's consistent with other infix operators (although this is syntax) for it</pre></td></tr>
<tr><td class="linenum">14</td><td class="correct"><pre> to be where you prefer. *)</pre></td><td class="correct"><pre> to be where you prefer. *)</pre></td></tr>
<tr><td class="linenum">15</td><td class="correct"><pre></pre></td><td class="correct"><pre></pre></td></tr>
<tr><td class="linenum">16</td><td class="correct"><pre>let foo arguments</pre></td><td class="correct"><pre>let foo arguments</pre></td></tr>
<tr><td class="linenum">17</td><td class="correct"><pre> = bar</pre></td><td class="correct"><pre> = bar</pre></td></tr>
<tr><td class="linenum">18</td><td class="correct"><pre></pre></td><td class="correct"><pre></pre></td></tr>
<tr><td class="linenum">19</td><td class="correct"><pre>let foo</pre></td><td class="correct"><pre>let foo</pre></td></tr>
<tr><td class="linenum">20</td><td class="correct"><pre> arguments</pre></td><td class="correct"><pre> arguments</pre></td></tr>
<tr><td class="linenum">21</td><td class="correct"><pre> = bar</pre></td><td class="correct"><pre> = bar</pre></td></tr>
<tr><td class="linenum">22</td><td class="correct"><pre></pre></td><td class="correct"><pre></pre></td></tr>
<tr><td class="linenum">23</td><td class="correct"><pre>(* sweeks *)</pre></td><td class="correct"><pre>(* sweeks *)</pre></td></tr>
<tr><td class="linenum">24</td><td class="correct"><pre>(* This program parses, but the [let] is indented incorrectly. *)</pre></td><td class="correct"><pre>(* This program parses, but the [let] is indented incorrectly. *)</pre></td></tr>
<tr><td class="linenum">25</td><td class="correct"><pre>module M = struct</pre></td><td class="correct"><pre>module M = struct</pre></td></tr>
<tr><td class="linenum">26</td><td class="correct"><pre> module M : module type of M = struct</pre></td><td class="correct"><pre> module M : module type of M = struct</pre></td></tr>
<tr><td class="linenum">27</td><td class="correct"><pre> let x = ()</pre></td><td class="correct"><pre> let x = ()</pre></td></tr>
<tr><td class="linenum">28</td><td class="correct"><pre> end</pre></td><td class="correct"><pre> end</pre></td></tr>
<tr><td class="linenum">29</td><td class="correct"><pre>end</pre></td><td class="correct"><pre>end</pre></td></tr>
<tr><td class="linenum">30</td><td class="correct"><pre>(* Removing the [: module type of M] removes the bug. *)</pre></td><td class="correct"><pre>(* Removing the [: module type of M] removes the bug. *)</pre></td></tr>
<tr><td class="linenum">31</td><td class="correct"><pre></pre></td><td class="correct"><pre></pre></td></tr>
<tr><td class="linenum">32</td><td class="correct"><pre>let parenthesized_let_tweak =</pre></td><td class="correct"><pre>let parenthesized_let_tweak =</pre></td></tr>
<tr><td class="linenum">33</td><td class="correct"><pre> (let sub value n l f =</pre></td><td class="correct"><pre> (let sub value n l f =</pre></td></tr>
<tr><td class="linenum">34</td><td class="different"><pre>·····case·~value·(message·("fix_sending_"·^·n)·~length:(35·+·29·+·l)·f)</pre></td><td class="different"><pre>····case·~value·(message·("fix_sending_"·^·n)·~length:(35·+·29·+·l)·f)</pre></td></tr>
<tr><td class="linenum">35</td><td class="correct"><pre> in</pre></td><td class="correct"><pre> in</pre></td></tr>
<tr><td class="linenum">36</td><td class="correct"><pre> x)</pre></td><td class="correct"><pre> x)</pre></td></tr>
<tr><td class="linenum">37</td><td class="correct"><pre></pre></td><td class="correct"><pre></pre></td></tr>
<tr><td class="linenum">38</td><td class="correct"><pre>let parenthesized_let_tweak =</pre></td><td class="correct"><pre>let parenthesized_let_tweak =</pre></td></tr>
<tr><td class="linenum">39</td><td class="correct"><pre> f ~x:(let n =</pre></td><td class="correct"><pre> f ~x:(let n =</pre></td></tr>
<tr><td class="linenum">40</td><td class="different"><pre>··········S.S.g·s.S.s·~s</pre></td><td class="different"><pre>·········S.S.g·s.S.s·~s</pre></td></tr>
<tr><td class="linenum">41</td><td class="correct"><pre> in</pre></td><td class="correct"><pre> in</pre></td></tr>
<tr><td class="linenum">42</td><td class="correct"><pre> y)</pre></td><td class="correct"><pre> y)</pre></td></tr>
</table>
</div>
<div>
<h2>Differences in js-list.ml</h2>
<table>
<tr><th><th>Expected<th>Ocp-indent output</tr>
<tr><td class="linenum">0</td><td class="correct"><pre>(* mixed list styles *)</pre></td><td class="correct"><pre>(* mixed list styles *)</pre></td></tr>
<tr><td class="linenum">1</td><td class="correct"><pre>(* nlinger *)</pre></td><td class="correct"><pre>(* nlinger *)</pre></td></tr>
<tr><td class="linenum">2</td><td class="correct"><pre>let cases =</pre></td><td class="correct"><pre>let cases =</pre></td></tr>
<tr><td class="linenum">3</td><td class="correct"><pre> [ Group ("publishing", [</pre></td><td class="correct"><pre> [ Group ("publishing", [</pre></td></tr>
<tr><td class="linenum">4</td><td class="different"><pre>······basic_pre2</pre></td><td class="different"><pre>·····basic_pre2</pre></td></tr>
<tr><td class="linenum">5</td><td class="different"><pre>········~name;</pre></td><td class="different"><pre>·······~name;</pre></td></tr>
<tr><td class="linenum">6</td><td class="different"><pre>····]);·(*·I·think·this·line·and·the·2·preceding·ones·are·indented·one·space·too</pre></td><td class="different"><pre>···]);·(*·I·think·this·line·and·the·2·preceding·ones·are·indented·one·space·too</pre></td></tr>
<tr><td class="linenum">7</td><td class="different"><pre>···········few·by·ocp-indent·*)</pre></td><td class="different"><pre>··········few·by·ocp-indent·*)</pre></td></tr>
<tr><td class="linenum">8</td><td class="correct"><pre> Group ("recovery", [</pre></td><td class="correct"><pre> Group ("recovery", [</pre></td></tr>
<tr><td class="linenum">9</td><td class="correct"><pre> basic_pre2</pre></td><td class="correct"><pre> basic_pre2</pre></td></tr>
<tr><td class="linenum">10</td><td class="correct"><pre> ~name</pre></td><td class="correct"><pre> ~name</pre></td></tr>
<tr><td class="linenum">11</td><td class="correct"><pre> ]);</pre></td><td class="correct"><pre> ]);</pre></td></tr>
<tr><td class="linenum">12</td><td class="correct"><pre> ]</pre></td><td class="correct"><pre> ]</pre></td></tr>
</table>
</div>
<div>
<h2>Differences in js-low-priority.ml</h2>
<table>
<tr><th><th>Expected<th>Ocp-indent output</tr>
<tr><td class="linenum">0</td><td class="correct"><pre>(* Relatively low priority Jane Street indentation bugs. *)</pre></td><td class="correct"><pre>(* Relatively low priority Jane Street indentation bugs. *)</pre></td></tr>
<tr><td class="linenum">1</td><td class="correct"><pre></pre></td><td class="correct"><pre></pre></td></tr>
<tr><td class="linenum">2</td><td class="correct"><pre></pre></td><td class="correct"><pre></pre></td></tr>
<tr><td class="linenum">3</td><td class="correct"><pre></pre></td><td class="correct"><pre></pre></td></tr>
<tr><td class="linenum">4</td><td class="correct"><pre>(* js-args *)</pre></td><td class="correct"><pre>(* js-args *)</pre></td></tr>
<tr><td class="linenum">5</td><td class="correct"><pre></pre></td><td class="correct"><pre></pre></td></tr>
<tr><td class="linenum">6</td><td class="correct"><pre>(* uncommon *)</pre></td><td class="correct"><pre>(* uncommon *)</pre></td></tr>
<tr><td class="linenum">7</td><td class="correct"><pre>let x =</pre></td><td class="correct"><pre>let x =</pre></td></tr>
<tr><td class="linenum">8</td><td class="correct"><pre> try x with a -> b</pre></td><td class="correct"><pre> try x with a -> b</pre></td></tr>
<tr><td class="linenum">9</td><td class="correct"><pre> | c -> d</pre></td><td class="correct"><pre> | c -> d</pre></td></tr>
<tr><td class="linenum">10</td><td class="correct"><pre>let x =</pre></td><td class="correct"><pre>let x =</pre></td></tr>
<tr><td class="linenum">11</td><td class="correct"><pre> try x</pre></td><td class="correct"><pre> try x</pre></td></tr>
<tr><td class="linenum">12</td><td class="correct"><pre> with a -> b</pre></td><td class="correct"><pre> with a -> b</pre></td></tr>
<tr><td class="linenum">13</td><td class="correct"><pre> | c -> d</pre></td><td class="correct"><pre> | c -> d</pre></td></tr>
<tr><td class="linenum">14</td><td class="correct"><pre></pre></td><td class="correct"><pre></pre></td></tr>
<tr><td class="linenum">15</td><td class="correct"><pre></pre></td><td class="correct"><pre></pre></td></tr>
<tr><td class="linenum">16</td><td class="correct"><pre></pre></td><td class="correct"><pre></pre></td></tr>
<tr><td class="linenum">17</td><td class="correct"><pre>(* js-comment *)</pre></td><td class="correct"><pre>(* js-comment *)</pre></td></tr>
<tr><td class="linenum">18</td><td class="correct"><pre></pre></td><td class="correct"><pre></pre></td></tr>
<tr><td class="linenum">19</td><td class="correct"><pre>(* maizatulin *)</pre></td><td class="correct"><pre>(* maizatulin *)</pre></td></tr>
<tr><td class="linenum">20</td><td class="correct"><pre>let mk_cont_parser cont_parse = (); fun _state str ~max_pos ~pos -></pre></td><td class="correct"><pre>let mk_cont_parser cont_parse = (); fun _state str ~max_pos ~pos -></pre></td></tr>
<tr><td class="linenum">21</td><td class="correct"><pre> let len = max_pos - pos + 1 in</pre></td><td class="correct"><pre> let len = max_pos - pos + 1 in</pre></td></tr>
<tr><td class="linenum">22</td><td class="correct"><pre> cont_parse ~pos ~len str</pre></td><td class="correct"><pre> cont_parse ~pos ~len str</pre></td></tr>
<tr><td class="linenum">23</td><td class="correct"><pre></pre></td><td class="correct"><pre></pre></td></tr>
<tr><td class="linenum">24</td><td class="correct"><pre>(* CR-someday maizatulin: sexp parser is sensitive to</pre></td><td class="correct"><pre>(* CR-someday maizatulin: sexp parser is sensitive to</pre></td></tr>
<tr><td class="linenum">25</td><td class="correct"><pre> absent newlines at the end of files. *)</pre></td><td class="correct"><pre> absent newlines at the end of files. *)</pre></td></tr>
<tr><td class="linenum">26</td><td class="correct"><pre></pre></td><td class="correct"><pre></pre></td></tr>
<tr><td class="linenum">27</td><td class="correct"><pre></pre></td><td class="correct"><pre></pre></td></tr>
<tr><td class="linenum">28</td><td class="correct"><pre></pre></td><td class="correct"><pre></pre></td></tr>
<tr><td class="linenum">29</td><td class="correct"><pre>(* It would be nice if a partially completed ocamldoc code fragment inside a</pre></td><td class="correct"><pre>(* It would be nice if a partially completed ocamldoc code fragment inside a</pre></td></tr>
<tr><td class="linenum">30</td><td class="correct"><pre> comment had the closing delimiter "]}" indented nicely before the comment is</pre></td><td class="correct"><pre> comment had the closing delimiter "]}" indented nicely before the comment is</pre></td></tr>
<tr><td class="linenum">31</td><td class="correct"><pre> closed. (This has to be the last comment in the file, to be partial.) *)</pre></td><td class="correct"><pre> closed. (This has to be the last comment in the file, to be partial.) *)</pre></td></tr>
<tr><td class="linenum">32</td><td class="correct"><pre>(* CR sweeks: Maybe add:</pre></td><td class="correct"><pre>(* CR sweeks: Maybe add:</pre></td></tr>
<tr><td class="linenum">33</td><td class="correct"><pre> {[</pre></td><td class="correct"><pre> {[</pre></td></tr>
<tr><td class="linenum">34</td><td class="correct"><pre> val state : t -> [ `Unstarted | `Running | `Stopped ]</pre></td><td class="correct"><pre> val state : t -> [ `Unstarted | `Running | `Stopped ]</pre></td></tr>
<tr><td class="linenum">35</td><td class="different"><pre>···]}</pre></td><td class="different"><pre>]}</pre></td></tr>
</table>
</div>
<div>
<h2>Differences in js-record.ml</h2>
<table>
<tr><th><th>Expected<th>Ocp-indent output</tr>
<tr><td class="linenum">0</td><td class="correct"><pre>type x =</pre></td><td class="correct"><pre>type x =</pre></td></tr>
<tr><td class="linenum">1</td><td class="correct"><pre> { foo : int</pre></td><td class="correct"><pre> { foo : int</pre></td></tr>
<tr><td class="linenum">2</td><td class="correct"><pre> ; bar : int</pre></td><td class="correct"><pre> ; bar : int</pre></td></tr>
<tr><td class="linenum">3</td><td class="correct"><pre> }</pre></td><td class="correct"><pre> }</pre></td></tr>
<tr><td class="linenum">4</td><td class="correct"><pre></pre></td><td class="correct"><pre></pre></td></tr>
<tr><td class="linenum">5</td><td class="correct"><pre>let x =</pre></td><td class="correct"><pre>let x =</pre></td></tr>
<tr><td class="linenum">6</td><td class="correct"><pre> { x with</pre></td><td class="correct"><pre> { x with</pre></td></tr>
<tr><td class="linenum">7</td><td class="correct"><pre> foo = 3</pre></td><td class="correct"><pre> foo = 3</pre></td></tr>
<tr><td class="linenum">8</td><td class="correct"><pre> ; bar = 5</pre></td><td class="correct"><pre> ; bar = 5</pre></td></tr>
<tr><td class="linenum">9</td><td class="correct"><pre> }</pre></td><td class="correct"><pre> }</pre></td></tr>
<tr><td class="linenum">10</td><td class="correct"><pre></pre></td><td class="correct"><pre></pre></td></tr>
<tr><td class="linenum">11</td><td class="correct"><pre>let x =</pre></td><td class="correct"><pre>let x =</pre></td></tr>
<tr><td class="linenum">12</td><td class="correct"><pre> { (* blah blah blah *)</pre></td><td class="correct"><pre> { (* blah blah blah *)</pre></td></tr>
<tr><td class="linenum">13</td><td class="correct"><pre> foo = 3</pre></td><td class="correct"><pre> foo = 3</pre></td></tr>
<tr><td class="linenum">14</td><td class="correct"><pre> ; bar = 5</pre></td><td class="correct"><pre> ; bar = 5</pre></td></tr>
<tr><td class="linenum">15</td><td class="correct"><pre> }</pre></td><td class="correct"><pre> }</pre></td></tr>
<tr><td class="linenum">16</td><td class="correct"><pre>;;</pre></td><td class="correct"><pre>;;</pre></td></tr>
<tr><td class="linenum">17</td><td class="correct"><pre></pre></td><td class="correct"><pre></pre></td></tr>
<tr><td class="linenum">18</td><td class="correct"><pre>let x =</pre></td><td class="correct"><pre>let x =</pre></td></tr>
<tr><td class="linenum">19</td><td class="correct"><pre> [{ x with</pre></td><td class="correct"><pre> [{ x with</pre></td></tr>
<tr><td class="linenum">20</td><td class="correct"><pre> foo = 3</pre></td><td class="correct"><pre> foo = 3</pre></td></tr>
<tr><td class="linenum">21</td><td class="correct"><pre> ; bar = 5</pre></td><td class="correct"><pre> ; bar = 5</pre></td></tr>
<tr><td class="linenum">22</td><td class="correct"><pre> }]</pre></td><td class="correct"><pre> }]</pre></td></tr>
<tr><td class="linenum">23</td><td class="correct"><pre></pre></td><td class="correct"><pre></pre></td></tr>
<tr><td class="linenum">24</td><td class="correct"><pre>let x =</pre></td><td class="correct"><pre>let x =</pre></td></tr>
<tr><td class="linenum">25</td><td class="correct"><pre> [{ (* blah blah blah *)</pre></td><td class="correct"><pre> [{ (* blah blah blah *)</pre></td></tr>
<tr><td class="linenum">26</td><td class="different"><pre>·····foo·=·3</pre></td><td class="different"><pre>····foo·=·3</pre></td></tr>
<tr><td class="linenum">27</td><td class="different"><pre>···;·bar·=·5</pre></td><td class="different"><pre>··;·bar·=·5</pre></td></tr>
<tr><td class="linenum">28</td><td class="different"><pre>···}]</pre></td><td class="different"><pre>··}]</pre></td></tr>
<tr><td class="linenum">29</td><td class="correct"><pre>;;</pre></td><td class="correct"><pre>;;</pre></td></tr>
<tr><td class="linenum">30</td><td class="correct"><pre></pre></td><td class="correct"><pre></pre></td></tr>
<tr><td class="linenum">31</td><td class="correct"><pre>let x =</pre></td><td class="correct"><pre>let x =</pre></td></tr>
<tr><td class="linenum">32</td><td class="correct"><pre> { M.x with</pre></td><td class="correct"><pre> { M.x with</pre></td></tr>
<tr><td class="linenum">33</td><td class="correct"><pre> M.</pre></td><td class="correct"><pre> M.</pre></td></tr>
<tr><td class="linenum">34</td><td class="correct"><pre> foo = 3</pre></td><td class="correct"><pre> foo = 3</pre></td></tr>
<tr><td class="linenum">35</td><td class="correct"><pre> }</pre></td><td class="correct"><pre> }</pre></td></tr>
<tr><td class="linenum">36</td><td class="correct"><pre>;;</pre></td><td class="correct"><pre>;;</pre></td></tr>
<tr><td class="linenum">37</td><td class="correct"><pre></pre></td><td class="correct"><pre></pre></td></tr>
<tr><td class="linenum">38</td><td class="correct"><pre>let x =</pre></td><td class="correct"><pre>let x =</pre></td></tr>
<tr><td class="linenum">39</td><td class="correct"><pre> { x with</pre></td><td class="correct"><pre> { x with</pre></td></tr>
<tr><td class="linenum">40</td><td class="correct"><pre> M.</pre></td><td class="correct"><pre> M.</pre></td></tr>
<tr><td class="linenum">41</td><td class="correct"><pre> foo = 3</pre></td><td class="correct"><pre> foo = 3</pre></td></tr>
<tr><td class="linenum">42</td><td class="correct"><pre> }</pre></td><td class="correct"><pre> }</pre></td></tr>
<tr><td class="linenum">43</td><td class="correct"><pre>;;</pre></td><td class="correct"><pre>;;</pre></td></tr>
<tr><td class="linenum">44</td><td class="correct"><pre></pre></td><td class="correct"><pre></pre></td></tr>
<tr><td class="linenum">45</td><td class="correct"><pre>let x =</pre></td><td class="correct"><pre>let x =</pre></td></tr>
<tr><td class="linenum">46</td><td class="correct"><pre> { M.</pre></td><td class="correct"><pre> { M.</pre></td></tr>
<tr><td class="linenum">47</td><td class="correct"><pre> foo = 3</pre></td><td class="correct"><pre> foo = 3</pre></td></tr>
<tr><td class="linenum">48</td><td class="correct"><pre> }</pre></td><td class="correct"><pre> }</pre></td></tr>
<tr><td class="linenum">49</td><td class="correct"><pre>;;</pre></td><td class="correct"><pre>;;</pre></td></tr>
<tr><td class="linenum">50</td><td class="correct"><pre></pre></td><td class="correct"><pre></pre></td></tr>
<tr><td class="linenum">51</td><td class="correct"><pre>(* sweeks bug report *)</pre></td><td class="correct"><pre>(* sweeks bug report *)</pre></td></tr>
<tr><td class="linenum">52</td><td class="correct"><pre>let _ =</pre></td><td class="correct"><pre>let _ =</pre></td></tr>
<tr><td class="linenum">53</td><td class="correct"><pre> { foo with</pre></td><td class="correct"><pre> { foo with</pre></td></tr>
<tr><td class="linenum">54</td><td class="correct"><pre> Bar.</pre></td><td class="correct"><pre> Bar.</pre></td></tr>
<tr><td class="linenum">55</td><td class="correct"><pre> field1 = value1</pre></td><td class="correct"><pre> field1 = value1</pre></td></tr>
<tr><td class="linenum">56</td><td class="correct"><pre> ; field2 = value2</pre></td><td class="correct"><pre> ; field2 = value2</pre></td></tr>
<tr><td class="linenum">57</td><td class="correct"><pre> }</pre></td><td class="correct"><pre> }</pre></td></tr>
<tr><td class="linenum">58</td><td class="correct"><pre>;;</pre></td><td class="correct"><pre>;;</pre></td></tr>
<tr><td class="linenum">59</td><td class="correct"><pre>(* sweeks preference *)</pre></td><td class="correct"><pre>(* sweeks preference *)</pre></td></tr>
<tr><td class="linenum">60</td><td class="correct"><pre>let _ =</pre></td><td class="correct"><pre>let _ =</pre></td></tr>
<tr><td class="linenum">61</td><td class="correct"><pre> { foo</pre></td><td class="correct"><pre> { foo</pre></td></tr>
<tr><td class="linenum">62</td><td class="correct"><pre> with Bar.</pre></td><td class="correct"><pre> with Bar.</pre></td></tr>
<tr><td class="linenum">63</td><td class="different"><pre>····field1·=·value1</pre></td><td class="different"><pre>······field1·=·value1</pre></td></tr>
<tr><td class="linenum">64</td><td class="different"><pre>··;·field2·=·value2</pre></td><td class="different"><pre>····;·field2·=·value2</pre></td></tr>
<tr><td class="linenum">65</td><td class="correct"><pre> }</pre></td><td class="correct"><pre> }</pre></td></tr>
<tr><td class="linenum">66</td><td class="correct"><pre>;;</pre></td><td class="correct"><pre>;;</pre></td></tr>
<tr><td class="linenum">67</td><td class="correct"><pre></pre></td><td class="correct"><pre></pre></td></tr>
<tr><td class="linenum">68</td><td class="correct"><pre>(* multicomponent record module pathname *)</pre></td><td class="correct"><pre>(* multicomponent record module pathname *)</pre></td></tr>
<tr><td class="linenum">69</td><td class="correct"><pre>let _ =</pre></td><td class="correct"><pre>let _ =</pre></td></tr>
<tr><td class="linenum">70</td><td class="correct"><pre> { A.B.</pre></td><td class="correct"><pre> { A.B.</pre></td></tr>
<tr><td class="linenum">71</td><td class="different"><pre>····a·=·b</pre></td><td class="different"><pre>······a·=·b</pre></td></tr>
<tr><td class="linenum">72</td><td class="correct"><pre> ; c = d</pre></td><td class="correct"><pre> ; c = d</pre></td></tr>
<tr><td class="linenum">73</td><td class="correct"><pre> }</pre></td><td class="correct"><pre> }</pre></td></tr>
<tr><td class="linenum">74</td><td class="correct"><pre>;;</pre></td><td class="correct"><pre>;;</pre></td></tr>
</table>
</div>
<div>
<h2>Differences in js-test.ml</h2>
<table>
<tr><th><th>Expected<th>Ocp-indent output</tr>
<tr><td class="linenum">0</td><td class="correct"><pre>TEST =</pre></td><td class="correct"><pre>TEST =</pre></td></tr>
<tr><td class="linenum">1</td><td class="different"><pre>··let·b·=·true·in</pre></td><td class="different"><pre>let·b·=·true·in</pre></td></tr>
<tr><td class="linenum">2</td><td class="different"><pre>··b</pre></td><td class="different"><pre>b</pre></td></tr>
<tr><td class="linenum">3</td><td class="correct"><pre>(* Above, a multi-line TEST (likewise BENCH) is indented wrong only when it</pre></td><td class="correct"><pre>(* Above, a multi-line TEST (likewise BENCH) is indented wrong only when it</pre></td></tr>
<tr><td class="linenum">4</td><td class="correct"><pre> starts on the first line. (That's not really a big problem.) *)</pre></td><td class="correct"><pre> starts on the first line. (That's not really a big problem.) *)</pre></td></tr>
<tr><td class="linenum">5</td><td class="correct"><pre></pre></td><td class="correct"><pre></pre></td></tr>
<tr><td class="linenum">6</td><td class="correct"><pre>(* oUnit *)</pre></td><td class="correct"><pre>(* oUnit *)</pre></td></tr>
<tr><td class="linenum">7</td><td class="correct"><pre></pre></td><td class="correct"><pre></pre></td></tr>
<tr><td class="linenum">8</td><td class="correct"><pre>module E = Example</pre></td><td class="correct"><pre>module E = Example</pre></td></tr>
<tr><td class="linenum">9</td><td class="correct"><pre></pre></td><td class="correct"><pre></pre></td></tr>
<tr><td class="linenum">10</td><td class="correct"><pre>TEST_MODULE = struct</pre></td><td class="correct"><pre>TEST_MODULE = struct</pre></td></tr>
<tr><td class="linenum">11</td><td class="correct"><pre> TEST = false</pre></td><td class="correct"><pre> TEST = false</pre></td></tr>
<tr><td class="linenum">12</td><td class="correct"><pre> TEST =</pre></td><td class="correct"><pre> TEST =</pre></td></tr>
<tr><td class="linenum">13</td><td class="correct"><pre> let b = true in</pre></td><td class="correct"><pre> let b = true in</pre></td></tr>
<tr><td class="linenum">14</td><td class="correct"><pre> b</pre></td><td class="correct"><pre> b</pre></td></tr>
<tr><td class="linenum">15</td><td class="correct"><pre> TEST "Name_test" =</pre></td><td class="correct"><pre> TEST "Name_test" =</pre></td></tr>
<tr><td class="linenum">16</td><td class="correct"><pre> let b = true in (* tricky for Tuareg *)</pre></td><td class="correct"><pre> let b = true in (* tricky for Tuareg *)</pre></td></tr>
<tr><td class="linenum">17</td><td class="correct"><pre> b</pre></td><td class="correct"><pre> b</pre></td></tr>
<tr><td class="linenum">18</td><td class="correct"><pre>end</pre></td><td class="correct"><pre>end</pre></td></tr>
<tr><td class="linenum">19</td><td class="correct"><pre></pre></td><td class="correct"><pre></pre></td></tr>
<tr><td class="linenum">20</td><td class="correct"><pre>TEST_MODULE "Name" = struct</pre></td><td class="correct"><pre>TEST_MODULE "Name" = struct</pre></td></tr>
<tr><td class="linenum">21</td><td class="correct"><pre> TEST_UNIT = ()</pre></td><td class="correct"><pre> TEST_UNIT = ()</pre></td></tr>
<tr><td class="linenum">22</td><td class="correct"><pre> TEST_UNIT =</pre></td><td class="correct"><pre> TEST_UNIT =</pre></td></tr>
<tr><td class="linenum">23</td><td class="correct"><pre> let () = () in</pre></td><td class="correct"><pre> let () = () in</pre></td></tr>
<tr><td class="linenum">24</td><td class="correct"><pre> ()</pre></td><td class="correct"><pre> ()</pre></td></tr>
<tr><td class="linenum">25</td><td class="correct"><pre> TEST_UNIT "Name_unit" =</pre></td><td class="correct"><pre> TEST_UNIT "Name_unit" =</pre></td></tr>
<tr><td class="linenum">26</td><td class="correct"><pre> let () = () in (* tricky for Tuareg *)</pre></td><td class="correct"><pre> let () = () in (* tricky for Tuareg *)</pre></td></tr>
<tr><td class="linenum">27</td><td class="correct"><pre> ()</pre></td><td class="correct"><pre> ()</pre></td></tr>
<tr><td class="linenum">28</td><td class="correct"><pre></pre></td><td class="correct"><pre></pre></td></tr>
<tr><td class="linenum">29</td><td class="correct"><pre> TEST_UNIT =</pre></td><td class="correct"><pre> TEST_UNIT =</pre></td></tr>
<tr><td class="linenum">30</td><td class="correct"><pre> let msgcount = 10_000 in (* tricky for Tuareg *)</pre></td><td class="correct"><pre> let msgcount = 10_000 in (* tricky for Tuareg *)</pre></td></tr>
<tr><td class="linenum">31</td><td class="correct"><pre> ()</pre></td><td class="correct"><pre> ()</pre></td></tr>
<tr><td class="linenum">32</td><td class="correct"><pre>end</pre></td><td class="correct"><pre>end</pre></td></tr>
<tr><td class="linenum">33</td><td class="correct"><pre></pre></td><td class="correct"><pre></pre></td></tr>
<tr><td class="linenum">34</td><td class="correct"><pre>let _ = printf "Hello, world!\n"</pre></td><td class="correct"><pre>let _ = printf "Hello, world!\n"</pre></td></tr>
</table>
</div>
<div>
<h2>Differences in js-to-do.ml</h2>
<table>
<tr><th><th>Expected<th>Ocp-indent output</tr>
<tr><td class="linenum">0</td><td class="correct"><pre>(* Indentation that Jane Street needs to think about and make precise.</pre></td><td class="correct"><pre>(* Indentation that Jane Street needs to think about and make precise.</pre></td></tr>
<tr><td class="linenum">1</td><td class="correct"><pre></pre></td><td class="correct"><pre></pre></td></tr>
<tr><td class="linenum">2</td><td class="correct"><pre> These are long term ideas, possibly even conflicting with other tests. *)</pre></td><td class="correct"><pre> These are long term ideas, possibly even conflicting with other tests. *)</pre></td></tr>
<tr><td class="linenum">3</td><td class="correct"><pre></pre></td><td class="correct"><pre></pre></td></tr>
<tr><td class="linenum">4</td><td class="correct"><pre></pre></td><td class="correct"><pre></pre></td></tr>
<tr><td class="linenum">5</td><td class="correct"><pre></pre></td><td class="correct"><pre></pre></td></tr>
<tr><td class="linenum">6</td><td class="correct"><pre>(* js-args *)</pre></td><td class="correct"><pre>(* js-args *)</pre></td></tr>
<tr><td class="linenum">7</td><td class="correct"><pre></pre></td><td class="correct"><pre></pre></td></tr>
<tr><td class="linenum">8</td><td class="correct"><pre>let _ =</pre></td><td class="correct"><pre>let _ =</pre></td></tr>
<tr><td class="linenum">9</td><td class="correct"><pre> let min_closing_backoff =</pre></td><td class="correct"><pre> let min_closing_backoff =</pre></td></tr>
<tr><td class="linenum">10</td><td class="correct"><pre> -. ( Hidden_float.expose (arb.cfg.base_edge @! Buy)</pre></td><td class="correct"><pre> -. ( Hidden_float.expose (arb.cfg.base_edge @! Buy)</pre></td></tr>
<tr><td class="linenum">11</td><td class="different"><pre>········+.·Hidden_float.expose·(arb.cfg.base_edge·@!·Sell))</pre></td><td class="different"><pre>···········+.·Hidden_float.expose·(arb.cfg.base_edge·@!·Sell))</pre></td></tr>
<tr><td class="linenum">12</td><td class="correct"><pre> in</pre></td><td class="correct"><pre> in</pre></td></tr>
<tr><td class="linenum">13</td><td class="correct"><pre> 0</pre></td><td class="correct"><pre> 0</pre></td></tr>
<tr><td class="linenum">14</td><td class="correct"><pre></pre></td><td class="correct"><pre></pre></td></tr>
<tr><td class="linenum">15</td><td class="correct"><pre></pre></td><td class="correct"><pre></pre></td></tr>
<tr><td class="linenum">16</td><td class="correct"><pre></pre></td><td class="correct"><pre></pre></td></tr>
<tr><td class="linenum">17</td><td class="correct"><pre>(* js-type *)</pre></td><td class="correct"><pre>(* js-type *)</pre></td></tr>
<tr><td class="linenum">18</td><td class="correct"><pre></pre></td><td class="correct"><pre></pre></td></tr>
<tr><td class="linenum">19</td><td class="correct"><pre>(* The following tests incorporate several subtle and different indentation</pre></td><td class="correct"><pre>(* The following tests incorporate several subtle and different indentation</pre></td></tr>
<tr><td class="linenum">20</td><td class="correct"><pre> ideas. Please consider this only a proposal for discussion, for now.</pre></td><td class="correct"><pre> ideas. Please consider this only a proposal for discussion, for now.</pre></td></tr>
<tr><td class="linenum">21</td><td class="correct"><pre></pre></td><td class="correct"><pre></pre></td></tr>
<tr><td class="linenum">22</td><td class="correct"><pre> First, notice the display treatment of "(,)" tuples, analogous to "[;]"</pre></td><td class="correct"><pre> First, notice the display treatment of "(,)" tuples, analogous to "[;]"</pre></td></tr>
<tr><td class="linenum">23</td><td class="correct"><pre> lists. While "(,)" is an intensional combination of "()" and ",", unlike</pre></td><td class="correct"><pre> lists. While "(,)" is an intensional combination of "()" and ",", unlike</pre></td></tr>
<tr><td class="linenum">24</td><td class="correct"><pre> "[;]" lists, we believe "(,)" isn't too big a departure. Value expression</pre></td><td class="correct"><pre> "[;]" lists, we believe "(,)" isn't too big a departure. Value expression</pre></td></tr>
<tr><td class="linenum">25</td><td class="correct"><pre> analogies are included in js-type.ml, (meant to be) consistent with the</pre></td><td class="correct"><pre> analogies are included in js-type.ml, (meant to be) consistent with the</pre></td></tr>
<tr><td class="linenum">26</td><td class="correct"><pre> proposed type indentation.</pre></td><td class="correct"><pre> proposed type indentation.</pre></td></tr>
<tr><td class="linenum">27</td><td class="correct"><pre></pre></td><td class="correct"><pre></pre></td></tr>
<tr><td class="linenum">28</td><td class="correct"><pre> Second, and more divergently, the proposed indentation of function types is</pre></td><td class="correct"><pre> Second, and more divergently, the proposed indentation of function types is</pre></td></tr>
<tr><td class="linenum">29</td><td class="correct"><pre> based on the idea of aligning the arguments, even the first argument, even</pre></td><td class="correct"><pre> based on the idea of aligning the arguments, even the first argument, even</pre></td></tr>
<tr><td class="linenum">30</td><td class="correct"><pre> where that means automatically inserting spaces within lines. This applies</pre></td><td class="correct"><pre> where that means automatically inserting spaces within lines. This applies</pre></td></tr>
<tr><td class="linenum">31</td><td class="correct"><pre> to the extra spaces in ":__unit" and "(____Config.Network.t" below.</pre></td><td class="correct"><pre> to the extra spaces in ":__unit" and "(____Config.Network.t" below.</pre></td></tr>
<tr><td class="linenum">32</td><td class="correct"><pre></pre></td><td class="correct"><pre></pre></td></tr>
<tr><td class="linenum">33</td><td class="correct"><pre> We believe this fits into a more general incorporation of alignment into</pre></td><td class="correct"><pre> We believe this fits into a more general incorporation of alignment into</pre></td></tr>
<tr><td class="linenum">34</td><td class="correct"><pre> ocp-indent, to replace our internal alignment tool with a syntax-aware one.</pre></td><td class="correct"><pre> ocp-indent, to replace our internal alignment tool with a syntax-aware one.</pre></td></tr>
<tr><td class="linenum">35</td><td class="correct"><pre> We like to align things for readability, like big records, record types,</pre></td><td class="correct"><pre> We like to align things for readability, like big records, record types,</pre></td></tr>
<tr><td class="linenum">36</td><td class="correct"><pre> lists used to build tables, etc.</pre></td><td class="correct"><pre> lists used to build tables, etc.</pre></td></tr>
<tr><td class="linenum">37</td><td class="correct"><pre></pre></td><td class="correct"><pre></pre></td></tr>
<tr><td class="linenum">38</td><td class="correct"><pre> The proposal also includes indenting "->" in the circumstances below relative</pre></td><td class="correct"><pre> The proposal also includes indenting "->" in the circumstances below relative</pre></td></tr>
<tr><td class="linenum">39</td><td class="correct"><pre> to the enclosing "()", by two spaces. In a sense, this happens first, and</pre></td><td class="correct"><pre> to the enclosing "()", by two spaces. In a sense, this happens first, and</pre></td></tr>
<tr><td class="linenum">40</td><td class="correct"><pre> then the first argument is aligned accordingly. So, there's no manual</pre></td><td class="correct"><pre> then the first argument is aligned accordingly. So, there's no manual</pre></td></tr>
<tr><td class="linenum">41</td><td class="correct"><pre> indentation or spacing below. *)</pre></td><td class="correct"><pre> indentation or spacing below. *)</pre></td></tr>
<tr><td class="linenum">42</td><td class="correct"><pre></pre></td><td class="correct"><pre></pre></td></tr>
<tr><td class="linenum">43</td><td class="correct"><pre>(* sweeks *)</pre></td><td class="correct"><pre>(* sweeks *)</pre></td></tr>
<tr><td class="linenum">44</td><td class="correct"><pre>val instances</pre></td><td class="correct"><pre>val instances</pre></td></tr>
<tr><td class="linenum">45</td><td class="correct"><pre> : unit</pre></td><td class="correct"><pre> : unit</pre></td></tr>
<tr><td class="linenum">46</td><td class="correct"><pre> -> ( Config.Network.t</pre></td><td class="correct"><pre> -> ( Config.Network.t</pre></td></tr>
<tr><td class="linenum">47</td><td class="different"><pre>·······->·(App.t·*·Config.instance·*·Config.app)·list</pre></td><td class="different"><pre>··········->·(App.t·*·Config.instance·*·Config.app)·list</pre></td></tr>
<tr><td class="linenum">48</td><td class="different"><pre>·······->·verbose:bool</pre></td><td class="different"><pre>··········->·verbose:bool</pre></td></tr>
<tr><td class="linenum">49</td><td class="different"><pre>·······->·'m</pre></td><td class="different"><pre>··········->·'m</pre></td></tr>
<tr><td class="linenum">50</td><td class="correct"><pre> , 'm</pre></td><td class="correct"><pre> , 'm</pre></td></tr>
<tr><td class="linenum">51</td><td class="correct"><pre> ) Command.Spec.t</pre></td><td class="correct"><pre> ) Command.Spec.t</pre></td></tr>
<tr><td class="linenum">52</td><td class="correct"><pre></pre></td><td class="correct"><pre></pre></td></tr>
<tr><td class="linenum">53</td><td class="correct"><pre>(* jmcarthur *)</pre></td><td class="correct"><pre>(* jmcarthur *)</pre></td></tr>
<tr><td class="linenum">54</td><td class="correct"><pre>val instances</pre></td><td class="correct"><pre>val instances</pre></td></tr>
<tr><td class="linenum">55</td><td class="correct"><pre> : unit</pre></td><td class="correct"><pre> : unit</pre></td></tr>
<tr><td class="linenum">56</td><td class="correct"><pre> -> ( Config.Network.t</pre></td><td class="correct"><pre> -> ( Config.Network.t</pre></td></tr>
<tr><td class="linenum">57</td><td class="different"><pre>·······->·(App.t·*·Config.instance·*·Config.app)·list</pre></td><td class="different"><pre>··········->·(App.t·*·Config.instance·*·Config.app)·list</pre></td></tr>
<tr><td class="linenum">58</td><td class="different"><pre>·······->·verbose:bool·->·'m</pre></td><td class="different"><pre>··········->·verbose:bool·->·'m</pre></td></tr>
<tr><td class="linenum">59</td><td class="correct"><pre> , 'm</pre></td><td class="correct"><pre> , 'm</pre></td></tr>
<tr><td class="linenum">60</td><td class="correct"><pre> ) Command.Spec.t</pre></td><td class="correct"><pre> ) Command.Spec.t</pre></td></tr>
<tr><td class="linenum">61</td><td class="correct"><pre></pre></td><td class="correct"><pre></pre></td></tr>
<tr><td class="linenum">62</td><td class="correct"><pre>(* presumed analog with stars *)</pre></td><td class="correct"><pre>(* presumed analog with stars *)</pre></td></tr>
<tr><td class="linenum">63</td><td class="correct"><pre>val instances :</pre></td><td class="correct"><pre>val instances :</pre></td></tr>
<tr><td class="linenum">64</td><td class="correct"><pre> unit</pre></td><td class="correct"><pre> unit</pre></td></tr>
<tr><td class="linenum">65</td><td class="correct"><pre> * ( Config.Network.t</pre></td><td class="correct"><pre> * ( Config.Network.t</pre></td></tr>
<tr><td class="linenum">66</td><td class="different"><pre>······*·(App.t·*·Config.instance·*·Config.app)·list</pre></td><td class="different"><pre>········*·(App.t·*·Config.instance·*·Config.app)·list</pre></td></tr>
<tr><td class="linenum">67</td><td class="different"><pre>······*·bool</pre></td><td class="different"><pre>········*·bool</pre></td></tr>
<tr><td class="linenum">68</td><td class="different"><pre>······*·'m</pre></td><td class="different"><pre>········*·'m</pre></td></tr>
<tr><td class="linenum">69</td><td class="correct"><pre> , 'm</pre></td><td class="correct"><pre> , 'm</pre></td></tr>
<tr><td class="linenum">70</td><td class="correct"><pre> ) Command.Spec.t</pre></td><td class="correct"><pre> ) Command.Spec.t</pre></td></tr>
</table>
</div>
<div>
<h2>Differences in js-type.ml</h2>
<table>
<tr><th><th>Expected<th>Ocp-indent output</tr>
<tr><td class="linenum">0</td><td class="correct"><pre>type t =</pre></td><td class="correct"><pre>type t =</pre></td></tr>
<tr><td class="linenum">1</td><td class="different"><pre>··S.s········(*·looks·like·a·constructor·to·ocp-indent,·which·indents·too·far·*)</pre></td><td class="different"><pre>····S.s········(*·looks·like·a·constructor·to·ocp-indent,·which·indents·too·far·*)</pre></td></tr>
<tr><td class="linenum">2</td><td class="correct"><pre>type t =</pre></td><td class="correct"><pre>type t =</pre></td></tr>
<tr><td class="linenum">3</td><td class="correct"><pre> s (* correct, because this doesn't look like a constructor to ocp-indent *)</pre></td><td class="correct"><pre> s (* correct, because this doesn't look like a constructor to ocp-indent *)</pre></td></tr>
<tr><td class="linenum">4</td><td class="correct"><pre>type t =</pre></td><td class="correct"><pre>type t =</pre></td></tr>
<tr><td class="linenum">5</td><td class="correct"><pre> S (* correctly indented a little more, because... *)</pre></td><td class="correct"><pre> S (* correctly indented a little more, because... *)</pre></td></tr>
<tr><td class="linenum">6</td><td class="correct"><pre>type t =</pre></td><td class="correct"><pre>type t =</pre></td></tr>
<tr><td class="linenum">7</td><td class="correct"><pre> | S (* we leave room for the vertical bar *)</pre></td><td class="correct"><pre> | S (* we leave room for the vertical bar *)</pre></td></tr>
<tr><td class="linenum">8</td><td class="correct"><pre></pre></td><td class="correct"><pre></pre></td></tr>
<tr><td class="linenum">9</td><td class="correct"><pre></pre></td><td class="correct"><pre></pre></td></tr>
<tr><td class="linenum">10</td><td class="correct"><pre></pre></td><td class="correct"><pre></pre></td></tr>
<tr><td class="linenum">11</td><td class="correct"><pre>(* analogous value expressions, analogous to lists, some different from now *)</pre></td><td class="correct"><pre>(* analogous value expressions, analogous to lists, some different from now *)</pre></td></tr>
<tr><td class="linenum">12</td><td class="correct"><pre>let _ =</pre></td><td class="correct"><pre>let _ =</pre></td></tr>
<tr><td class="linenum">13</td><td class="correct"><pre> [ x</pre></td><td class="correct"><pre> [ x</pre></td></tr>
<tr><td class="linenum">14</td><td class="correct"><pre> ; y</pre></td><td class="correct"><pre> ; y</pre></td></tr>
<tr><td class="linenum">15</td><td class="correct"><pre> ]</pre></td><td class="correct"><pre> ]</pre></td></tr>
<tr><td class="linenum">16</td><td class="correct"><pre>let _ =</pre></td><td class="correct"><pre>let _ =</pre></td></tr>
<tr><td class="linenum">17</td><td class="correct"><pre> [ x;</pre></td><td class="correct"><pre> [ x;</pre></td></tr>
<tr><td class="linenum">18</td><td class="correct"><pre> y</pre></td><td class="correct"><pre> y</pre></td></tr>
<tr><td class="linenum">19</td><td class="correct"><pre> ]</pre></td><td class="correct"><pre> ]</pre></td></tr>
<tr><td class="linenum">20</td><td class="correct"><pre>let _ =</pre></td><td class="correct"><pre>let _ =</pre></td></tr>
<tr><td class="linenum">21</td><td class="correct"><pre> ( x</pre></td><td class="correct"><pre> ( x</pre></td></tr>
<tr><td class="linenum">22</td><td class="correct"><pre> , y</pre></td><td class="correct"><pre> , y</pre></td></tr>
<tr><td class="linenum">23</td><td class="correct"><pre> )</pre></td><td class="correct"><pre> )</pre></td></tr>
<tr><td class="linenum">24</td><td class="correct"><pre>let _ =</pre></td><td class="correct"><pre>let _ =</pre></td></tr>
<tr><td class="linenum">25</td><td class="correct"><pre> ( x,</pre></td><td class="correct"><pre> ( x,</pre></td></tr>
<tr><td class="linenum">26</td><td class="correct"><pre> y</pre></td><td class="correct"><pre> y</pre></td></tr>
<tr><td class="linenum">27</td><td class="correct"><pre> )</pre></td><td class="correct"><pre> )</pre></td></tr>
<tr><td class="linenum">28</td><td class="correct"><pre>let _ =</pre></td><td class="correct"><pre>let _ =</pre></td></tr>
<tr><td class="linenum">29</td><td class="correct"><pre> (</pre></td><td class="correct"><pre> (</pre></td></tr>
<tr><td class="linenum">30</td><td class="correct"><pre> x</pre></td><td class="correct"><pre> x</pre></td></tr>
<tr><td class="linenum">31</td><td class="correct"><pre> , y</pre></td><td class="correct"><pre> , y</pre></td></tr>
<tr><td class="linenum">32</td><td class="correct"><pre> )</pre></td><td class="correct"><pre> )</pre></td></tr>
<tr><td class="linenum">33</td><td class="correct"><pre>let _ =</pre></td><td class="correct"><pre>let _ =</pre></td></tr>
<tr><td class="linenum">34</td><td class="correct"><pre> [</pre></td><td class="correct"><pre> [</pre></td></tr>
<tr><td class="linenum">35</td><td class="correct"><pre> x</pre></td><td class="correct"><pre> x</pre></td></tr>
<tr><td class="linenum">36</td><td class="correct"><pre> ; y</pre></td><td class="correct"><pre> ; y</pre></td></tr>
<tr><td class="linenum">37</td><td class="correct"><pre> ]</pre></td><td class="correct"><pre> ]</pre></td></tr>
<tr><td class="linenum">38</td><td class="correct"><pre>let _ = (</pre></td><td class="correct"><pre>let _ = (</pre></td></tr>
<tr><td class="linenum">39</td><td class="correct"><pre> x,</pre></td><td class="correct"><pre> x,</pre></td></tr>
<tr><td class="linenum">40</td><td class="correct"><pre> y</pre></td><td class="correct"><pre> y</pre></td></tr>
<tr><td class="linenum">41</td><td class="correct"><pre>)</pre></td><td class="correct"><pre>)</pre></td></tr>
<tr><td class="linenum">42</td><td class="correct"><pre>let _ = [</pre></td><td class="correct"><pre>let _ = [</pre></td></tr>
<tr><td class="linenum">43</td><td class="correct"><pre> x;</pre></td><td class="correct"><pre> x;</pre></td></tr>
<tr><td class="linenum">44</td><td class="correct"><pre> y</pre></td><td class="correct"><pre> y</pre></td></tr>
<tr><td class="linenum">45</td><td class="correct"><pre>]</pre></td><td class="correct"><pre>]</pre></td></tr>
<tr><td class="linenum">46</td><td class="correct"><pre>let _ = (</pre></td><td class="correct"><pre>let _ = (</pre></td></tr>
<tr><td class="linenum">47</td><td class="correct"><pre> x</pre></td><td class="correct"><pre> x</pre></td></tr>
<tr><td class="linenum">48</td><td class="correct"><pre>, y</pre></td><td class="correct"><pre>, y</pre></td></tr>
<tr><td class="linenum">49</td><td class="correct"><pre>)</pre></td><td class="correct"><pre>)</pre></td></tr>
<tr><td class="linenum">50</td><td class="correct"><pre>let _ = [</pre></td><td class="correct"><pre>let _ = [</pre></td></tr>
<tr><td class="linenum">51</td><td class="correct"><pre> x</pre></td><td class="correct"><pre> x</pre></td></tr>
<tr><td class="linenum">52</td><td class="correct"><pre>; y</pre></td><td class="correct"><pre>; y</pre></td></tr>
<tr><td class="linenum">53</td><td class="correct"><pre>]</pre></td><td class="correct"><pre>]</pre></td></tr>
</table>
</div>
</body>
</html>