summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitri Vereshchagin <dmitri.vereshchagin@gmail.com>2017-08-19 14:08:54 +0300
committerDmitri Vereshchagin <dmitri.vereshchagin@gmail.com>2017-08-19 17:18:48 +0300
commit18cb9a725d49c674b029110be274ae9606f2270d (patch)
treeef1fbc0fbc00d148566ebecf00cc03d63e20b1e7
parente9e1bec772dfc7d26a5d8bf7d3ad2d50e6fed3d5 (diff)
downloadale-18cb9a725d49c674b029110be274ae9606f2270d.zip
Add original filename to SyntaxErl command
-rw-r--r--ale_linters/erlang/syntaxerl.vim2
-rw-r--r--test/command_callback/test_erlang_syntaxerl_command_callback.vader6
2 files changed, 4 insertions, 4 deletions
diff --git a/ale_linters/erlang/syntaxerl.vim b/ale_linters/erlang/syntaxerl.vim
index dd53d8e8..7a94856a 100644
--- a/ale_linters/erlang/syntaxerl.vim
+++ b/ale_linters/erlang/syntaxerl.vim
@@ -10,7 +10,7 @@ endfunction
function! ale_linters#erlang#syntaxerl#GetCommand(buffer) abort
- return ale_linters#erlang#syntaxerl#GetExecutable(a:buffer) . ' %t'
+ return ale_linters#erlang#syntaxerl#GetExecutable(a:buffer) . ' -b %s %t'
endfunction
diff --git a/test/command_callback/test_erlang_syntaxerl_command_callback.vader b/test/command_callback/test_erlang_syntaxerl_command_callback.vader
index 821444ad..800aaf3f 100644
--- a/test/command_callback/test_erlang_syntaxerl_command_callback.vader
+++ b/test/command_callback/test_erlang_syntaxerl_command_callback.vader
@@ -17,10 +17,10 @@ Execute (Get SyntaxErl executable):
AssertEqual '/yet/another/syntaxerl', ale_linters#erlang#syntaxerl#GetExecutable(bufnr(''))
Execute (Get SyntaxErl command line):
- AssertEqual 'syntaxerl %t', ale_linters#erlang#syntaxerl#GetCommand(bufnr(''))
+ AssertEqual 'syntaxerl -b %s %t', ale_linters#erlang#syntaxerl#GetCommand(bufnr(''))
let g:ale_erlang_syntaxerl_executable = '/some/other/syntaxerl'
- AssertEqual '/some/other/syntaxerl %t', ale_linters#erlang#syntaxerl#GetCommand(bufnr(''))
+ AssertEqual '/some/other/syntaxerl -b %s %t', ale_linters#erlang#syntaxerl#GetCommand(bufnr(''))
let b:ale_erlang_syntaxerl_executable = '/yet/another/syntaxerl'
- AssertEqual '/yet/another/syntaxerl %t', ale_linters#erlang#syntaxerl#GetCommand(bufnr(''))
+ AssertEqual '/yet/another/syntaxerl -b %s %t', ale_linters#erlang#syntaxerl#GetCommand(bufnr(''))