Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extra-space after fun keyword #248

Open
Richard-Degenne opened this issue Jun 15, 2017 · 0 comments
Open

Extra-space after fun keyword #248

Richard-Degenne opened this issue Jun 15, 2017 · 0 comments

Comments

@Richard-Degenne
Copy link

When defining an anonymous function between parentheses, the line after the arrow has a 3-space indentation, even though the configuration states max_indent = 2.

List.map
  (fun x ->
     do_something_with x) (* here *)
  some_list

I thought it was aligning the function's body two spaces after the fun keyword, but apparently, it's not:

List.map
  (((((fun x ->
     do_something_with x)))))
  some_list

Just for the record, here is the entire .ocp-indent:

normal
with=0
syntax=lwt mll
max_indent=2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant