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