diff options
| author | Ariel Ben-Yehuda <arielb1@mail.tau.ac.il> | 2017-08-29 21:40:55 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-08-29 21:40:55 +0000 |
| commit | b1fff23f602eaab2953d933836a9406d61d3be0e (patch) | |
| tree | e785294a83200f0e1ff214fd838c5394c181ce85 /src/rustllvm/RustWrapper.cpp | |
| parent | 64a21f875f37ab0184a79e44e311f25e8e99dd86 (diff) | |
| parent | 2f19383742cea0c53bcd3d8775220059a1bfa883 (diff) | |
| download | rust-b1fff23f602eaab2953d933836a9406d61d3be0e.tar.gz rust-b1fff23f602eaab2953d933836a9406d61d3be0e.zip | |
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
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
