Skip to content

Commit 5f08c83

Browse files
committed
fix rustdoc
1 parent 92debb1 commit 5f08c83

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/librustdoc/html/highlight.rs

+4-3
Original file line numberDiff line numberDiff line change
@@ -876,9 +876,10 @@ impl<'src> Classifier<'src> {
876876
},
877877
Some(c) => c,
878878
},
879-
TokenKind::RawIdent | TokenKind::UnknownPrefix | TokenKind::InvalidIdent => {
880-
Class::Ident(self.new_span(before, text))
881-
}
879+
TokenKind::RawIdent
880+
| TokenKind::UnknownPrefix
881+
| TokenKind::InvalidPrefix
882+
| TokenKind::InvalidIdent => Class::Ident(self.new_span(before, text)),
882883
TokenKind::Lifetime { .. } => Class::Lifetime,
883884
TokenKind::Eof => panic!("Eof in advance"),
884885
};

0 commit comments

Comments
 (0)