Apply pkl formatter to codebase (#1236)

This applies the Pkl formatter to `stdlib/` and `.circleci/`
This commit is contained in:
Daniel Chao
2025-10-09 15:16:38 -07:00
committed by GitHub
parent 42dcad25c6
commit 8c5bd3b7dd
19 changed files with 729 additions and 605 deletions

View File

@@ -28,10 +28,7 @@ function escapeWithSingleQuotes(str: String): String =
else if (acc.last.last != "'" && ch != "'")
acc.replace(acc.lastIndex, acc.last.add(ch))
else
acc.add(List(ch)))
let (grouped = str.chars.fold(List(), processChar))
grouped
.map((chSeq) ->
if (chSeq == List("'")) #"\'"#
else "'\(chSeq.join(""))'")
.join("")
acc.add(List(ch))
)
let (grouped = str.chars.fold(List(), processChar))
grouped.map((chSeq) -> if (chSeq == List("'")) #"\'"# else "'\(chSeq.join(""))'").join("")