File tree Expand file tree Collapse file tree 3 files changed +5
-6
lines changed Expand file tree Collapse file tree 3 files changed +5
-6
lines changed Original file line number Diff line number Diff line change 4
4
5
5
- Clarify that comments never affect the tables produced by parsers.
6
6
- Clarify Unicode and UTF-8 references.
7
- - Relax comment parsing; most control characters are again permitted.
8
7
- Allow newline after key/values in inline tables.
9
8
- Allow trailing comma in inline tables.
10
9
- Clarify where and how dotted keys define tables.
Original file line number Diff line number Diff line change @@ -37,10 +37,11 @@ newline =/ %x0D.0A ; CRLF
37
37
38
38
; ; Comment
39
39
40
- comment = comment-start-symbol * allowed-comment-char
41
40
comment-start-symbol = %x 23 ; #
42
- allowed-comment-char = %x 01 -09 / %x 0E -7F / non-ascii
43
41
non-ascii = %x 80 -D7FF / %x E000 -10FFFF
42
+ non-eol = %x 09 / %x 20 -7E / non-ascii
43
+
44
+ comment = comment-start-symbol * non-eol
44
45
45
46
; ; Key-Value pairs
46
47
Original file line number Diff line number Diff line change @@ -57,9 +57,8 @@ key = "value" # This is a comment at the end of a line
57
57
another = " # This is not a comment"
58
58
```
59
59
60
- Comments may contain any Unicode code points except the following control codes
61
- that could cause problems during editing or processing: U+0000, and U+000A to
62
- U+000D.
60
+ Control characters other than tab (U+0000 to U+0008, U+000A to U+001F, U+007F)
61
+ are not permitted in comments.
63
62
64
63
Comments should be used to communicate between the human readers of a file.
65
64
Parsers must not modify keys or values, based on the presence (or contents) of a
You can’t perform that action at this time.
0 commit comments