Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Add checker for slim http://slim-lang.com #360

Merged
merged 1 commit into from

3 participants

Richard Brown Martin Grenfell Penn Su
Richard Brown

I sent a patch to slim upstream to add the column in a future release, but in the meantime...

Richard Brown

Oh, they've pulled it. I'll update this request with a version comparison for the new efm. Forgot to say this fixes issue #358

Martin Grenfell scrooloose merged commit 43ac750 into from
Martin Grenfell
Owner

Nice work! Just send me another pull request if/when you update it for the new slim checker.

Richard Brown rbrown referenced this pull request
Closed

Close some issues #407

Penn Su

I wonder what's the status with slim-lang checker?
I am getting some weird error about output =
saying plain text isn't allowed in

elements, but the line is actually in body tag...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Sep 21, 2012
  1. Richard Brown
This page is out of date. Refresh to see the latest.
Showing with 26 additions and 0 deletions.
  1. +26 −0 syntax_checkers/slim.vim
26 syntax_checkers/slim.vim
View
@@ -0,0 +1,26 @@
+"============================================================================
+"File: slim.vim
+"Description: Syntax checking plugin for syntastic.vim
+"Maintainer: Martin Grenfell <martin.grenfell at gmail dot com>
+"License: This program is free software. It comes without any warranty,
+" to the extent permitted by applicable law. You can redistribute
+" it and/or modify it under the terms of the Do What The Fuck You
+" Want To Public License, Version 2, as published by Sam Hocevar.
+" See http://sam.zoy.org/wtfpl/COPYING for more details.
+"
+"============================================================================
+if exists("loaded_slim_syntax_checker")
+ finish
+endif
+let loaded_slim_syntax_checker = 1
+
+"bail if the user doesnt have the slim binary installed
+if !executable("slimrb")
+ finish
+endif
+
+function! SyntaxCheckers_slim_GetLocList()
+ let makeprg = "slimrb -c " . shellescape(expand("%"))
+ let errorformat = '%C\ %#%f\, Line %l,%-G\ %.%#,%ESlim::Parser::SyntaxError: %m,%+C%.%#'
+ return SyntasticMake({ 'makeprg': makeprg, 'errorformat': errorformat })
+endfunction
Something went wrong with that request. Please try again.