1 syntax "OCaml" "\.mli?$"
3 color red "\b[A-Z][0-9a-z_]{2,}\b"
5 color green "\b(let|val|method|in|and|rec|private|virtual|constraint)\b"
7 color red "\b(type|open|class|module|exception|external)\b"
9 color blue "\b(fun|function|functor|match|try|with)\b"
11 color yellow "\b(as|when|of)\b"
13 color cyan "\b(if|then|else)\b"
15 color magenta "\b(begin|end|object|struct|sig|for|while|do|done|to|downto)\b"
17 color green "\b(true|false)\b"
19 color green "\b(include|inherit|initializer)\b"
21 color yellow "\b(new|ref|mutable|lazy|assert|raise)\b"
23 color white (s) "\(\*.*?\*\)"
24 #strings (no multiline handling yet)
25 color brightblack ""[^\"]*""