Add support for Sass 3.x and Compass imports
This commit is contained in:
parent
d6a93dfd36
commit
7e9456ebb9
@ -19,9 +19,16 @@ if !executable("sass")
|
|||||||
finish
|
finish
|
||||||
endif
|
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()
|
function! SyntaxCheckers_sass_GetLocList()
|
||||||
let makeprg='sass --check '.shellescape(expand('%'))
|
let makeprg='sass '.g:syntastic_sass_imports.' --check '.shellescape(expand('%'))
|
||||||
let errorformat = '%Wwarning on line %l:,%Z%m,Syntax %trror on line %l: %m'
|
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 loclist = SyntasticMake({ 'makeprg': makeprg, 'errorformat': errorformat })
|
||||||
|
|
||||||
let bn = bufnr("")
|
let bn = bufnr("")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user