Skip to content

Commit

Permalink
Merge from rust-lang/rust
Browse files Browse the repository at this point in the history
  • Loading branch information
lnicola committed Oct 17, 2024
2 parents f3fad2a + 848af21 commit 7ae97c1
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions crates/parser/src/lexed_str.rs
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,12 @@ impl<'a> Converter<'a> {
}

rustc_lexer::TokenKind::RawIdent => IDENT,

rustc_lexer::TokenKind::GuardedStrPrefix => {
err = "Invalid string literal (reserved syntax)";
ERROR
},

rustc_lexer::TokenKind::Literal { kind, .. } => {
self.extend_literal(token_text.len(), kind);
return;
Expand Down

0 comments on commit 7ae97c1

Please sign in to comment.