Skip to content

Commit 28f6b88

Browse files
committed
Auto merge of #29902 - huonw:smart-quotes, r=alexcrichton
cc #29837 (comment)
2 parents 1715f1c + 41f7f0c commit 28f6b88

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
@@ -91,6 +91,22 @@ const UNICODE_ARRAY: &'static [(char, &'static str, char)] = &[
9191
('י', "Hebrew Letter Yod", '\''),
9292
('ߴ', "Nko High Tone Apostrophe", '\''),
9393
('ߵ', "Nko Low Tone Apostrophe", '\''),
94+
('"', "Fullwidth Quotation Mark", '"'),
95+
('“', "Left Double Quotation Mark", '"'),
96+
('”', "Right Double Quotation Mark", '"'),
97+
('‟', "Double High-Reversed-9 Quotation Mark", '"'),
98+
('″', "Double Prime", '"'),
99+
('‶', "Reversed Double Prime", '"'),
100+
('〃', "Ditto Mark", '"'),
101+
('״', "Hebrew Punctuation Gershayim", '"'),
102+
('˝', "Double Acute Accent", '"'),
103+
('ʺ', "Modifier Letter Double Prime", '"'),
104+
('˶', "Modifier Letter Middle Double Acute Accent", '"'),
105+
('˵', "Modifier Letter Middle Double Grave Accent", '"'),
106+
('ˮ', "Modifier Letter Double Apostrophe", '"'),
107+
('ײ', "Hebrew Ligature Yiddish Double Yod", '"'),
108+
('❞', "Heavy Double Comma Quotation Mark Ornament", '"'),
109+
('❝', "Heavy Double Turned Comma Quotation Mark Ornament", '"'),
94110
('[', "Fullwidth Left Square Bracket", '('),
95111
('❨', "Medium Left Parenthesis Ornament", '('),
96112
('❲', "Light Left Tortoise Shell Bracket Ornament", '('),
@@ -149,6 +165,7 @@ const ASCII_ARRAY: &'static [(char, &'static str)] = &[
149165
('?', "Question Mark"),
150166
('.', "Period"),
151167
('\'', "Single Quote"),
168+
('"', "Quotation Mark"),
152169
('(', "Left Parenthesis"),
153170
(')', "Right Parenthesis"),
154171
('{', "Left Curly Brace"),

0 commit comments

Comments
 (0)