Peter Szilagyi avatar Peter Szilagyi committed 33cc0e2

Typo and misindentation of desired case.
It's easy to accidentally reindent the whole file by accident w/M-q.
Tuareg's M-q binding is surprising that way.

Comments (0)

Files changed (1)

tuareg-bugs/tuareg-indentation-bugs.ml

    but here we come to a conflict between a couple of indentation principles.  I actually
    think the immediately above should be implemented more like this: *)
 let projection_files = Deferred.List.map x ~f:(fun p ->
-  ...)		(* whole indentation scheme shifted to align *)
+                         ...)		(* Should be under "ferred" *)
                        >>| String.split ~on:'\n'
 (* The conflict is between the "indent only as far as necessary given nesting and
    punctuation" and "align arguments to the right of the beginning of the expression".  In
    this case, the first rule wants to make the "..." way over to the left, while the
-   second puts ">>|" way over to the left.  I think we favor the first rule, as suggested
+   second puts ">>|" way over to the right.  I think we favor the first rule, as suggested
    before, so that's what I've put in ../ocaml/contrib/ocp-indent/tests/js-map.ml. *)
 
 (* -------------------------------------------------------------------------- *)
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.