diff options
author | Regis-Gianas <yrg@pps.univ-paris-diderot.fr> | 2014-10-30 18:09:09 +0100 |
---|---|---|
committer | Regis-Gianas <yrg@pps.univ-paris-diderot.fr> | 2014-11-04 22:51:35 +0100 |
commit | 7f40ab12d4ff5ecceccbeb72555e7c4421bd9dd0 (patch) | |
tree | 83b819b82ed0d4b2b940ad7c30c5544eea15bfc8 /lib | |
parent | 1b25d0d5e710b65fdde7707bcf4ab926f4e65a87 (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.ml | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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 |