496c5c177a4c

Add a barebones clojure compiler.
[view raw] [browse files]
author Steve Losh <steve@stevelosh.com>
date Mon, 20 Jun 2011 18:56:33 -0400
parents 517ccbe9799e
children 67a6999a73d0
branches/tags (none)
files vim/compiler/clojure.vim

Changes

--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/vim/compiler/clojure.vim	Mon Jun 20 18:56:33 2011 -0400
@@ -0,0 +1,28 @@
+"============================================================================
+"Compiler:    Clojure (cake test)
+"Maintainer:  Steve Losh <steve@stevelosh.com>
+"License:     MIT/X11
+"============================================================================
+
+if exists("current_compiler")
+  finish
+endif
+let current_compiler = "clojure"
+
+let s:cpo_save = &cpo
+set cpo-=C"endif
+
+
+setlocal makeprg=\(echo\ DIR:\ `pwd`/test/`ls\ test`/test\ &&\ cake\ test\)
+
+setlocal errorformat=
+            \%-DDIR:\ %f,
+            \%E%tAIL\ in\ %m\ (%f:%l),
+            \%C%m,
+            \%Z%^%$,
+            \%-G%>Ran\ %.%#\ tests\ containing\ %.%#\ assertions.,
+            \%-G%.%#,
+
+
+let &cpo = s:cpo_save
+unlet s:cpo_save