summary refs log tree commit diff
path: root/src/librustdoc/html/highlight.rs
AgeCommit message (Collapse)AuthorLines
2014-03-28Used inherited mutability in lexer::Reader.Eduard Burtescu-2/+2
2014-03-17Fix rustdoc and tests.Eduard Burtescu-6/+3
2014-03-17De-@ ParseSess uses.Eduard Burtescu-3/+3
2014-03-02rustdoc: syntax highlight macro definitions, colour $... substitutions.Huon Wilson-7/+18
Macro definitions are just their raw source code, and so should be highlighted where possible. Also, $ident non-terminal substitutions are special, and so are worth of a little special treatment.
2014-02-28rustdoc: Capture all output from rustc by defaultAlex Crichton-1/+1
This helps prevent interleaving of error messages when running rustdoc tests. This has an interesting bit of shuffling with I/O handles, but other than that this is just using the APIs laid out in the previous commit. Closes #12623
2014-02-23rustdoc: Add syntax highlightingAlex Crichton-0/+174
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