aboutsummaryrefslogtreecommitdiffhomepage
path: root/lib
diff options
context:
space:
mode:
authorGravatar Regis-Gianas <yrg@pps.univ-paris-diderot.fr>2014-10-30 18:09:09 +0100
committerGravatar Regis-Gianas <yrg@pps.univ-paris-diderot.fr>2014-11-04 22:51:35 +0100
commit7f40ab12d4ff5ecceccbeb72555e7c4421bd9dd0 (patch)
tree83b819b82ed0d4b2b940ad7c30c5544eea15bfc8 /lib
parent1b25d0d5e710b65fdde7707bcf4ab926f4e65a87 (diff)
lib/Pp.ppcmd_token:
Extend this type with Ppcmd_open_tag and Ppcmd_close_tag. lib/Pp.ppcmd_pp_dirs: Handle these tags with a straightforward translation to corresponding Format commands.
Diffstat (limited to 'lib')
-rw-r--r--lib/pp.ml6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/pp.ml b/lib/pp.ml
index f595024e0..4ef7b00be 100644
--- a/lib/pp.ml
+++ b/lib/pp.ml
@@ -95,6 +95,8 @@ type 'a ppcmd_token =
| Ppcmd_close_box
| Ppcmd_close_tbox
| Ppcmd_comment of int
+ | Ppcmd_open_tag of string
+ | Ppcmd_close_tag
type 'a ppdir_token =
| Ppdir_ppcmds of 'a ppcmd_token Glue.t
@@ -283,6 +285,10 @@ let pp_dirs ft =
(* Format.pp_open_hvbox ft 0;*)
List.iter (pr_com ft) coms(*;
Format.pp_close_box ft ()*)
+ | Ppcmd_open_tag name ->
+ Format.pp_open_tag ft name
+ | Ppcmd_close_tag ->
+ Format.pp_close_tag ft ()
in
let pp_dir = function
| Ppdir_ppcmds cmdstream -> Glue.iter pp_cmd cmdstream