Highlight assignment keyword
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
This commit is contained in:
parent
43fa55723a
commit
efbf3a434d
2 changed files with 2 additions and 2 deletions
|
@ -403,7 +403,7 @@ struct pp_fn {
|
|||
format body_sep;
|
||||
if (B) {
|
||||
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 {
|
||||
body_sep = comma();
|
||||
}
|
||||
|
|
|
@ -11,7 +11,7 @@ namespace lean {
|
|||
|
||||
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(),
|
||||
operator()(t), format(" :="), line(), operator()(v)};
|
||||
operator()(t), space(), highlight_keyword(format(":=")), line(), operator()(v)};
|
||||
return group(nest(def));
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue