Account for confusable codepoints when recovering emoji identifiers

This commit is contained in:
Esteban Kuber
2021-09-09 17:05:03 +00:00
parent 4489aeb907
commit 21224e6ee0
4 changed files with 30 additions and 7 deletions

View File

@@ -7,7 +7,7 @@ use rustc_errors::{Applicability, DiagnosticBuilder};
use rustc_span::{symbol::kw, BytePos, Pos, Span};
#[rustfmt::skip] // for line breaks
const UNICODE_ARRAY: &[(char, &str, char)] = &[
pub(crate) const UNICODE_ARRAY: &[(char, &str, char)] = &[
('', "Line Separator", ' '),
('', "Paragraph Separator", ' '),
('', "Ogham Space mark", ' '),