summary refs log tree commit diff
path: root/src/libstd/num
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2014-02-23 03:36:56 -0800
committerbors <bors@rust-lang.org>2014-02-23 03:36:56 -0800
commit8786405047cadcfb5ec3a2d711ca264d74843c13 (patch)
tree41f9c244921aa3a5fe2c2a71cad94bea26b99553 /src/libstd/num
parent551da0615764853153db944063ae2e271414a71b (diff)
parentad9e26dab3ae8f5d739e89167338bc97b99905b7 (diff)
downloadrust-8786405047cadcfb5ec3a2d711ca264d74843c13.tar.gz
rust-8786405047cadcfb5ec3a2d711ca264d74843c13.zip
auto merge of #12416 : alexcrichton/rust/highlight, r=huonw
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/libstd/num')
-rw-r--r--src/libstd/num/mod.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libstd/num/mod.rs b/src/libstd/num/mod.rs
index b23e42ad1c6..104543d4323 100644
--- a/src/libstd/num/mod.rs
+++ b/src/libstd/num/mod.rs
@@ -53,7 +53,7 @@ pub trait Zero: Add<Self, Self> {
     ///
     /// # Laws
     ///
-    /// ~~~ignore
+    /// ~~~notrust
     /// a + 0 = a       ∀ a ∈ Self
     /// 0 + a = a       ∀ a ∈ Self
     /// ~~~
@@ -79,7 +79,7 @@ pub trait One: Mul<Self, Self> {
     ///
     /// # Laws
     ///
-    /// ~~~ignore
+    /// ~~~notrust
     /// a * 1 = a       ∀ a ∈ Self
     /// 1 * a = a       ∀ a ∈ Self
     /// ~~~