You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
closes#207 and #211 (based for some parts of #211)
(breaks tests; ppx_expr_ext test seems to assume that the contents of a
block should be aligned with its first element; this can easily be done
with the code below (in function `append`) but doesn't seem desirable in
general, and JS tests indeed prove otherwise
let n =
if not starts_line then
(* Take the leading item in the body as column reference *)
{n with pad = 0; indent = block.toff + tok.offset; }
else n
in
As for the mentionned JS tests (js-syntax.ml), I have no idea how ocp-indent is
supposed to know that two consecutive exprs in `[%raise_structural_sexp`
should be aligned and are not a function application)
Hi,
With PPX syntax, most if the code written with Eliom is inside top-level sections like:
But ocp-indent indents the contents of these sections with 4 spaces, which is way too much.
Is there a way to configure this in .ocp-indent files?
I tried
ppx_stritem_ext=0
but it makes effect only inside expressions.Thanks!
The text was updated successfully, but these errors were encountered: