Remove comments, in prep for annotations replacing them

This commit is contained in:
Tony Garnock-Jones 2019-07-01 21:31:49 +01:00
parent e2e4d23e23
commit 0d0124f004
1 changed files with 3 additions and 8 deletions

View File

@ -194,14 +194,10 @@ possible.
### Whitespace
Whitespace is defined as any number of spaces, tabs, carriage returns,
line feeds, comments, or commas. A comment is a semicolon followed by
the unicode code points up to and including the next carriage return
or line feed.
line feeds, or commas.
ws = *(%x20 / %x09 / newline / comment / ",")
ws = *(%x20 / %x09 / newline / ",")
newline = CR / LF
comment = ";" *(WSP / nonnl) newline
nonnl = <any Unicode code point except CR or LF>
### Grammar
@ -974,8 +970,7 @@ mode that rejects empty chunks entirely.
**Whitespace.** Similarly, the textual format for `Value`s allows
arbitrary whitespace in many positions. In streaming transfer
situations, consider optional restrictions on the amount of
consecutive whitespace and comments that may appear in a serialized
`Value`.
consecutive whitespace that may appear in a serialized `Value`.
**Canonical form for cryptographic hashing and signing.** As
specified, neither the textual nor the compact binary encoding rules