]> git.lizzy.rs Git - micro.git/blob - syntax_files/ocaml.micro
Proper window resize handling
[micro.git] / syntax_files / ocaml.micro
1 syntax "OCaml" "\.mli?$"
2 #uid
3 color red "\b[A-Z][0-9a-z_]{2,}\b"
4 #declarations
5 color green "\b(let|val|method|in|and|rec|private|virtual|constraint)\b"
6 #structure items
7 color red "\b(type|open|class|module|exception|external)\b"
8 #patterns
9 color blue "\b(fun|function|functor|match|try|with)\b"
10 #patterns-modifiers
11 color yellow "\b(as|when|of)\b" 
12 #conditions
13 color cyan "\b(if|then|else)\b"
14 #blocs
15 color magenta "\b(begin|end|object|struct|sig|for|while|do|done|to|downto)\b"
16 #constantes
17 color green "\b(true|false)\b"
18 #modules/classes
19 color green "\b(include|inherit|initializer)\b"
20 #expr modifiers
21 color yellow "\b(new|ref|mutable|lazy|assert|raise)\b"
22 #brightblacks
23 color white (s) "\(\*.*?\*\)"
24 #strings (no multiline handling yet)
25 color brightblack ""[^\"]*""
26