diff options
| author | Wang Xuerui <idontknw.wang@gmail.com> | 2016-04-21 20:17:51 +0800 |
|---|---|---|
| committer | Wang Xuerui <idontknw.wang@gmail.com> | 2016-04-21 20:17:51 +0800 |
| commit | 496081c5c7bdf3afc2e444c166ee875b4f9041e5 (patch) | |
| tree | 2c7b366b5e89333879d6a90a5171980e8f5bc6fb /src/libsyntax/parse | |
| parent | 47d5c90fbe7d0ccc30a1ab415355755ff104bc9a (diff) | |
| download | rust-496081c5c7bdf3afc2e444c166ee875b4f9041e5.tar.gz rust-496081c5c7bdf3afc2e444c166ee875b4f9041e5.zip | |
add more confusable CJK square bracket aliases
Diffstat (limited to 'src/libsyntax/parse')
| -rw-r--r-- | src/libsyntax/parse/lexer/unicode_chars.rs | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/libsyntax/parse/lexer/unicode_chars.rs b/src/libsyntax/parse/lexer/unicode_chars.rs index 59133d62d52..d337c78bee8 100644 --- a/src/libsyntax/parse/lexer/unicode_chars.rs +++ b/src/libsyntax/parse/lexer/unicode_chars.rs @@ -140,10 +140,22 @@ const UNICODE_ARRAY: &'static [(char, &'static str, char)] = &[ (')', "Fullwidth Right Parenthesis", ')'), ('[', "Fullwidth Left Square Bracket", '['), ('❲', "Light Left Tortoise Shell Bracket Ornament", '['), + ('「', "Left Corner Bracket", '['), + ('『', "Left White Corner Bracket", '['), + ('【', "Left Black Lenticular Bracket", '['), ('〔', "Left Tortoise Shell Bracket", '['), + ('〖', "Left White Lenticular Bracket", '['), + ('〘', "Left White Tortoise Shell Bracket", '['), + ('〚', "Left White Square Bracket", '['), (']', "Fullwidth Right Square Bracket", ']'), ('❳', "Light Right Tortoise Shell Bracket Ornament", ']'), + ('」', "Right Corner Bracket", ']'), + ('』', "Right White Corner Bracket", ']'), + ('】', "Right Black Lenticular Bracket", ']'), ('〕', "Right Tortoise Shell Bracket", ']'), + ('〗', "Right White Lenticular Bracket", ']'), + ('〙', "Right White Tortoise Shell Bracket", ']'), + ('〛', "Right White Square Bracket", ']'), ('❴', "Medium Left Curly Bracket Ornament", '{'), ('❵', "Medium Right Curly Bracket Ornament", '}'), ('⁎', "Low Asterisk", '*'), |
