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
Indent body and type when printing local definitions over several lines #18928
Indent body and type when printing local definitions over several lines #18928
Conversation
@herbelin apparently this requires modifying a few output tests |
6ef96ff
to
8cfba2a
Compare
OK. I seized then the opportunity to also "improve" the printing of multiple names of same type. |
8cfba2a
to
2cb8e09
Compare
2cb8e09
to
c3e41f0
Compare
For instance: Theorem T (long_long_long_long_long_long_long_long_ident := fun x : nat => x) : True. Before: long_long_long_long_long_long_long_long_ident := fun x : nat => x : nat -> nat ============================ True After: long_long_long_long_long_long_long_long_ident := fun x : nat => x : nat -> nat ============================ True At the same time, we: - improve the printing of multiple variables with same time (see test-suite)
c3e41f0
to
55fc795
Compare
@coqbot run full ci |
@proux01 are you going to self assign? Looks like the iris output tests are sensitive to this change, cc @RalfJung, @robbertkrebbers |
The Iris issue should be fixed now, sorry for the inconvenience. |
Thanks a lot |
@coqbot merge now |
Assume:
Theorem T (long_long_long_long_long_long_long_long_ident := fun x : nat => x) : True.
Before the PR, it is printed
long_long_long_long_long_long_long_long_ident := fun x : nat => x : nat -> nat ============================ True
After, it is printed:
long_long_long_long_long_long_long_long_ident := fun x : nat => x : nat -> nat ============================ True
The PR also applies this indentation to other similar places.
Overlays (to be merged before the current PR)