Original PR: https://github.com/apple/pkl/pull/1256 Author: @bioball Created: 10/27/2025 Status: ✅ Merged Merged: 10/29/2025 Merged by: @bioball
Base: main ← Head: line-comment-in-lets
main
line-comment-in-lets
caabd7d
8e8e8d8
3 files changed (+95 additions, -5 deletions)
📝 pkl-formatter/src/main/kotlin/org/pkl/formatter/Builder.kt (+9 -5) 📝 pkl-formatter/src/test/files/FormatterSnippetTests/input/comment-interleaved.pkl (+43 -0) 📝 pkl-formatter/src/test/files/FormatterSnippetTests/output/comment-interleaved.pkl (+43 -0)
pkl-formatter/src/main/kotlin/org/pkl/formatter/Builder.kt
pkl-formatter/src/test/files/FormatterSnippetTests/input/comment-interleaved.pkl
pkl-formatter/src/test/files/FormatterSnippetTests/output/comment-interleaved.pkl
Fixes an issue where line comments preceding let bodies are not indented.
Turn this:
bar3 = let (bar = new Dynamic {}) // some coment (bar) { qux = 4 }
Into this:
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.
No dependencies set.
The note is not visible to the blocked user.
📋 Pull Request Information
Original PR: https://github.com/apple/pkl/pull/1256
Author: @bioball
Created: 10/27/2025
Status: ✅ Merged
Merged: 10/29/2025
Merged by: @bioball
Base:
main← Head:line-comment-in-lets📝 Commits (2)
caabd7dAdjust formatting of line comments in lets8e8e8d8Address PR comments📊 Changes
3 files changed (+95 additions, -5 deletions)
View changed files
📝
pkl-formatter/src/main/kotlin/org/pkl/formatter/Builder.kt(+9 -5)📝
pkl-formatter/src/test/files/FormatterSnippetTests/input/comment-interleaved.pkl(+43 -0)📝
pkl-formatter/src/test/files/FormatterSnippetTests/output/comment-interleaved.pkl(+43 -0)📄 Description
Fixes an issue where line comments preceding let bodies are not indented.
Turn this:
Into this:
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.