Permalink
Browse files

initial

  • Loading branch information...
0 parents commit 47de73e86040f34cc11ac03c312108bb18d897d9 @vitaly committed Mar 5, 2012
Showing with 19 additions and 0 deletions.
  1. +3 −0 README.md
  2. +16 −0 syntax_checkers/coffee-script.vim
@@ -0,0 +1,3 @@
+syntax checked for coffee-script
+
+to be used with [syntastic](github.com/scrooloose/syntastic)
@@ -0,0 +1,16 @@
+if exists("loaded_coffe_syntax_checker")
+ finish
+endif
+let loaded_coffe_syntax_checker = 1
+
+"bail if the user doesnt have coffee-script installed
+if !executable("coffee")
+ finish
+endif
+
+function! SyntaxCheckers_coffee_GetLocList()
+ let errorformat = '%EError: In %f\, Parse error on line %l: %m,%Z%p^,%W%f:%l: warning: %m'
+
+ return SyntasticMake({ 'makeprg': 'coffee -o /tmp -c %', 'errorformat': errorformat })
+endfunction
+

0 comments on commit 47de73e

Please sign in to comment.