diff options
| author | Brian Anderson <banderson@mozilla.com> | 2011-10-27 13:52:00 -0700 |
|---|---|---|
| committer | Brian Anderson <banderson@mozilla.com> | 2011-10-27 13:52:00 -0700 |
| commit | 8222fa4e278cc15f5bf1044c6b1960a4291dce31 (patch) | |
| tree | 8881fe785c6f05d8b927457c4bba034191d21b00 /src/comp/syntax | |
| parent | 5d6fe1a533db9ec7fc5c640697b289389dc62221 (diff) | |
| download | rust-8222fa4e278cc15f5bf1044c6b1960a4291dce31.tar.gz rust-8222fa4e278cc15f5bf1044c6b1960a4291dce31.zip | |
Use the std::term color constants in the codemap
Exported constants work now. Woo!
Diffstat (limited to 'src/comp/syntax')
| -rw-r--r-- | src/comp/syntax/codemap.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/comp/syntax/codemap.rs b/src/comp/syntax/codemap.rs index e3a02da9e54..df5c7fdd76c 100644 --- a/src/comp/syntax/codemap.rs +++ b/src/comp/syntax/codemap.rs @@ -183,13 +183,13 @@ fn maybe_highlight_lines(sp: option::t<span>, cm: codemap, } fn emit_warning(sp: option::t<span>, msg: str, cm: codemap) { - emit_diagnostic(sp, msg, "warning", 11u8, cm); + emit_diagnostic(sp, msg, "warning", term::color_bright_yellow, cm); } fn emit_error(sp: option::t<span>, msg: str, cm: codemap) { - emit_diagnostic(sp, msg, "error", 9u8, cm); + emit_diagnostic(sp, msg, "error", term::color_bright_red, cm); } fn emit_note(sp: option::t<span>, msg: str, cm: codemap) { - emit_diagnostic(sp, msg, "note", 10u8, cm); + emit_diagnostic(sp, msg, "note", term::color_bright_green, cm); } type file_lines = {name: str, lines: [uint]}; |
