Skip to content

Commit

Permalink
PR#6469: -dsource prints Pervasives.(!) as Pervasives.!
Browse files Browse the repository at this point in the history
git-svn-id: http://caml.inria.fr/svn/ocaml/version/4.02@14997 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
  • Loading branch information
Damien Doligez committed Jul 11, 2014
1 parent b741f0e commit 8c1e5cd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions parsing/pprintast.ml
Expand Up @@ -76,8 +76,8 @@ let protect_ident ppf txt =
let protect_longident ppf print_longident longprefix txt =
let format : (_, _, _) format =
if not (needs_parens txt) then "%a.%s"
else if needs_spaces txt then "(@;%a.%s@;)"
else "(%a.%s)" in
else if needs_spaces txt then "%a.(@;%s@;)"
else "%a.(%s)" in
fprintf ppf format print_longident longprefix txt

type space_formatter = (unit, Format.formatter, unit) format
Expand Down

0 comments on commit 8c1e5cd

Please sign in to comment.