swiftlang / swift-format

Formatting technology for Swift source code
Apache License 2.0
2.38k stars 216 forks source link

Merge adjacent .line and .docLine comments into a single element. #732

Closed shawnhyam closed 1 month ago

shawnhyam commented 1 month ago

There is existing code to do this (for .docLine comments) but it isn't triggering due to the soft breaks in the token stream between every comment. This is a necessary first step for formatting line comments.