Add poor man's SCSS support.

This commit is contained in:
Esa-Matti Suuronen 2011-06-20 21:58:45 +03:00
parent 85fbb9029a
commit bbc9148c08

View File

@ -38,3 +38,17 @@ function! SyntaxCheckers_sass_GetLocList()
return loclist return loclist
endfunction endfunction
function! SyntaxCheckers_scss_GetLocList()
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