X-Git-Url: https://git.josue.xyz/?a=blobdiff_plain;f=.nano%2Focaml.nanorc;fp=.nano%2Focaml.nanorc;h=d1bba12697c93edf80561fa0c164a22c6be5a544;hb=3aba54c891969552833dbc350b3139e944e17a97;hp=0000000000000000000000000000000000000000;hpb=1def8ecce8e6f3aa32e6978d0ba7846a99b8de34;p=dotfiles%2F.git diff --git a/.nano/ocaml.nanorc b/.nano/ocaml.nanorc new file mode 100644 index 00000000..d1bba126 --- /dev/null +++ b/.nano/ocaml.nanorc @@ -0,0 +1,32 @@ +## Syntax highlighting for OCaml. + +syntax "OCaml" "\.mli?$" +magic "OCaml" +comment "(*|*)" + +#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 ""[^\"]*"" +## Trailing spaces +color ,green "[[:space:]]+$"