aboutsummaryrefslogtreecommitdiff
path: root/printing/pptactic.ml
diff options
context:
space:
mode:
authorPierre-Marie Pédrot2014-07-27 14:58:03 +0200
committerPierre-Marie Pédrot2014-07-27 15:39:10 +0200
commitb52dca14d3ac66ecd1657a21fecd0b48751096a7 (patch)
tree193b1f22f433b24dd8038e54c2e96041acc6dd19 /printing/pptactic.ml
parent0736cd1ff1eb07c6faae43cdfbe2efd11c8470e9 (diff)
Qualified ML tactic names. The plugin name is used to discriminate
potentially conflicting tactics names from different plugins.
Diffstat (limited to 'printing/pptactic.ml')
-rw-r--r--printing/pptactic.ml7
1 files changed, 6 insertions, 1 deletions
diff --git a/printing/pptactic.ml b/printing/pptactic.ml
index 04e1a49232..381534d6da 100644
--- a/printing/pptactic.ml
+++ b/printing/pptactic.ml
@@ -260,7 +260,12 @@ let pr_extend_gen pr_gen lev s l =
let p = pr_tacarg_using_rule pr_gen (pl,l) in
if lev' > lev then surround p else p
with Not_found ->
- str "<" ++ str s ++ str ">" ++ spc() ++ pr_sequence pr_gen l ++ str" (* Generic printer *)"
+ let name = str s.mltac_plugin ++ str "::" ++ str s.mltac_tactic in
+ let args = match l with
+ | [] -> mt ()
+ | _ -> spc() ++ pr_sequence pr_gen l
+ in
+ str "<" ++ name ++ str ">" ++ args
let pr_alias_gen pr_gen lev key l =
try