diff options
| author | Pierre-Marie Pédrot | 2014-11-17 10:43:33 +0100 |
|---|---|---|
| committer | Pierre-Marie Pédrot | 2014-11-17 10:49:34 +0100 |
| commit | 462b733b2df486dbf123638418159ef8c4ee93a2 (patch) | |
| tree | a86259633c048fb6543349eb311cefff753deb59 /printing/ppconstr.ml | |
| parent | 659ca3902a144259ec449473e95df1b3eda1b6de (diff) | |
Default styles for printing tags.
They should be rather sensible, but de gustibus & coloribus...
Diffstat (limited to 'printing/ppconstr.ml')
| -rw-r--r-- | printing/ppconstr.ml | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/printing/ppconstr.ml b/printing/ppconstr.ml index fd46765300..69fc308641 100644 --- a/printing/ppconstr.ml +++ b/printing/ppconstr.ml @@ -811,9 +811,17 @@ end module Tag = struct - let keyword = Ppstyle.make ["constr"; "keyword"] - let evar = Ppstyle.make ["constr"; "evar"] - let univ = Ppstyle.make ["constr"; "type"] + let keyword = + let style = Terminal.make ~bold:true () in + Ppstyle.make ~style ["constr"; "keyword"] + + let evar = + let style = Terminal.make ~bold:true ~fg_color:`BLUE () in + Ppstyle.make ~style ["constr"; "evar"] + + let univ = + let style = Terminal.make ~bold:true ~fg_color:`YELLOW () in + Ppstyle.make ~style ["constr"; "type"] end let do_not_tag _ x = x |
