mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-30 22:01:37 +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::RawIdent => IDENT,
|
||||||
|
|
||||||
|
rustc_lexer::TokenKind::GuardedStrPrefix => {
|
||||||
|
err = "Invalid string literal (reserved syntax)";
|
||||||
|
ERROR
|
||||||
|
},
|
||||||
|
|
||||||
rustc_lexer::TokenKind::Literal { kind, .. } => {
|
rustc_lexer::TokenKind::Literal { kind, .. } => {
|
||||||
self.extend_literal(token_text.len(), kind);
|
self.extend_literal(token_text.len(), kind);
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue