udpate comment to be more accurate

This commit is contained in:
Esteban Kuber 2021-09-10 07:36:01 +00:00
parent 143f784199
commit 38979a3ba1
1 changed files with 1 additions and 2 deletions

View File

@ -413,8 +413,7 @@ impl Cursor<'_> {
let kind = Str { terminated };
Literal { kind, suffix_start }
}
// Identifier (this should be checked after other variant that can
// start as identifier).
// Identifier starting with an emoji. Only lexed for graceful error recovery.
c if !c.is_ascii() && unic_emoji_char::is_emoji(c) => {
self.fake_ident_or_unknown_prefix()
}