Use the std::term color constants in the codemap
Exported constants work now. Woo!
This commit is contained in:
parent
5d6fe1a533
commit
8222fa4e27
1 changed files with 3 additions and 3 deletions
|
@ -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]};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue