Add poor man's SCSS support.
This commit is contained in:
parent
85fbb9029a
commit
bbc9148c08
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user