Skip to content

Commit 7f27b63

Browse files
committed
---
yaml --- r: 5982 b: refs/heads/master c: 8222fa4 h: refs/heads/master v: v3
1 parent 00b93f8 commit 7f27b63

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
---
2-
refs/heads/master: 5d6fe1a533db9ec7fc5c640697b289389dc62221
2+
refs/heads/master: 8222fa4e278cc15f5bf1044c6b1960a4291dce31

trunk/src/comp/syntax/codemap.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -183,13 +183,13 @@ fn maybe_highlight_lines(sp: option::t<span>, cm: codemap,
183183
}
184184

185185
fn emit_warning(sp: option::t<span>, msg: str, cm: codemap) {
186-
emit_diagnostic(sp, msg, "warning", 11u8, cm);
186+
emit_diagnostic(sp, msg, "warning", term::color_bright_yellow, cm);
187187
}
188188
fn emit_error(sp: option::t<span>, msg: str, cm: codemap) {
189-
emit_diagnostic(sp, msg, "error", 9u8, cm);
189+
emit_diagnostic(sp, msg, "error", term::color_bright_red, cm);
190190
}
191191
fn emit_note(sp: option::t<span>, msg: str, cm: codemap) {
192-
emit_diagnostic(sp, msg, "note", 10u8, cm);
192+
emit_diagnostic(sp, msg, "note", term::color_bright_green, cm);
193193
}
194194

195195
type file_lines = {name: str, lines: [uint]};

0 commit comments

Comments
 (0)