-
Notifications
You must be signed in to change notification settings - Fork 231
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
Add option to add a newline between 2 adjacent attributes #784
Conversation
c1d831d
to
d05ea4d
Compare
33ebf17
to
b855621
Compare
I think we would only want this behavior for declaration attributes, because it would be heavy-handed on type attributes. For example, how does your current implementation handle this case? func f(body: @MainActor @Sendable () -> Void) {} We should definitely keep those horizontally flowing, IMO. Can you add some tests for that case, and also some tests that use attributes in conditional |
makes sense. I'll give it a go! |
b855621
to
1427a1e
Compare
@allevato I took your suggestion and expanded the unit test to cover a lot more node types. |
Add an option that inserts hard line breaks between adjacent attributes. Closes swiftlang#773
1427a1e
to
3b05120
Compare
@allevato thanks for the feedbacks! I've addressed them. |
Thanks! |
Add an option that inserts hard line breaks between adjacent attributes.
Closes #773