mirror of
https://github.com/apple/pkl.git
synced 2026-04-19 07:00:01 +02:00
Fix Map formatting (#1312)
This commit is contained in:
@@ -2,3 +2,19 @@
|
||||
foo = Map(1000, "some random string", 20000, "another random string", 30000, "yet another random string")
|
||||
|
||||
incorrect = Map("This has", 1000000, "an incorrect number", 2000000, "of parameters", 30000000, "passed to Map")
|
||||
|
||||
bar =
|
||||
Map(
|
||||
// leading
|
||||
1,
|
||||
2,
|
||||
// between
|
||||
3,
|
||||
4, // trailing
|
||||
5,
|
||||
6,
|
||||
7, // mid
|
||||
8,
|
||||
9,
|
||||
10
|
||||
)
|
||||
|
||||
@@ -12,3 +12,15 @@ incorrect =
|
||||
"of parameters", 30000000,
|
||||
"passed to Map",
|
||||
)
|
||||
|
||||
bar =
|
||||
Map(
|
||||
// leading
|
||||
1, 2,
|
||||
// between
|
||||
3, 4, // trailing
|
||||
5, 6,
|
||||
7, // mid
|
||||
8,
|
||||
9, 10,
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user