Makes the haml executable configurable. See #677.

This commit is contained in:
LCD 47 2013-06-06 14:06:47 +03:00
parent 9b698bb32b
commit c1de9703ff

View File

@ -15,13 +15,17 @@ if exists("g:loaded_syntastic_haml_haml_checker")
endif
let g:loaded_syntastic_haml_haml_checker=1
if !exists("g:syntastic_haml_interpreter")
let g:syntastic_haml_interpreter = "haml"
endif
function! SyntaxCheckers_haml_haml_IsAvailable()
return executable('haml')
return executable(g:syntastic_haml_interpreter)
endfunction
function! SyntaxCheckers_haml_haml_GetLocList()
let makeprg = syntastic#makeprg#build({
\ 'exe': 'haml',
\ 'exe': g:syntastic_haml_interpreter,
\ 'args': '-c',
\ 'filetype': 'haml',
\ 'subchecker': 'haml' })