This repository has been archived by the owner on Nov 18, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 173
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Comma and colon may start on a new line. See https://tools.ietf.org/html/rfc7159#section-2. Fixes #721 Change-Id: Iae6fd9e15faf239a64b74cc3f404a704b796b570 Reviewed-on: https://cue-review.googlesource.com/c/cue/+/8564 Reviewed-by: Marcel van Lohuizen <mpvl@golang.org>
- Loading branch information
Showing
5 changed files
with
79 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -30,3 +30,6 @@ bar: [ | |
3 | ||
] | ||
|
||
frontStyle: { "key": "value" | ||
, "key2": "value2" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
Issue #721 | ||
|
||
-- in.cue -- | ||
// allow front-style commas | ||
a | ||
: { "key": "value" | ||
, "key2" | ||
: "value2" | ||
} | ||
|
||
, b: [ | ||
0 | ||
, 1 | ||
, 2 | ||
,3, | ||
4 | ||
|
||
, 5 | ||
] | ||
-- out/compile -- | ||
--- in.cue | ||
{ | ||
a: { | ||
key: "value" | ||
key2: "value2" | ||
} | ||
b: [ | ||
0, | ||
1, | ||
2, | ||
3, | ||
4, | ||
5, | ||
] | ||
} | ||
-- out/eval -- | ||
(struct){ | ||
a: (struct){ | ||
key: (string){ "value" } | ||
key2: (string){ "value2" } | ||
} | ||
b: (#list){ | ||
0: (int){ 0 } | ||
1: (int){ 1 } | ||
2: (int){ 2 } | ||
3: (int){ 3 } | ||
4: (int){ 4 } | ||
5: (int){ 5 } | ||
} | ||
} |