File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
toplevel/examples/lwt_toplevel Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ let text ~a_class:cl s = Tyxml_js.Html.(span ~a:[ a_class [ cl ] ] [ txt s ])
55
66let 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
You can’t perform that action at this time.
0 commit comments