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