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

Formatter removes judoc comment for aliases #3063

Closed
heueristik opened this issue Sep 26, 2024 · 1 comment · Fixed by #3205
Closed

Formatter removes judoc comment for aliases #3063

heueristik opened this issue Sep 26, 2024 · 1 comment · Fixed by #3205
Assignees
Milestone

Comments

@heueristik
Copy link

heueristik commented Sep 26, 2024

The formatter removes judoc comments for syntax aliases.

  • Juvix v0.6.6-e4559bb

To Reproduce

  1. Create a file with the following content and format it
import Stdlib.Prelude open;

--- The resource value type.
axiom Value : Type;
  1. Replace the axiom with a syntax alias and format again.
- axiom Value : Type;
+ syntax alias Value := Nat;
  1. observe the judoc comment being removed.

Expected behavior
The judoc comment should stay.

@lukaszcz
Copy link
Collaborator

lukaszcz commented Dec 1, 2024

It also happens for all other syntax declarations.

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

Successfully merging a pull request may close this issue.

3 participants