We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 92debb1 commit 5f08c83Copy full SHA for 5f08c83
src/librustdoc/html/highlight.rs
@@ -876,9 +876,10 @@ impl<'src> Classifier<'src> {
876
},
877
Some(c) => c,
878
879
- TokenKind::RawIdent | TokenKind::UnknownPrefix | TokenKind::InvalidIdent => {
880
- Class::Ident(self.new_span(before, text))
881
- }
+ TokenKind::RawIdent
+ | TokenKind::UnknownPrefix
+ | TokenKind::InvalidPrefix
882
+ | TokenKind::InvalidIdent => Class::Ident(self.new_span(before, text)),
883
TokenKind::Lifetime { .. } => Class::Lifetime,
884
TokenKind::Eof => panic!("Eof in advance"),
885
};
0 commit comments