Merge remote-tracking branch 'brendanjerwin/master'

This commit is contained in:
Martin Grenfell 2012-07-24 09:49:43 +01:00
commit 18364490b0

View File

@ -26,16 +26,22 @@ function! SyntaxCheckers_coffee_GetLocList()
let coffee_results = SyntasticMake({ 'makeprg': makeprg, 'errorformat': errorformat }) let coffee_results = SyntasticMake({ 'makeprg': makeprg, 'errorformat': errorformat })
let lint_results = [] if !empty(coffee_results)
return coffee_results
endif
if executable("coffeelint") if executable("coffeelint")
let lint_options = '' let lint_options = ''
if(exists('g:coffee_lint_options')) if(exists('g:coffee_lint_options'))
let lint_options = g:coffee_lint_options let lint_options = g:coffee_lint_options
endif endif
let coffeelint = 'coffeelint --csv '.lint_options.' '.shellescape(expand('%')) let coffeelint = 'coffeelint --csv '.lint_options.' '.shellescape(expand('%'))
echo coffeelint let lint_results = SyntasticMake({ 'makeprg': coffeelint, 'errorformat': '%f\,%l\,%trror\,%m', 'subtype': 'Style' })
let lint_results = SyntasticMake({ 'makeprg': coffeelint, 'errorformat': '%f\,%l\,error\,%m' })
return lint_results
endif endif
return coffee_results + lint_results return []
endfunction endfunction