Makes the haml executable configurable. See #677.
This commit is contained in:
parent
9b698bb32b
commit
c1de9703ff
@ -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' })
|
||||
|
Loading…
Reference in New Issue
Block a user