Skip to content
This repository has been archived by the owner on Sep 20, 2023. It is now read-only.

Commit

Permalink
Merge pull request #58 from epeli/master
Browse files Browse the repository at this point in the history
SCSS support
  • Loading branch information
scrooloose committed Aug 22, 2011
2 parents 3b00bdc + d5b2788 commit cf6aa9a
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions syntax_checkers/sass.vim
Original file line number Diff line number Diff line change
Expand Up @@ -41,3 +41,24 @@ function! SyntaxCheckers_sass_GetLocList()

return loclist
endfunction

function! SyntaxCheckers_scss_GetLocList()
"use compass imports if available
if g:syntastic_sass_imports == 0 && executable("compass")
let g:syntastic_sass_imports = system("compass imports")
else
let g:syntastic_sass_imports = ""
endif

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("")
for i in loclist
let i['bufnr'] = bn
endfor

return loclist
endfunction

0 comments on commit cf6aa9a

Please sign in to comment.