We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5f08c83 commit 798be50Copy full SHA for 798be50
src/tools/rust-analyzer/crates/parser/src/lexed_str.rs
@@ -178,7 +178,7 @@ impl<'a> Converter<'a> {
178
rustc_lexer::TokenKind::Ident => {
179
SyntaxKind::from_keyword(token_text).unwrap_or(IDENT)
180
}
181
- rustc_lexer::TokenKind::InvalidIdent => {
+ rustc_lexer::TokenKind::InvalidPrefix | rustc_lexer::TokenKind::InvalidIdent => {
182
err = "Ident contains invalid characters";
183
IDENT
184
0 commit comments