From 8842f692a2b1585d1f7baba0175fb8d7d341a4b5 Mon Sep 17 00:00:00 2001 From: Alex Taber Date: Mon, 14 Dec 2015 21:18:32 -0500 Subject: [PATCH] Added ocaml nanorc Adapted from NAS-tweaks --- ocaml.nanorc | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 ocaml.nanorc diff --git a/ocaml.nanorc b/ocaml.nanorc new file mode 100644 index 0000000..6f9fc60 --- /dev/null +++ b/ocaml.nanorc @@ -0,0 +1,25 @@ +syntax "ocaml" "\.mli?$" +#uid +color red "\<[A-Z][0-9a-z_]{2,}\>" +#declarations +color green "\<(let|val|method|in|and|rec|private|virtual|constraint)\>" +#structure items +color red "\<(type|open|class|module|exception|external)\>" +#patterns +color blue "\<(fun|function|functor|match|try|with)\>" +#patterns-modifiers +color yellow "\<(as|when|of)\>" +#conditions +color cyan "\<(if|then|else)\>" +#blocs +color magenta "\<(begin|end|object|struct|sig|for|while|do|done|to|downto)\>" +#constantes +color green "\<(true|false)\>" +#modules/classes +color green "\<(include|inherit|initializer)\>" +#expr modifiers +color yellow "\<(new|ref|mutable|lazy|assert|raise)\>" +#comments +color white start="\(\*" end="\*\)" +#strings (no multiline handling yet) +color brightblack ""[^\"]*""