File tree Expand file tree Collapse file tree 14 files changed +14
-102
lines changed Expand file tree Collapse file tree 14 files changed +14
-102
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 @@ -153,6 +153,7 @@ let tag_of_token (tok : Parser.token) =
153
153
#endif
154
154
155
155
let syntax_highlighting_locs src =
156
+ Lexer. init () ;
156
157
let lexbuf = Lexing. from_string
157
158
#if OCAML_VERSION > = (4 ,8 ,0 )
158
159
~with_positions: true
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{module-Alerts}%
15
15
\end {ocamlindent }%
16
16
\medbreak
17
17
\label {module-Alerts-module-Top1 }\ocamlcodefragment {\ocamltag {keyword}{module} \hyperref [module-Alerts-module-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 {module-Alerts-module-Top2 }\ocamlcodefragment {\ocamltag {keyword}{module} \hyperref [module-Alerts-module-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 {module-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 687
687
(subdir
688
688
html
689
689
(rule
690
- (targets Alerts.html.gen Alerts-Top1.html.gen Alerts-Top2.html.gen )
690
+ (targets Alerts.html.gen Alerts-Top1.html.gen)
691
691
(action
692
692
(run
693
693
odoc
711
711
(alias runtest)
712
712
(action
713
713
(diff Alerts-Top1.html Alerts-Top1.html.gen))
714
- (enabled_if
715
- (> = %{ocaml_version} 4.04)))
716
- (rule
717
- (alias runtest)
718
- (action
719
- (diff Alerts-Top2.html Alerts-Top2.html.gen))
720
714
(enabled_if
721
715
(> = %{ocaml_version} 4.04))))
722
716
770
764
(subdir
771
765
man
772
766
(rule
773
- (targets Alerts.3o.gen Alerts.Top1.3o.gen Alerts.Top2.3o.gen )
767
+ (targets Alerts.3o.gen Alerts.Top1.3o.gen)
774
768
(action
775
769
(run odoc man-generate -o . --extra-suffix gen %{dep:../alerts.odocl}))
776
770
(enabled_if
785
779
(alias runtest)
786
780
(action
787
781
(diff Alerts.Top1.3o Alerts.Top1.3o.gen))
788
- (enabled_if
789
- (> = %{ocaml_version} 4.04)))
790
- (rule
791
- (alias runtest)
792
- (action
793
- (diff Alerts.Top2.3o Alerts.Top2.3o.gen))
794
782
(enabled_if
795
783
(> = %{ocaml_version} 4.04))))
796
784
You can’t perform that action at this time.
0 commit comments