]> git.lizzy.rs Git - rust.git/blobdiff - compiler/rustc_parse/src/lexer/unicode_chars.rs
Rollup merge of #105784 - yanns:update_stdarch, r=Amanieu
[rust.git] / compiler / rustc_parse / src / lexer / unicode_chars.rs
index 2332216f09bf97f662d60d7295e914f912643436..34d003ccfa7b4fbde64ca4b7cf6ba25f0341cc30 100644 (file)
     ('〉', "Right Angle Bracket", ">"),
     ('》', "Right Double Angle Bracket", ">"),
     ('>', "Fullwidth Greater-Than Sign", ">"),
+    ('⩵', "Two Consecutive Equals Signs", "==")
 ];
 
 // FIXME: the lexer could be used to turn the ASCII version of unicode homoglyphs, instead of
     ("+", "Plus Sign", Some(token::BinOp(token::Plus))),
     ("<", "Less-Than Sign", Some(token::Lt)),
     ("=", "Equals Sign", Some(token::Eq)),
+    ("==", "Double Equals Sign", Some(token::EqEq)),
     (">", "Greater-Than Sign", Some(token::Gt)),
     // FIXME: Literals are already lexed by this point, so we can't recover gracefully just by
     // spitting the correct token out.