Objective Caml
1
0
4
ml
mli
ocaml-string
"
\("\|\n\)
ocaml comment
(\*
\*)
ocaml chars
'\\?[a-zA-Z0-9_\\()#!$%^&@*-=+"{}<)]'
ocaml types
\b\(int\|float\|array\|bool\|char\|exn\|format\|option\|list\|string\|unit\)\b
ocaml special types
`[a-z]+?\b
keywords
\b\(failwith\|let\|begin\|for\|to\|downto\|do\|done\|if\|then\|else\|object\|struct\|sig\|module\|include\|open\|and\|as\|assert\|class\|constraint\|exception\|external\|fun\|function\|in\|inherit\|initializer\|land\|lazy\|match\|method\|mutable\|new\|of\|parser\|private\|raise\|rec\|try\|type\|val\|virtual\|when\|while\|with\|end\|true\|false\|asr\|lor\|lsl\|lsr\|lxor\|mod\|not\|or\)\b
macros
\b[A-Z_][A-Z0-9_\-]+\b
numbers
\b[0-9]+\.?\b
operators
\(\*\|\*\.\|+\|+\.\|-\|-\.\|/\|/\.\|->\|<-\|:\||\|||\|<\|>\|>\=\|<\=\|<\.\|>\.\|<=\.\|>=\.\|=\|,\|;\|&&\|&\|@\|__\|_\|\]\|#\|\[\|'\|!\|?\|\^\)
ocaml functions
\(int_of_string\|string_of_int\|int_of_float\|float_of_int\|string_of_float\|float_of_string\|fst\|snd\|map\|char_of_int\|int_of_char\|ref\|print_newline()\|print_string\|printf\|print_int\|create_string\|string_lenght\|sub_string\)
ocaml graph functions
\(clear_graph\|moveto\|lineto\|set_color\|open_graph\)