Skip to content

Commit d472b69

Browse files
committed
Document the null-char/null-byte escape in the reference
It appears in the examples, but is not covered by any of the cases in the prose description.
1 parent f6f050d commit d472b69

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/doc/reference.md

+4
Original file line numberDiff line numberDiff line change
@@ -236,6 +236,8 @@ following forms:
236236
* A _whitespace escape_ is one of the characters `U+006E` (`n`), `U+0072`
237237
(`r`), or `U+0074` (`t`), denoting the Unicode values `U+000A` (LF),
238238
`U+000D` (CR) or `U+0009` (HT) respectively.
239+
* The _null escape_ is the character `U+0030` (`0`) and denotes the Unicode
240+
value `U+0000` (NUL).
239241
* The _backslash escape_ is the character `U+005C` (`\`) which must be
240242
escaped in order to denote *itself*.
241243

@@ -297,6 +299,8 @@ following forms:
297299
* A _whitespace escape_ is one of the characters `U+006E` (`n`), `U+0072`
298300
(`r`), or `U+0074` (`t`), denoting the bytes values `0x0A` (ASCII LF),
299301
`0x0D` (ASCII CR) or `0x09` (ASCII HT) respectively.
302+
* The _null escape_ is the character `U+0030` (`0`) and denotes the byte
303+
value `0x00` (ASCII NUL).
300304
* The _backslash escape_ is the character `U+005C` (`\`) which must be
301305
escaped in order to denote its ASCII encoding `0x5C`.
302306

0 commit comments

Comments
 (0)