Skip to content

Commit 496081c

Browse files
committed
add more confusable CJK square bracket aliases
1 parent 47d5c90 commit 496081c

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

src/libsyntax/parse/lexer/unicode_chars.rs

+12
Original file line numberDiff line numberDiff line change
@@ -140,10 +140,22 @@ const UNICODE_ARRAY: &'static [(char, &'static str, char)] = &[
140140
(')', "Fullwidth Right Parenthesis", ')'),
141141
('[', "Fullwidth Left Square Bracket", '['),
142142
('❲', "Light Left Tortoise Shell Bracket Ornament", '['),
143+
('「', "Left Corner Bracket", '['),
144+
('『', "Left White Corner Bracket", '['),
145+
('【', "Left Black Lenticular Bracket", '['),
143146
('〔', "Left Tortoise Shell Bracket", '['),
147+
('〖', "Left White Lenticular Bracket", '['),
148+
('〘', "Left White Tortoise Shell Bracket", '['),
149+
('〚', "Left White Square Bracket", '['),
144150
(']', "Fullwidth Right Square Bracket", ']'),
145151
('❳', "Light Right Tortoise Shell Bracket Ornament", ']'),
152+
('」', "Right Corner Bracket", ']'),
153+
('』', "Right White Corner Bracket", ']'),
154+
('】', "Right Black Lenticular Bracket", ']'),
146155
('〕', "Right Tortoise Shell Bracket", ']'),
156+
('〗', "Right White Lenticular Bracket", ']'),
157+
('〙', "Right White Tortoise Shell Bracket", ']'),
158+
('〛', "Right White Square Bracket", ']'),
147159
('❴', "Medium Left Curly Bracket Ornament", '{'),
148160
('❵', "Medium Right Curly Bracket Ornament", '}'),
149161
('⁎', "Low Asterisk", '*'),

0 commit comments

Comments
 (0)