Revert "Reject raw lifetime followed by \' as well"
This reverts commit 1990f15608
.
This commit is contained in:
parent
4af7fa79a0
commit
b87e935407
1 changed files with 1 additions and 11 deletions
|
@ -707,17 +707,7 @@ impl Cursor<'_> {
|
|||
self.bump();
|
||||
self.bump();
|
||||
self.eat_while(is_id_continue);
|
||||
match self.first() {
|
||||
'\'' => {
|
||||
// Check if after skipping literal contents we've met a closing
|
||||
// single quote (which means that user attempted to create a
|
||||
// string with single quotes).
|
||||
self.bump();
|
||||
let kind = Char { terminated: true };
|
||||
return Literal { kind, suffix_start: self.pos_within_token() };
|
||||
}
|
||||
_ => return RawLifetime,
|
||||
}
|
||||
return RawLifetime;
|
||||
}
|
||||
|
||||
// Either a lifetime or a character literal with
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue