diff options
| author | Pierre-Marie Pédrot | 2014-11-07 18:58:18 +0100 |
|---|---|---|
| committer | Pierre-Marie Pédrot | 2014-11-10 11:53:22 +0100 |
| commit | 7f56dfb365e58f8dbb1db99faecec2a126bab0e5 (patch) | |
| tree | d2fc47201cb937cfa50aad0c71f5ad8a4bef6c6a /printing/ppvernac.ml | |
| parent | 791b6a26a23b71cc1cba364977cc825028c8ebc9 (diff) | |
Plug the dynamic tags in the Richpp mechanism.
Diffstat (limited to 'printing/ppvernac.ml')
| -rw-r--r-- | printing/ppvernac.ml | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/printing/ppvernac.ml b/printing/ppvernac.ml index 21fac8a35c..92d94bdc37 100644 --- a/printing/ppvernac.ml +++ b/printing/ppvernac.ml @@ -1272,17 +1272,15 @@ include Make (Ppconstr) (Pptactic) (struct let tag_vernac = do_not_tag end) -module Richpp (Indexer : sig - val index : Ppannotation.t -> string -end) = struct +module Richpp = struct include Make - (Ppconstr.Richpp (Indexer)) - (Pptactic.Richpp (Indexer)) + (Ppconstr.Richpp) + (Pptactic.Richpp) (struct open Ppannotation - let tag_keyword = Pp.tag (Indexer.index AKeyword) - let tag_vernac v = Pp.tag (Indexer.index (AVernac v)) + let tag_keyword s = Pp.tag (Pp.Tag.inj AKeyword tag) s + let tag_vernac v s = Pp.tag (Pp.Tag.inj (AVernac v) tag) s end) end |
