Make expand special characters in g:syntastic_haml_interpreter.
This commit is contained in:
parent
e9118ca2aa
commit
90dc8f3f8f
@ -10,22 +10,22 @@
|
|||||||
"
|
"
|
||||||
"============================================================================
|
"============================================================================
|
||||||
|
|
||||||
if exists("g:loaded_syntastic_haml_haml_checker")
|
if exists('g:loaded_syntastic_haml_haml_checker')
|
||||||
finish
|
finish
|
||||||
endif
|
endif
|
||||||
let g:loaded_syntastic_haml_haml_checker=1
|
let g:loaded_syntastic_haml_haml_checker=1
|
||||||
|
|
||||||
if !exists("g:syntastic_haml_interpreter")
|
if !exists('g:syntastic_haml_interpreter')
|
||||||
let g:syntastic_haml_interpreter = "haml"
|
let g:syntastic_haml_interpreter = 'haml'
|
||||||
endif
|
endif
|
||||||
|
|
||||||
function! SyntaxCheckers_haml_haml_IsAvailable()
|
function! SyntaxCheckers_haml_haml_IsAvailable()
|
||||||
return executable(g:syntastic_haml_interpreter)
|
return executable(expand(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': g:syntastic_haml_interpreter,
|
\ 'exe': expand(g:syntastic_haml_interpreter),
|
||||||
\ 'args': '-c',
|
\ 'args': '-c',
|
||||||
\ 'filetype': 'haml',
|
\ 'filetype': 'haml',
|
||||||
\ 'subchecker': 'haml' })
|
\ 'subchecker': 'haml' })
|
||||||
|
Loading…
x
Reference in New Issue
Block a user