Skip to content

Commit

Permalink
support local compass configuration for sass
Browse files Browse the repository at this point in the history
  • Loading branch information
vitaly committed Aug 8, 2011
1 parent d34a049 commit c91952a
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion bundle/syntastic/syntax_checkers/sass.vim
Expand Up @@ -29,7 +29,13 @@ function! SyntaxCheckers_sass_GetLocList()
let g:syntastic_sass_imports = ""
endif

let makeprg='sass '.g:syntastic_sass_imports.' --check '.shellescape(expand('%'))
if executable("compass") && filereadable("config/compass.rb")
let local_imports = "--compass"
else
let local_imports = ""
endif

let makeprg='sass '.g:syntastic_sass_imports.' '.local_imports.' --check '.shellescape(expand('%'))
let errorformat = '%ESyntax %trror:%m,%C on line %l of %f,%Z%m'
let errorformat .= ',%Wwarning on line %l:,%Z%m,Syntax %trror on line %l: %m'
let loclist = SyntasticMake({ 'makeprg': makeprg, 'errorformat': errorformat })
Expand Down

0 comments on commit c91952a

Please sign in to comment.