Skip to content
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

## unreleased

Nothing.
* Clarify that comments with newlines are allowed before commas in arrays.

## 1.0.0-rc.2 / 2020-08-09

Expand Down
4 changes: 2 additions & 2 deletions toml.abnf
Original file line number Diff line number Diff line change
Expand Up @@ -196,8 +196,8 @@ array = array-open [ array-values ] ws-comment-newline array-close
array-open = %x5B ; [
array-close = %x5D ; ]

array-values = ws-comment-newline val ws array-sep array-values
array-values =/ ws-comment-newline val ws [ array-sep ]
array-values = ws-comment-newline val ws-comment-newline array-sep array-values
array-values =/ ws-comment-newline val ws-comment-newline [ array-sep ]

array-sep = %x2C ; , Comma

Expand Down
4 changes: 2 additions & 2 deletions toml.md
Original file line number Diff line number Diff line change
Expand Up @@ -614,8 +614,8 @@ contributors = [
```

Arrays can span multiple lines. A terminating comma (also called trailing comma)
is ok after the last value of the array. There can be an arbitrary number of
newlines and comments before a value and before the closing bracket.
is permitted after the last value of the array. Any number of newlines and
comments may precede values, commas, and the closing bracket.

```toml
integers2 = [
Expand Down