rust/src/librustdoc/html
Ariel Ben-Yehuda b1fff23f60 Rollup merge of #43918 - mystor:rustdoc-pound, r=QuietMisdreavus
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
2017-08-29 21:40:55 +00:00
..
static Rollup merge of #43979 - Jouan:Add-links-for-impls, r=GuillaumeGomez 2017-08-26 06:46:33 -07:00
escape.rs try! -> ? 2016-03-22 22:01:37 -05:00
format.rs add documentation for function pointers as a primitive 2017-08-01 09:42:12 -05:00
highlight.rs Rollup merge of #43918 - mystor:rustdoc-pound, r=QuietMisdreavus 2017-08-29 21:40:55 +00:00
item_type.rs Remove redundant 'Type' in variant names, stop reexporting. 2016-10-02 21:58:18 -04:00
layout.rs Remove jquery dependency 2017-05-02 13:54:42 +02:00
markdown.rs use field init shorthand EVERYWHERE 2017-08-15 15:29:17 -07:00
render.rs Rollup merge of #43979 - Jouan:Add-links-for-impls, r=GuillaumeGomez 2017-08-26 06:46:33 -07:00
toc.rs Rollup merge of #43891 - Fourchaux:master, r=steveklabnik 2017-08-17 10:44:07 -04:00