Skip to content

Commit 8ba6297

Browse files
authored
Misc: fix compilation of toplevel (#1439)
1 parent 24b3817 commit 8ba6297

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

toplevel/examples/lwt_toplevel/colorize.higlo.ml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ let text ~a_class:cl s = Tyxml_js.Html.(span ~a:[ a_class [ cl ] ] [ txt s ])
55

66
let ocaml ~a_class:cl s =
77
let tks = Higlo.Lang.parse ~lang:"ocaml" s in
8-
let span' cl s = Tyxml_js.Html.(span ~a:[ a_class [ cl ] ] [ txt s ]) in
8+
let span' cl (s, _) = Tyxml_js.Html.(span ~a:[ a_class [ cl ] ] [ txt s ]) in
99
let make_span = function
1010
| Higlo.Lang.Bcomment s -> span' "comment" s
1111
| Higlo.Lang.Constant s -> span' "constant" s
@@ -18,6 +18,7 @@ let ocaml ~a_class:cl s =
1818
| Higlo.Lang.String s -> span' "string" s
1919
| Higlo.Lang.Symbol (level, s) -> span' (Printf.sprintf "sym%d" level) s
2020
| Higlo.Lang.Text s -> span' "text" s
21+
| Higlo.Lang.Title (_, s) -> span' "text" s
2122
in
2223
Tyxml_js.Html.(div ~a:[ a_class [ cl ] ] (List.map make_span tks))
2324

0 commit comments

Comments
 (0)