summaryrefslogtreecommitdiff
path: root/ale_linters/julia
diff options
context:
space:
mode:
authorBartolomeo Stellato <bartolomeo.stellato@gmail.com>2018-09-07 14:13:44 -0400
committerBartolomeo Stellato <bartolomeo.stellato@gmail.com>2018-09-07 14:13:44 -0400
commit68ac4d10954b1f1d9f1ae890e0967014aeb00a52 (patch)
tree1967e911b396287d7bdda03dbc3923d22837b786 /ale_linters/julia
parentf64f0bb48c6e080932ec3a99ac03a69a57f7a933 (diff)
downloadale-68ac4d10954b1f1d9f1ae890e0967014aeb00a52.zip
Fix julia escaping + minor edits
Diffstat (limited to 'ale_linters/julia')
-rw-r--r--ale_linters/julia/languageserver.vim3
1 files changed, 2 insertions, 1 deletions
diff --git a/ale_linters/julia/languageserver.vim b/ale_linters/julia/languageserver.vim
index c5cd063a..87c3030f 100644
--- a/ale_linters/julia/languageserver.vim
+++ b/ale_linters/julia/languageserver.vim
@@ -6,7 +6,8 @@ call ale#Set('julia_executable', 'julia')
function! ale_linters#julia#languageserver#GetCommand(buffer) abort
let l:julia_executable = ale#Var(a:buffer, 'julia_executable')
- return ale#Escape(l:julia_executable . " --startup-file=no --history-file=no -e 'using LanguageServer; server = LanguageServer.LanguageServerInstance(STDIN, STDOUT, false); server.runlinter = true; run(server);'")
+ let l:cmd_string = 'using LanguageServer; server = LanguageServer.LanguageServerInstance(STDIN, STDOUT, false); server.runlinter = true; run(server);'
+ return l:julia_executable . ' --startup-file=no --history-file=no -e ' . ale#Escape(l:cmd_string)
endfunction
call ale#linter#Define('julia', {