Skip to content
Browse files

Add support for compass to sass checker if compass is available

  • Loading branch information...
1 parent 2b296d4 commit bd3024c19ca68f14416f8e08aa01699d9e270aca @grayrest committed Dec 1, 2009
Showing with 5 additions and 1 deletion.
  1. +5 −1 syntax_checkers/sass.vim
View
6 syntax_checkers/sass.vim
@@ -20,7 +20,11 @@ if !executable("sass")
endif
function! SyntaxCheckers_sass_GetLocList()
- let output = system("sass -c " . expand("%"))
+ if executable("compass")
+ let output = system("sass -c ". system("compass --imports") . expand("%"))
+ else
+ let output = system("sass -c " . expand("%"))
+ endif
if v:shell_error != 0
"sass only outputs the first error, so parse it ourselves
let line = substitute(output, '^Syntax error on line \(\d*\):.*', '\1', '')

0 comments on commit bd3024c

Please sign in to comment.
Something went wrong with that request. Please try again.