mirror of
https://github.com/apple/pkl.git
synced 2026-01-11 14:20:35 +01:00
[PR #1256] [MERGED] Adjust formatting of line comments in lets #973
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 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.