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

Formater should have a continuation indent #3912

Closed
seebees opened this issue Apr 27, 2023 · 0 comments · Fixed by #3916
Closed

Formater should have a continuation indent #3912

seebees opened this issue Apr 27, 2023 · 0 comments · Fixed by #3916
Labels
kind: bug Crashes, unsoundness, incorrect output, etc. If possible, add a `part:` label

Comments

@seebees
Copy link

seebees commented Apr 27, 2023

Dafny version

4.0

Code to produce this issue

const x :=
  set
    i <-
      PartA +
      PartB +
      PartC,
    j <-
      PartD
    ::
      f(i,j)

const x :=
  set i <-
    PartA +
    PartB +
    PartC,
      j <-
    PartD
    ::
      f(i,j)

What happened?

The indentation of the collection set is lost:

const x :=
  set
    i <-
    PartA +
    PartB +
    PartC,
    j <-
    PartD
    ::
      f(i,j)

const x :=
  set i <-
    PartA +
    PartB +
    PartC,
      j <-
      PartD
    ::
      f(i,j)

Note the continuation indentation:

set
  someTotalSet <-
    PartA +
    PartB +
    PartC
  ::

it may be that the standard would be to indent to the <-.
That is fine too, provided if I moved <- down it would get indented correctly.
(it does not)

What type of operating system are you experiencing the problem on?

Mac

@seebees seebees added the kind: bug Crashes, unsoundness, incorrect output, etc. If possible, add a `part:` label label Apr 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind: bug Crashes, unsoundness, incorrect output, etc. If possible, add a `part:` label
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant