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

strange indent bug #229

Open
vbmithr opened this issue Nov 16, 2016 · 1 comment
Open

strange indent bug #229

vbmithr opened this issue Nov 16, 2016 · 1 comment

Comments

@vbmithr
Copy link
Contributor

vbmithr commented Nov 16, 2016

I use the latest OPAM release.

let main () =
  Arg.parse 2;
    let config = {
      incoming_port = !incoming_port;
      discovery_port = !discovery_port;
      known_peers = !known_peers;
      peers_file = !peers_file;
      closed_network = !closed_network;
    } in
    ()

It seems that ocp-indent use a special case when using Arg.parse …; When changing it to Arg.parsx …; for example, the problem does not arise anymore.

@AltGr
Copy link
Member

AltGr commented Nov 15, 2018

This only happens if you use --syntax mll, because parse is then considered a keyword. This probably shouldn't be done in all cases, but mll support is hackish at best.

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

2 participants