mirror of
https://github.com/apple/pkl.git
synced 2026-07-18 19:11:15 +02:00
Implement canonical formatter (#1107)
CLI commands also added: `pkl format check` and `pkl format apply`.
This commit is contained in:
+33
@@ -0,0 +1,33 @@
|
||||
foo =
|
||||
"""
|
||||
asd \(new {
|
||||
bar = 1
|
||||
}) asd
|
||||
"""
|
||||
|
||||
bar =
|
||||
"""
|
||||
line 1
|
||||
line 2
|
||||
line3
|
||||
"""
|
||||
|
||||
baz =
|
||||
"""
|
||||
\n
|
||||
\(bar)
|
||||
line
|
||||
\u{123}
|
||||
"""
|
||||
|
||||
// remove unneeded spaces
|
||||
qux =
|
||||
"""
|
||||
foo
|
||||
|
||||
bar
|
||||
|
||||
baz
|
||||
|
||||
\(foo)
|
||||
"""
|
||||
Reference in New Issue
Block a user