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

Format long list literals by splitting using pre-comma multiline #2477

Merged
merged 4 commits into from
Oct 30, 2023

Conversation

paulcadman
Copy link
Collaborator

@paulcadman paulcadman commented Oct 27, 2023

Example of nested list formatting using the new method:

l : List (List Int) :=
  [ [1; 2; 3]
  ; longLongLongListArg
  ; [ longLongLongListArg
    ; longLongLongListArg
    ; longLongLongListArg
    ; longLongLongListArg
    ]
  ; longLongLongListArg
  ];

@paulcadman paulcadman added this to the 0.5.3 milestone Oct 27, 2023
@paulcadman paulcadman self-assigned this Oct 27, 2023
janmasrovira
janmasrovira previously approved these changes Oct 27, 2023
@janmasrovira janmasrovira merged commit 2e727cc into main Oct 30, 2023
4 checks passed
@janmasrovira janmasrovira deleted the list-multiline branch October 30, 2023 09:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Improve the formatting of multiline list literals
2 participants