mirror of
https://github.com/rust-lang/rust-analyzer
synced 2025-01-14 06:03:58 +00:00
Reserve guarded string literals (RFC 3593)
This commit is contained in:
parent
c54c798a08
commit
ec11c27e5c
1 changed files with 6 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue