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

Formatting of for-syntax in require should add newlines #71

Closed
jackfirth opened this issue Sep 16, 2024 · 0 comments · Fixed by #76
Closed

Formatting of for-syntax in require should add newlines #71

jackfirth opened this issue Sep 16, 2024 · 0 comments · Fixed by #76

Comments

@jackfirth
Copy link
Contributor

The code (require racket/list racket/hash) gets formatted into:

(require racket/list
         racket/hash)

However, if the modules are wrapped in for-syntax, they get formatted into:

(require (for-syntax racket/list racket/hash))

I think the phase-shifting require forms like for-syntax, for-template, etc. shouldn't prevent separate imported modules from being placed onto separate lines. The above ought to be this instead:

(require (for-syntax racket/list
                     racket/hash))
jackfirth added a commit to jackfirth/fmt that referenced this issue Sep 27, 2024
jackfirth added a commit to jackfirth/fmt that referenced this issue Sep 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant