Skip to content

Commit 47d5c90

Browse files
committed
correct aliases for square brackets
1 parent 5f70e8f commit 47d5c90

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

src/libsyntax/parse/lexer/unicode_chars.rs

+8-6
Original file line numberDiff line numberDiff line change
@@ -132,18 +132,18 @@ const UNICODE_ARRAY: &'static [(char, &'static str, char)] = &[
132132
('ײ', "Hebrew Ligature Yiddish Double Yod", '"'),
133133
('❞', "Heavy Double Comma Quotation Mark Ornament", '"'),
134134
('❝', "Heavy Double Turned Comma Quotation Mark Ornament", '"'),
135-
('[', "Fullwidth Left Square Bracket", '('),
136135
('❨', "Medium Left Parenthesis Ornament", '('),
137-
('❲', "Light Left Tortoise Shell Bracket Ornament", '('),
138-
('〔', "Left Tortoise Shell Bracket", '('),
139136
('﴾', "Ornate Left Parenthesis", '('),
140137
('(', "Fullwidth Left Parenthesis", '('),
141-
(']', "Fullwidth Right Square Bracket", ')'),
142138
('❩', "Medium Right Parenthesis Ornament", ')'),
143-
('❳', "Light Right Tortoise Shell Bracket Ornament", ')'),
144-
('〕', "Right Tortoise Shell Bracket", ')'),
145139
('﴿', "Ornate Right Parenthesis", ')'),
146140
(')', "Fullwidth Right Parenthesis", ')'),
141+
('[', "Fullwidth Left Square Bracket", '['),
142+
('❲', "Light Left Tortoise Shell Bracket Ornament", '['),
143+
('〔', "Left Tortoise Shell Bracket", '['),
144+
(']', "Fullwidth Right Square Bracket", ']'),
145+
('❳', "Light Right Tortoise Shell Bracket Ornament", ']'),
146+
('〕', "Right Tortoise Shell Bracket", ']'),
147147
('❴', "Medium Left Curly Bracket Ornament", '{'),
148148
('❵', "Medium Right Curly Bracket Ornament", '}'),
149149
('⁎', "Low Asterisk", '*'),
@@ -202,6 +202,8 @@ const ASCII_ARRAY: &'static [(char, &'static str)] = &[
202202
('"', "Quotation Mark"),
203203
('(', "Left Parenthesis"),
204204
(')', "Right Parenthesis"),
205+
('[', "Left Square Bracket"),
206+
(']', "Right Square Bracket"),
205207
('{', "Left Curly Brace"),
206208
('}', "Right Curly Brace"),
207209
('*', "Asterisk"),

0 commit comments

Comments
 (0)