From 8222fa4e278cc15f5bf1044c6b1960a4291dce31 Mon Sep 17 00:00:00 2001 From: Brian Anderson Date: Thu, 27 Oct 2011 13:52:00 -0700 Subject: [PATCH] Use the std::term color constants in the codemap Exported constants work now. Woo! --- src/comp/syntax/codemap.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/comp/syntax/codemap.rs b/src/comp/syntax/codemap.rs index e3a02da9e54f..df5c7fdd76c5 100644 --- a/src/comp/syntax/codemap.rs +++ b/src/comp/syntax/codemap.rs @@ -183,13 +183,13 @@ fn maybe_highlight_lines(sp: option::t, cm: codemap, } fn emit_warning(sp: option::t, 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, 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, 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]};