File tree Expand file tree Collapse file tree 1 file changed +10
-12
lines changed Expand file tree Collapse file tree 1 file changed +10
-12
lines changed Original file line number Diff line number Diff line change @@ -331,24 +331,22 @@ pub fn is_whitespace(c: char) -> bool {
331
331
332
332
matches ! (
333
333
c,
334
- // Usual ASCII suspects
335
- '\u{0009}' // \t
336
- | '\u{000A}' // \n
334
+ // End-of-line characters
335
+ | '\u{000A}' // line feed (\n)
337
336
| '\u{000B}' // vertical tab
338
337
| '\u{000C}' // form feed
339
- | '\u{000D}' // \r
340
- | '\u{0020}' // space
341
-
342
- // NEXT LINE from latin1
343
- | '\u{0085}'
338
+ | '\u{000D}' // carriage return (\r)
339
+ | '\u{0085}' // next line (from latin1)
340
+ | '\u{2028}' // LINE SEPARATOR
341
+ | '\u{2029}' // PARAGRAPH SEPARATOR
344
342
345
- // Bidi markers
343
+ // `Default_Ignorable_Code_Point` characters
346
344
| '\u{200E}' // LEFT-TO-RIGHT MARK
347
345
| '\u{200F}' // RIGHT-TO-LEFT MARK
348
346
349
- // Dedicated whitespace characters from Unicode
350
- | '\u{2028 }' // LINE SEPARATOR
351
- | '\u{2029 }' // PARAGRAPH SEPARATOR
347
+ // Horizontal space characters
348
+ | '\u{0009 }' // tab (\t)
349
+ | '\u{0020 }' // space
352
350
)
353
351
}
354
352
You can’t perform that action at this time.
0 commit comments