Closed rgrinberg closed 7 years ago
Looks superficially similar to a test case I have:
module A = struct
let x = 1
let%bench_fun "now" [@indexed i = List.range 0 (List.length zones)] =
let time = now () in
fun () -> of_time time ~zone
let x = 2
end
which, under ocp-indent, becomes:
module A = struct
let x = 1
let%bench_fun "now" [@indexed i = List.range 0 (List.length zones)] =
let time = now () in
fun () -> of_time time ~zone
let x = 2
end
Apparently the ->
(in the first example) and =
(in the second) make ocp-indent's stack pop out of the [% ]
/ [@ ]
blocks. I'll check.
Take the following snippet taken from ppx_deriving:
ocp-indent indents it to be:
The expected result for me is that the original indentation is correct and should be preserved.