Skip to content

Commit b54afbe

Browse files
authored
include list of characters
1 parent 523dbfc commit b54afbe

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

src/doc/reference.md

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,19 @@ Non-doc comments are interpreted as a form of whitespace.
115115
## Whitespace
116116

117117
Whitespace is any non-empty string containing only characters that have the
118-
`Pattern_White_Space` Unicode property.
118+
`Pattern_White_Space` Unicode property, namely:
119+
120+
- `U+0009` (horizontal tab, `'\t'`)
121+
- `U+000A` (line feed, `'\n'`)
122+
- `U+000B` (vertical tab)
123+
- `U+000C` (form feed)
124+
- `U+000D` (carriage return, `'\r'`)
125+
- `U+0020` (space, `' '`)
126+
- `U+0085` (next line)
127+
- `U+200E` (left-to-right mark)
128+
- `U+200F` (right-to-left mark)
129+
- `U+2028` (line separator)
130+
- `U+2029` (paragraph separator)
119131

120132
Rust is a "free-form" language, meaning that all forms of whitespace serve only
121133
to separate _tokens_ in the grammar, and have no semantic significance.

0 commit comments

Comments
 (0)