aboutsummaryrefslogtreecommitdiffhomepage
path: root/printing/ppvernac.ml
diff options
context:
space:
mode:
authorGravatar Yann Régis-Gianas <yrg@pps.univ-paris-diderot.fr>2014-11-05 08:45:40 +0100
committerGravatar Yann Régis-Gianas <yrg@pps.univ-paris-diderot.fr>2014-11-05 14:31:41 +0100
commitb6d282b96e332643c1ff6ae63d19602f9b6f5a73 (patch)
treec36c9615f6e624d1007b8e9e647ed0cb26422cf0 /printing/ppvernac.ml
parent683bd2db32025b38ac0d9a884bd4a3965daf21f8 (diff)
printing/Ppvernac: Fix missing keyword tagging on definition introducers.
Diffstat (limited to 'printing/ppvernac.ml')
-rw-r--r--printing/ppvernac.ml12
1 files changed, 7 insertions, 5 deletions
diff --git a/printing/ppvernac.ml b/printing/ppvernac.ml
index 880d0640d..463654a0d 100644
--- a/printing/ppvernac.ml
+++ b/printing/ppvernac.ml
@@ -696,7 +696,7 @@ module Make
| VernacDefinition (d,id,b) -> (* A verifier... *)
let pr_def_token (l,dk) =
let l = match l with Some x -> x | None -> Decl_kinds.Global in
- str (Kindops.string_of_definition_kind (l,false,dk))
+ keyword (Kindops.string_of_definition_kind (l,false,dk))
in
let pr_reduce = function
| None -> mt()
@@ -716,10 +716,12 @@ module Make
(pr_binders_arg bl, str" :" ++ pr_spc_lconstr t, None) in
let (binds,typ,c) = pr_def_body b in
return (
- hov 2 (pr_def_token d ++ spc() ++ pr_lident id ++ binds ++ typ ++
- (match c with
- | None -> mt()
- | Some cc -> str" :=" ++ spc() ++ cc))
+ hov 2 (
+ pr_def_token d ++ spc()
+ ++ pr_lident id ++ binds ++ typ
+ ++ (match c with
+ | None -> mt()
+ | Some cc -> str" :=" ++ spc() ++ cc))
)
| VernacStartTheoremProof (ki,l,_) ->