diff --git a/syntax_checkers/haml/haml.vim b/syntax_checkers/haml/haml.vim index 77d0a8dc..8371055f 100644 --- a/syntax_checkers/haml/haml.vim +++ b/syntax_checkers/haml/haml.vim @@ -10,22 +10,22 @@ " "============================================================================ -if exists("g:loaded_syntastic_haml_haml_checker") +if exists('g:loaded_syntastic_haml_haml_checker') finish endif let g:loaded_syntastic_haml_haml_checker=1 -if !exists("g:syntastic_haml_interpreter") - let g:syntastic_haml_interpreter = "haml" +if !exists('g:syntastic_haml_interpreter') + let g:syntastic_haml_interpreter = 'haml' endif function! SyntaxCheckers_haml_haml_IsAvailable() - return executable(g:syntastic_haml_interpreter) + return executable(expand(g:syntastic_haml_interpreter)) endfunction function! SyntaxCheckers_haml_haml_GetLocList() let makeprg = syntastic#makeprg#build({ - \ 'exe': g:syntastic_haml_interpreter, + \ 'exe': expand(g:syntastic_haml_interpreter), \ 'args': '-c', \ 'filetype': 'haml', \ 'subchecker': 'haml' })