about summary refs log tree commit diff
path: root/src/libsyntax/parse
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2015-11-18 10:58:04 +0000
committerbors <bors@rust-lang.org>2015-11-18 10:58:04 +0000
commit28f6b8897845f4590c50757b30766fb792d2cdb7 (patch)
tree979d86b14e310c573397fc7358a25eb6262764cd /src/libsyntax/parse
parent1715f1cf7f345407f6929f0b028c4c8a1842fe9c (diff)
parent41f7f0c341aad4c3f197bf8b8f1e3c55da493daf (diff)
downloadrust-28f6b8897845f4590c50757b30766fb792d2cdb7.tar.gz
rust-28f6b8897845f4590c50757b30766fb792d2cdb7.zip
Auto merge of #29902 - huonw:smart-quotes, r=alexcrichton
cc https://github.com/rust-lang/rust/pull/29837#issuecomment-157540449
Diffstat (limited to 'src/libsyntax/parse')
-rw-r--r--src/libsyntax/parse/lexer/unicode_chars.rs17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/libsyntax/parse/lexer/unicode_chars.rs b/src/libsyntax/parse/lexer/unicode_chars.rs
index dbec1a8851c..a2f37426210 100644
--- a/src/libsyntax/parse/lexer/unicode_chars.rs
+++ b/src/libsyntax/parse/lexer/unicode_chars.rs
@@ -91,6 +91,22 @@ const UNICODE_ARRAY: &'static [(char, &'static str, char)] = &[
     ('י', "Hebrew Letter Yod", '\''),
     ('ߴ', "Nko High Tone Apostrophe", '\''),
     ('ߵ', "Nko Low Tone Apostrophe", '\''),
+    ('"', "Fullwidth Quotation Mark", '"'),
+    ('“', "Left Double Quotation Mark", '"'),
+    ('”', "Right Double Quotation Mark", '"'),
+    ('‟', "Double High-Reversed-9 Quotation Mark", '"'),
+    ('″', "Double Prime", '"'),
+    ('‶', "Reversed Double Prime", '"'),
+    ('〃', "Ditto Mark", '"'),
+    ('״', "Hebrew Punctuation Gershayim", '"'),
+    ('˝', "Double Acute Accent", '"'),
+    ('ʺ', "Modifier Letter Double Prime", '"'),
+    ('˶', "Modifier Letter Middle Double Acute Accent", '"'),
+    ('˵', "Modifier Letter Middle Double Grave Accent", '"'),
+    ('ˮ', "Modifier Letter Double Apostrophe", '"'),
+    ('ײ', "Hebrew Ligature Yiddish Double Yod", '"'),
+    ('❞', "Heavy Double Comma Quotation Mark Ornament", '"'),
+    ('❝', "Heavy Double Turned Comma Quotation Mark Ornament", '"'),
     ('[', "Fullwidth Left Square Bracket", '('),
     ('❨', "Medium Left Parenthesis Ornament", '('),
     ('❲', "Light Left Tortoise Shell Bracket Ornament", '('),
@@ -149,6 +165,7 @@ const ASCII_ARRAY: &'static [(char, &'static str)] = &[
     ('?', "Question Mark"),
     ('.', "Period"),
     ('\'', "Single Quote"),
+    ('"', "Quotation Mark"),
     ('(', "Left Parenthesis"),
     (')', "Right Parenthesis"),
     ('{', "Left Curly Brace"),