This is the first push to this repo with my dotfiles
[dotfilesold/.git] / .nano / ocaml.nanorc
1 ## Syntax highlighting for OCaml.
2
3 syntax "OCaml" "\.mli?$"
4 magic "OCaml"
5 comment "(*|*)"
6
7 #uid
8 color red "\<[A-Z][0-9a-z_]{2,}\>"
9 #declarations
10 color green "\<(let|val|method|in|and|rec|private|virtual|constraint)\>"
11 #structure items
12 color red "\<(type|open|class|module|exception|external)\>"
13 #patterns
14 color blue "\<(fun|function|functor|match|try|with)\>"
15 #patterns-modifiers
16 color yellow "\<(as|when|of)\>" 
17 #conditions
18 color cyan "\<(if|then|else)\>"
19 #blocs
20 color magenta "\<(begin|end|object|struct|sig|for|while|do|done|to|downto)\>"
21 #constantes
22 color green "\<(true|false)\>"
23 #modules/classes
24 color green "\<(include|inherit|initializer)\>"
25 #expr modifiers
26 color yellow "\<(new|ref|mutable|lazy|assert|raise)\>"
27 #comments
28 color white start="\(\*" end="\*\)"
29 #strings (no multiline handling yet)
30 color brightblack ""[^\"]*""
31 ## Trailing spaces
32 color ,green "[[:space:]]+$"