Skip to content

Commit

Permalink
Fixed a bug about pretty-printing of lazy/assert/new
Browse files Browse the repository at this point in the history
git-svn-id: http://caml.inria.fr/svn/ocaml/version/3.09@7297 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
  • Loading branch information
Michel Mauny authored and Michel Mauny committed Jan 3, 2006
1 parent 180c05a commit 1ea8f94
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 3 additions & 1 deletion camlp4/etc/pr_o.ml
Original file line number Diff line number Diff line change
Expand Up @@ -1407,7 +1407,9 @@ pr_expr.pr_levels :=
<:expr< for $_$ = $_$ $to:_$ $_$ do { $list:_$ } >> |
<:expr< while $_$ do { $list:_$ } >> | <:expr< ($list: _$) >> |
<:expr< let $opt:_$ $list:_$ in $_$ >> |
<:expr< let module $_$ = $_$ in $_$ >> as e ->
<:expr< let module $_$ = $_$ in $_$ >> |
<:expr< new $list:_$ >> |
<:expr< assert $_$ >> | <:expr< lazy $_$ >> as e ->
fun curr next dg k ->
[: `S LO "("; `expr e "" [: `HVbox [: `S RO ")"; k :] :] :]
| e -> fun curr next _ k -> [: `not_impl "expr" e :] ]}];
Expand Down
3 changes: 2 additions & 1 deletion camlp4/etc/pr_r.ml
Original file line number Diff line number Diff line change
Expand Up @@ -1315,7 +1315,8 @@ pr_expr.pr_levels :=
<:expr< while $_$ do { $list:_$ } >> |
<:expr< let $opt:_$ $list:_$ in $_$ >> |
<:expr< let module $_$ = $_$ in $_$ >> |
<:expr< new $list:_$ >> as e ->
<:expr< new $list:_$ >> |
<:expr< assert $_$ >> | <:expr< lazy $_$ >> as e ->
fun curr next _ k ->
[: `S LO "("; `expr e [: `HVbox [: `S RO ")"; k :] :] :]
| e -> fun curr next _ k -> [: `not_impl "expr" e :] ]}];
Expand Down

0 comments on commit 1ea8f94

Please sign in to comment.