Mercurial > repos > other > linux
comparison nanorc.d/ocaml.nanorc @ 84:b989099cde9f
Start to update Nano colourisation
Defaults are REALLY basic
author | IBBoard <dev@ibboard.co.uk> |
---|---|
date | Sat, 31 Mar 2018 21:06:21 +0100 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
83:966d8f8f89d0 | 84:b989099cde9f |
---|---|
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 ""[^\"]*"" | |
26 ## Trailing spaces | |
27 color ,green "[[:space:]]+$" |