File tree 1 file changed +13
-5
lines changed
1 file changed +13
-5
lines changed Original file line number Diff line number Diff line change @@ -114,12 +114,20 @@ Non-doc comments are interpreted as a form of whitespace.
114
114
115
115
## Whitespace
116
116
117
- Whitespace is any non-empty string containing only the following characters:
118
-
117
+ Whitespace is any non-empty string containing only characters that have the
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' ` )
119
125
- ` U+0020 ` (space, ` ' ' ` )
120
- - ` U+0009 ` (tab, ` '\t' ` )
121
- - ` U+000A ` (LF, ` '\n' ` )
122
- - ` U+000D ` (CR, ` '\r' ` )
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)
123
131
124
132
Rust is a "free-form" language, meaning that all forms of whitespace serve only
125
133
to separate _ tokens_ in the grammar, and have no semantic significance.
You can’t perform that action at this time.
0 commit comments