1
Fork 0

Revert the lexing of c_str_literals

This commit is contained in:
León Orell Valerian Liehr 2023-07-04 19:40:48 +02:00
parent 4dbc7e3092
commit c6643b50ea
No known key found for this signature in database
GPG key ID: D17A07215F68E713
9 changed files with 96 additions and 23 deletions

View file

@ -367,13 +367,6 @@ impl Cursor<'_> {
Some(|terminated| Byte { terminated }),
),
// c-string literal, raw c-string literal or identifier.
'c' => self.c_or_byte_string(
|terminated| CStr { terminated },
|n_hashes| RawCStr { n_hashes },
None,
),
// Identifier (this should be checked after other variant that can
// start as identifier).
c if is_id_start(c) => self.ident_or_unknown_prefix(),