Don't highlight # which does not start an attribute in rustdoc Currently when we highlight some macros for rustdoc (e.g. `quote!` from https://github.com/dtolnay/quote), we get really bad syntax highlighting, because we assume that every token between a `#` character and the next `]` in the source must be an attribute. This patch improves that highlighting behavior to instead only highlight after finding the `[` token after the `#` token. (NOTE: I've only run this patch against https://github.com/nrc/rustdoc-highlight so if it doesn't build on travis that's why - I don't have a recent rustc build on this laptop) I'm guessing r? @steveklabnik |
||
|---|---|---|
| .. | ||
| static | ||
| escape.rs | ||
| format.rs | ||
| highlight.rs | ||
| item_type.rs | ||
| layout.rs | ||
| markdown.rs | ||
| render.rs | ||
| toc.rs | ||