Skip to content

Commit

Permalink
include list of characters
Browse files Browse the repository at this point in the history
  • Loading branch information
durka committed Jun 15, 2016
1 parent 523dbfc commit b54afbe
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion src/doc/reference.md
Expand Up @@ -115,7 +115,19 @@ Non-doc comments are interpreted as a form of whitespace.
## Whitespace

Whitespace is any non-empty string containing only characters that have the
`Pattern_White_Space` Unicode property.
`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+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.
Expand Down

0 comments on commit b54afbe

Please sign in to comment.