Rosetta Code:Village Pump/Syntax highlighting: Difference between revisions

→‎OCaml syntax highlighting issues: parsers brackets highlighting
(→‎OCaml syntax highlighting issues: parsers brackets highlighting)
Line 644:
*)</lang>
just a suggestion, maybe an easy way to handle this would be to match <code>*) ... *)</code>?
</blockquote>
 
* The parser brackets ('''[<''' and '''>]''') should be completely highlighted:
<blockquote>
<lang ocaml>parser [< e = parse_expr; _ = Stream.empty >]</lang>
(here the character '''[''' is colored but not '''<''')
</blockquote>