1 ## Syntax highlighting for OCaml.
3 syntax "OCaml" "\.mli?$"
8 color red "\<[A-Z][0-9a-z_]{2,}\>"
10 color green "\<(let|val|method|in|and|rec|private|virtual|constraint)\>"
12 color red "\<(type|open|class|module|exception|external)\>"
14 color blue "\<(fun|function|functor|match|try|with)\>"
16 color yellow "\<(as|when|of)\>"
18 color cyan "\<(if|then|else)\>"
20 color magenta "\<(begin|end|object|struct|sig|for|while|do|done|to|downto)\>"
22 color green "\<(true|false)\>"
24 color green "\<(include|inherit|initializer)\>"
26 color yellow "\<(new|ref|mutable|lazy|assert|raise)\>"
28 color white start="\(\*" end="\*\)"
29 #strings (no multiline handling yet)
30 color brightblack ""[^\"]*""
32 color ,green "[[:space:]]+$"