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
|
endif
|
||||||
let g:loaded_syntastic_haml_haml_checker=1
|
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()
|
function! SyntaxCheckers_haml_haml_IsAvailable()
|
||||||
return executable('haml')
|
return executable(g:syntastic_haml_interpreter)
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
function! SyntaxCheckers_haml_haml_GetLocList()
|
function! SyntaxCheckers_haml_haml_GetLocList()
|
||||||
let makeprg = syntastic#makeprg#build({
|
let makeprg = syntastic#makeprg#build({
|
||||||
\ 'exe': 'haml',
|
\ 'exe': g:syntastic_haml_interpreter,
|
||||||
\ 'args': '-c',
|
\ 'args': '-c',
|
||||||
\ 'filetype': 'haml',
|
\ 'filetype': 'haml',
|
||||||
\ 'subchecker': 'haml' })
|
\ 'subchecker': 'haml' })
|
||||||
|
Loading…
Reference in New Issue
Block a user