Highlight assignment keyword

Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
This commit is contained in:
Leonardo de Moura 2013-08-15 20:00:12 -07:00
parent 43fa55723a
commit efbf3a434d
2 changed files with 2 additions and 2 deletions

View file

@ -403,7 +403,7 @@ struct pp_fn {
format body_sep; format body_sep;
if (B) { if (B) {
format B_f = pp(B, 0).first; format B_f = pp(B, 0).first;
body_sep = format{space(), colon(), space(), B_f, space(), format(":=")}; body_sep = format{space(), colon(), space(), B_f, space(), highlight_keyword(format(":="))};
} else { } else {
body_sep = comma(); body_sep = comma();
} }

View file

@ -11,7 +11,7 @@ namespace lean {
format expr_formatter::operator()(char const * kwd, name const & n, expr const & t, expr const & v) { format expr_formatter::operator()(char const * kwd, name const & n, expr const & t, expr const & v) {
format def = format{highlight_command(format(kwd)), space(), format(n), space(), colon(), space(), format def = format{highlight_command(format(kwd)), space(), format(n), space(), colon(), space(),
operator()(t), format(" :="), line(), operator()(v)}; operator()(t), space(), highlight_keyword(format(":=")), line(), operator()(v)};
return group(nest(def)); return group(nest(def));
} }