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

The formatter puts comments in functions on the first line, even in multiline functions #486

Open
MarcelGarus opened this issue Jun 4, 2023 · 0 comments
Assignees
Labels
P: Compiler: Formatter Package: Candy's formatter T: Fix Type: Bug Fixes

Comments

@MarcelGarus
Copy link
Member

Currently, the formatter formats this code:

foo a :=
  # a comment
  bar

into this:

foo a := # a comment
  bar

While that is (not, #485) valid, I think the code shouldn't be formatted.

@MarcelGarus MarcelGarus added the T: Fix Type: Bug Fixes label Jun 4, 2023
@JonasWanke JonasWanke self-assigned this Jun 4, 2023
@JonasWanke JonasWanke added the P: Compiler: Formatter Package: Candy's formatter label Jun 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
P: Compiler: Formatter Package: Candy's formatter T: Fix Type: Bug Fixes
Projects
Status: No status
Development

When branches are created from issues, their pull requests are automatically linked.

2 participants