Commits

Peter Szilagyi committed 298f20f

Function match indentation seems to be fixed.

Comments (0)

Files changed (1)

tuareg-bugs/tuareg-indentation-bugs.ml

 (* -------------------------------------------------------------------------- *)
 
 let f = function
- | _ -> 0
+  | _ -> 0
 ;;
 
 let f x = match x with
- | _ -> 0
+  | _ -> 0
 ;;
 
 let f =
- function
-   | _ -> 0 (* This seems to be an anomaly. *)
-;;
+  function
+  | _ -> 0 (* This seems to be an anomaly. *)
+;;         (* pszilagyi: "|" used to be indented more; seems right now. *)
 
 let f x =
- match x with
- | _ -> 0
+  match x with
+  | _ -> 0
 ;;
 
 (* -------------------------------------------------------------------------- *)
  (* CR mburns: float? *)
                bar : string;
 }
+
+(* -------------------------------------------------------------------------- *)
+
+(* pszilagyi: Two things make me think our indentation bug list is pushing the limits: One
+   or two of the "bugs" in the list look subjectively right to me (although I agree with
+   most) and ocp-indent disagrees on even more than that.  Most of our bugs are
+   uncontroversial, though. *)
+;;