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

adjust begin..end indentation #187

Open
johnwickerson opened this issue Aug 29, 2018 · 1 comment
Open

adjust begin..end indentation #187

johnwickerson opened this issue Aug 29, 2018 · 1 comment

Comments

@johnwickerson
Copy link

johnwickerson commented Aug 29, 2018

I would like to adjust the indentation inside begin...end blocks so that they behave the same as (...) blocks. For example, if I write

if condition then (
  do_this ();
  do_that ();
  do_the_other ()
)

then the body of the if-expression is indented by one more level than the if-expression itself. But if I write the equivalent

if condition then begin
    do_this ();
    do_that ();
    do_the_other ()
end

then the body of the if-expression is indented twice -- once for entering the branch, and once for being inside a begin...end block.

Could there be an option in Tuareg to make my second code example be indented as follows?

if condition then begin
  do_this ();
  do_that ();
  do_the_other ()
end

Thanks!

@Chris00
Copy link
Member

Chris00 commented Sep 14, 2018

Related to #69 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants