Skip to content

Commit

Permalink
Clarify that comments never affect the tables produced by parsers (#950)
Browse files Browse the repository at this point in the history
* Clarify comments never affect resulting tables

* Simplify parser restriction on comments

Co-authored-by: Pradyun Gedam <[email protected]>

---------

Co-authored-by: Pradyun Gedam <[email protected]>
  • Loading branch information
eksortso and pradyunsg authored Aug 6, 2024
1 parent 2431aa3 commit dc5af25
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

## unreleased

- Clarify that comments never affect the tables produced by parsers.
- Clarify Unicode and UTF-8 references.
- Relax comment parsing; most control characters are again permitted.
- Allow newline after key/values in inline tables.
Expand Down
4 changes: 4 additions & 0 deletions toml.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,10 @@ Comments may contain any Unicode code points except the following control codes
that could cause problems during editing or processing: U+0000, and U+000A to
U+000D.

Comments should be used to communicate between the human readers of a file.
Parsers must not modify keys or values, based on the presence (or contents) of a
comment.

## Key/Value Pair

The primary building block of a TOML document is the key/value pair.
Expand Down

0 comments on commit dc5af25

Please sign in to comment.