Skip to content

Commit

Permalink
Compatibility with <=4.06
Browse files Browse the repository at this point in the history
  • Loading branch information
Julow committed Mar 10, 2021
1 parent a263221 commit dadc5cc
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
2 changes: 2 additions & 0 deletions test/cases/toplevel_comments.mli
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ module type Include_inline_T' = sig
end

module M : sig

(** Doc of [M] *)
end

Expand All @@ -45,6 +46,7 @@ module M' : sig end

(** Doc of [M''], part 1. *)
module M'' : sig

(** Doc of [M''], part 2. *)
end

Expand Down
7 changes: 7 additions & 0 deletions test/xref2/module_list.t/main.mli
Original file line number Diff line number Diff line change
Expand Up @@ -14,22 +14,29 @@ module Internal : sig
@canonical Main.C1 *)

module C2 : sig

(* Doc for [C2]. *)
end
(** @canonical Main.C2 *)
end

module Z : sig

(** Doc for [Z]. *)
end

module F () : sig

(** Doc for [F ()]. *)
end

module Type_of : module type of F ()

(* Without the extra blank lines in sig/struct, OCaml<4.06 doesn't see the doc
comments. *)

module Type_of_str : module type of struct

(** Doc of [Type_of_str]. *)
end

Expand Down
3 changes: 2 additions & 1 deletion test/xref2/references_to_pages.t/bad_references.mli
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
(** *)
(* Make sure that the next doc comment is not the top-comment. *)
type t

(** Page not found: {!page-not_found} *)

Expand Down

0 comments on commit dadc5cc

Please # to comment.