summaryrefslogtreecommitdiff
path: root/share/nano/ocaml.nanorc
diff options
context:
space:
mode:
authorLuke Shumaker <LukeShu@sbcglobal.net>2011-04-25 12:22:55 -0400
committerLuke Shumaker <LukeShu@sbcglobal.net>2011-04-25 12:22:55 -0400
commitc9935112c8b66e23d2acd7584fecd8e99a281b14 (patch)
tree218ebbeb47e5a77620de5af597833522304d92c3 /share/nano/ocaml.nanorc
parent9b77ce1433aa790e174947dc33745926965ee4a1 (diff)
.compizsnap, .nanorc
Track .compizsnap/* files (hurpdurp), only tracked the directory before. Use *.nanorc files from the nano 2.2.6 distribution.
Diffstat (limited to 'share/nano/ocaml.nanorc')
-rw-r--r--share/nano/ocaml.nanorc27
1 files changed, 27 insertions, 0 deletions
diff --git a/share/nano/ocaml.nanorc b/share/nano/ocaml.nanorc
new file mode 100644
index 0000000..fc71ae2
--- /dev/null
+++ b/share/nano/ocaml.nanorc
@@ -0,0 +1,27 @@
+# OCaml sample nanorc
+#
+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 ""[^\"]*""