Skip to content

Commit

Permalink
Add support for Sass 3.x and Compass imports
Browse files Browse the repository at this point in the history
  • Loading branch information
tmm1 committed Jan 31, 2011
1 parent 7e183dd commit 804efc9
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions syntax_checkers/sass.vim
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,16 @@ if !executable("sass")
finish
endif

"use compass imports if available
let g:syntastic_sass_imports = ""
if executable("compass")
let g:syntastic_sass_imports = system("compass imports")
endif

function! SyntaxCheckers_sass_GetLocList()
let makeprg='sass --check '.shellescape(expand('%'))
let errorformat = '%Wwarning on line %l:,%Z%m,Syntax %trror on line %l: %m'
let makeprg='sass '.g:syntastic_sass_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 })

let bn = bufnr("")
Expand Down

0 comments on commit 804efc9

Please sign in to comment.