diff options
| author | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2016-06-28 16:05:13 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2016-06-28 16:05:13 +0200 |
| commit | be1c2b9c8c989f396323516fe2072efd6415ddaf (patch) | |
| tree | 38f17b3b880d56c88bf54817727864ef5368313f | |
| parent | cea2438834c29d516ea213d6ccd4836e6edab49d (diff) | |
| parent | b54afbee1f303391fbaa908a5610436405c3b741 (diff) | |
| download | rust-be1c2b9c8c989f396323516fe2072efd6415ddaf.tar.gz rust-be1c2b9c8c989f396323516fe2072efd6415ddaf.zip | |
Rollup merge of #34287 - durka:patch-26, r=steveklabnik
update reference for #29734
| -rw-r--r-- | src/doc/reference.md | 18 |
1 files changed, 13 insertions, 5 deletions
diff --git a/src/doc/reference.md b/src/doc/reference.md index fb8ea0f5661..59dbffd6e28 100644 --- a/src/doc/reference.md +++ b/src/doc/reference.md @@ -114,12 +114,20 @@ Non-doc comments are interpreted as a form of whitespace. ## Whitespace -Whitespace is any non-empty string containing only the following characters: - +Whitespace is any non-empty string containing only characters that have the +`Pattern_White_Space` Unicode property, namely: + +- `U+0009` (horizontal tab, `'\t'`) +- `U+000A` (line feed, `'\n'`) +- `U+000B` (vertical tab) +- `U+000C` (form feed) +- `U+000D` (carriage return, `'\r'`) - `U+0020` (space, `' '`) -- `U+0009` (tab, `'\t'`) -- `U+000A` (LF, `'\n'`) -- `U+000D` (CR, `'\r'`) +- `U+0085` (next line) +- `U+200E` (left-to-right mark) +- `U+200F` (right-to-left mark) +- `U+2028` (line separator) +- `U+2029` (paragraph separator) Rust is a "free-form" language, meaning that all forms of whitespace serve only to separate _tokens_ in the grammar, and have no semantic significance. |
