Skip to content

Commit 5f70e8f

Browse files
committed
add confusable space characters
1 parent dbe700e commit 5f70e8f

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

src/libsyntax/parse/lexer/unicode_chars.rs

+17
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,22 @@ use errors::DiagnosticBuilder;
1616
use super::StringReader;
1717

1818
const UNICODE_ARRAY: &'static [(char, &'static str, char)] = &[
19+
(' ', "No-Break Space", ' '),
20+
(' ', "Ogham Space Mark", ' '),
21+
(' ', "En Quad", ' '),
22+
(' ', "Em Quad", ' '),
23+
(' ', "En Space", ' '),
24+
(' ', "Em Space", ' '),
25+
(' ', "Three-Per-Em Space", ' '),
26+
(' ', "Four-Per-Em Space", ' '),
27+
(' ', "Six-Per-Em Space", ' '),
28+
(' ', "Figure Space", ' '),
29+
(' ', "Punctuation Space", ' '),
30+
(' ', "Thin Space", ' '),
31+
(' ', "Hair Space", ' '),
32+
(' ', "Narrow No-Break Space", ' '),
33+
(' ', "Medium Mathematical Space", ' '),
34+
(' ', "Ideographic Space", ' '),
1935
('ߺ', "Nko Lajanyalan", '_'),
2036
('﹍', "Dashed Low Line", '_'),
2137
('﹎', "Centreline Low Line", '_'),
@@ -173,6 +189,7 @@ const UNICODE_ARRAY: &'static [(char, &'static str, char)] = &[
173189
('Ⳇ', "Coptic Capital Letter Old Coptic Esh", '/'), ];
174190

175191
const ASCII_ARRAY: &'static [(char, &'static str)] = &[
192+
(' ', "Space"),
176193
('_', "Underscore"),
177194
('-', "Minus/Hyphen"),
178195
(',', "Comma"),

0 commit comments

Comments
 (0)