diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2014-02-20 01:14:51 -0800 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2014-02-23 00:16:23 -0800 |
| commit | ad9e26dab3ae8f5d739e89167338bc97b99905b7 (patch) | |
| tree | 69c4ba9a246b85e822b4aeaeb4ebc90e4b633553 /src/test/codegen/stack-alloc-string-slice.rs | |
| parent | 87e3b5fe7fc5e601f502a82b4bd73da5c07c59f2 (diff) | |
| download | rust-ad9e26dab3ae8f5d739e89167338bc97b99905b7.tar.gz rust-ad9e26dab3ae8f5d739e89167338bc97b99905b7.zip | |
rustdoc: Add syntax highlighting
This adds simple syntax highlighting based off libsyntax's lexer to be sure to stay up to date with rust's grammar. Some of the highlighting is a bit ad-hoc, but it definitely seems to get the job done! This currently doesn't highlight rustdoc-rendered function signatures and structs that are emitted to each page because the colors already signify what's clickable and I think we'd have to figure out a different scheme before colorizing them. This does, however, colorize all code examples and source code. Closes #11393
Diffstat (limited to 'src/test/codegen/stack-alloc-string-slice.rs')
0 files changed, 0 insertions, 0 deletions
