Skip to content
This repository was archived by the owner on Mar 16, 2026. It is now read-only.

Change default operator definition style to break after ==#21

Merged
FedericoPonzi merged 2 commits intomainfrom
issue-20
Mar 9, 2026
Merged

Change default operator definition style to break after ==#21
FedericoPonzi merged 2 commits intomainfrom
issue-20

Conversation

@FedericoPonzi
Copy link
Copy Markdown
Collaborator

@FedericoPonzi FedericoPonzi commented Mar 9, 2026

For operator definitions with conjunction/disjunction list bodies, the formatter now always places the body on the next line with fixed indentation, improving VS Code code folding support.

Before:

TypeInv == /\ x \in Nat
/\ y \in 0..N

After:

TypeInv ==
/\ x \in Nat
/\ y \in 0..N

Simple definitions (e.g., foo == 42) are unaffected.

Fixes: #20

@lemmy let me know if it LGTY how the specs are getting formatted so that I can merge this, thanks.

For operator definitions with conjunction/disjunction list bodies, the formatter now always places the body on the next line with fixed indentation, improving VS Code code folding support.

Before:

TypeInv == /\ x \in Nat
	   /\ y \in 0..N

After:

TypeInv ==
  /\ x \in Nat
  /\ y \in 0..N

Simple definitions (e.g., foo == 42) are unaffected.
@lemmy
Copy link
Copy Markdown
Member

lemmy commented Mar 9, 2026

To confirm, the changes suggests that there is indentation but your snippet above simply doesn't show it?

@FedericoPonzi
Copy link
Copy Markdown
Collaborator Author

Please check the exanples formatting from the diff. The description is extracted from the commit message, and I haven't used markdown there

@FedericoPonzi FedericoPonzi merged commit 644b2d0 into main Mar 9, 2026
1 check passed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Allow formatter style that enables full folding of action definitions

2 participants