File tree Expand file tree Collapse file tree 14 files changed +15
-103
lines changed Expand file tree Collapse file tree 14 files changed +15
-103
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ dev-repo: "git+https://github.com/ocaml/odoc.git"
14
14
doc: "https://ocaml.github.io/odoc/odoc_parser"
15
15
depends: [
16
16
"dune" {>= "3.7"}
17
- "ocaml" {>= "4.02.0" & < "5.3 "}
17
+ "ocaml" {>= "4.02.0" & < "5.4 "}
18
18
"astring"
19
19
"result"
20
20
"camlp-streams"
Original file line number Diff line number Diff line change @@ -45,7 +45,7 @@ depends: [
45
45
"cppo" {build & >= "1.1.0"}
46
46
"dune" {>= "3.7.0"}
47
47
"fpath"
48
- "ocaml" {>= "4.02.0" & < "5.3 "}
48
+ "ocaml" {>= "4.02.0" & < "5.4 "}
49
49
"result"
50
50
"tyxml" {>= "4.4.0"}
51
51
"fmt"
Original file line number Diff line number Diff line change @@ -154,6 +154,7 @@ let tag_of_token (tok : Parser.token) =
154
154
155
155
let syntax_highlighting_locs src =
156
156
try
157
+ Lexer. init () ;
157
158
let lexbuf = Lexing. from_string
158
159
#if OCAML_VERSION > = (4 ,8 ,0 )
159
160
~with_positions: true
@@ -175,4 +176,4 @@ let syntax_highlighting_locs src =
175
176
collect lexbuf
176
177
with e ->
177
178
Format. eprintf " Error during syntax highlighting: %s\n %!" (Printexc. to_string e);
178
- []
179
+ []
Original file line number Diff line number Diff line change @@ -17,16 +17,12 @@ val c : int
17
17
(* At the top-level of a module. *)
18
18
19
19
module Top1 : sig
20
- [@@@ deprecated " A" ]
21
-
22
- (* * Top-comment. *)
23
- end
24
-
25
- module Top2 : sig
26
- [@@@ deprecated " A" ]
27
20
21
+ (* On OCaml 4.04 to 4.06, this top-comment is lost by the parser if there's
22
+ no empty line before it. *)
28
23
(* * Top-comment. *)
29
24
end
25
+ [@@ deprecated " A" ]
30
26
31
27
(* Deprecated alert tag. *)
32
28
Original file line number Diff line number Diff line change 12
12
< a href ="Alerts.html "> Alerts</ a > » Top1
13
13
</ nav >
14
14
< header class ="odoc-preamble ">
15
- < h1 > Module < code > < span > Alerts.Top1</ span > </ code > </ h1 > < p > Top-comment. </ p >
15
+ < h1 > Module < code > < span > Alerts.Top1</ span > </ code > </ h1 >
16
16
< ul class ="at-tags ">
17
17
< li class ="deprecated "> < span class ="at-tag "> deprecated</ span > A</ li >
18
- </ ul >
18
+ </ ul > < p > Top-comment. </ p >
19
19
</ header > < div class ="odoc-content "> </ div >
20
20
</ body >
21
21
</ html >
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -57,20 +57,7 @@ <h1>Module <code><span>Alerts</span></code></h1>
57
57
< span class ="keyword "> end</ span >
58
58
</ span >
59
59
</ code >
60
- </ div > < div class ="spec-doc "> < p > Top-comment.</ p > </ div >
61
- </ div >
62
- < div class ="odoc-spec ">
63
- < div class ="spec module anchored " id ="module-Top2 ">
64
- < a href ="#module-Top2 " class ="anchor "> </ a >
65
- < code >
66
- < span > < span class ="keyword "> module</ span >
67
- < a href ="Alerts-Top2.html "> Top2</ a >
68
- </ span >
69
- < span > : < span class ="keyword "> sig</ span > ...
70
- < span class ="keyword "> end</ span >
71
- </ span >
72
- </ code >
73
- </ div > < div class ="spec-doc "> < p > Top-comment.</ p > </ div >
60
+ </ div >
74
61
</ div >
75
62
< div class ="odoc-spec ">
76
63
< div class ="spec value anchored " id ="val-d ">
Original file line number Diff line number Diff line change 1
1
Alerts.html
2
2
Alerts-Top1.html
3
- Alerts-Top2.html
Original file line number Diff line number Diff line change @@ -15,11 +15,7 @@ \section{Module \ocamlinlinecode{Alerts}}\label{Alerts}%
15
15
\end {ocamlindent }%
16
16
\medbreak
17
17
\label {Alerts-module-Top1 }\ocamlcodefragment {\ocamltag {keyword}{module} \hyperref [Alerts-Top1]{\ocamlinlinecode {Top1}}}\ocamlcodefragment { : \ocamltag {keyword}{sig}}\begin {ocamlindent }\end {ocamlindent }%
18
- \ocamlcodefragment {\ocamltag {keyword}{end}}\begin {ocamlindent }Top-comment.\end {ocamlindent }%
19
- \medbreak
20
- \label {Alerts-module-Top2 }\ocamlcodefragment {\ocamltag {keyword}{module} \hyperref [Alerts-Top2]{\ocamlinlinecode {Top2}}}\ocamlcodefragment { : \ocamltag {keyword}{sig}}\begin {ocamlindent }\end {ocamlindent }%
21
- \ocamlcodefragment {\ocamltag {keyword}{end}}\begin {ocamlindent }Top-comment.\end {ocamlindent }%
22
- \medbreak
18
+ \ocamlcodefragment {\ocamltag {keyword}{end}}\\
23
19
\label {Alerts-val-d }\ocamlcodefragment {\ocamltag {keyword}{val} d : int}\begin {ocamlindent }\begin {description }\kern -\topsep
24
20
\makeatletter\advance\@topsepadd -\topsep\makeatother % topsep is hardcoded
25
21
\item [{deprecated}]{A deprecated alert d}\end {description }%
Original file line number Diff line number Diff line change 708
708
(subdir
709
709
html
710
710
(rule
711
- (targets Alerts.html.gen Alerts-Top1.html.gen Alerts-Top2.html.gen )
711
+ (targets Alerts.html.gen Alerts-Top1.html.gen)
712
712
(action
713
713
(run
714
714
odoc
732
732
(alias runtest)
733
733
(action
734
734
(diff Alerts-Top1.html Alerts-Top1.html.gen))
735
- (enabled_if
736
- (> = %{ocaml_version} 4.04)))
737
- (rule
738
- (alias runtest)
739
- (action
740
- (diff Alerts-Top2.html Alerts-Top2.html.gen))
741
735
(enabled_if
742
736
(> = %{ocaml_version} 4.04))))
743
737
791
785
(subdir
792
786
man
793
787
(rule
794
- (targets Alerts.3o.gen Alerts.Top1.3o.gen Alerts.Top2.3o.gen )
788
+ (targets Alerts.3o.gen Alerts.Top1.3o.gen)
795
789
(action
796
790
(run odoc man-generate -o . --extra-suffix gen %{dep:../alerts.odocl}))
797
791
(enabled_if
806
800
(alias runtest)
807
801
(action
808
802
(diff Alerts.Top1.3o Alerts.Top1.3o.gen))
809
- (enabled_if
810
- (> = %{ocaml_version} 4.04)))
811
- (rule
812
- (alias runtest)
813
- (action
814
- (diff Alerts.Top2.3o Alerts.Top2.3o.gen))
815
803
(enabled_if
816
804
(> = %{ocaml_version} 4.04))))
817
805
You can’t perform that action at this time.
0 commit comments