mirror of
https://github.com/apple/pkl.git
synced 2026-05-25 16:19:20 +02:00
Implement canonical formatter (#1107)
CLI commands also added: `pkl format check` and `pkl format apply`.
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
foo {
|
||||
123123123123 + 123123123123 * 123123123123 - 123123123123 / 123123123123 + 123123123123 ** 123123123123
|
||||
2
|
||||
3
|
||||
4
|
||||
}
|
||||
|
||||
bar = clazz.superclass == null || clazz.superclass.reflectee == Module || clazz.superclass.reflectee == Typed
|
||||
|
||||
baz =
|
||||
new Listing {
|
||||
1
|
||||
2
|
||||
} |> mixin1 |> mixin2
|
||||
|
||||
qux =
|
||||
(baz) {
|
||||
1
|
||||
2
|
||||
} {
|
||||
3
|
||||
4
|
||||
}
|
||||
|
||||
minus = superLoooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooongVariable - 100000
|
||||
Reference in New Issue
Block a user