2018-05-04 19:44:32 +00:00
|
|
|
Before:
|
2018-07-15 17:24:53 +00:00
|
|
|
call ale#assert#SetUpLinterTest('nasm', 'nasm')
|
2018-05-04 19:44:32 +00:00
|
|
|
|
|
|
|
After:
|
2018-07-15 17:24:53 +00:00
|
|
|
call ale#assert#TearDownLinterTest()
|
2018-05-04 19:44:32 +00:00
|
|
|
|
2023-09-16 21:22:01 +00:00
|
|
|
Execute(The default nasm command should be correct):
|
|
|
|
AssertLinter 'nasm', ale#Escape('nasm')
|
|
|
|
\ . ' -X gnu -I %s:h' . (has('win32') ? '\' : '/')
|
|
|
|
\ . ' %s -o ' . (has('win32') ? 'NUL' : '/dev/null')
|
2018-05-04 19:44:32 +00:00
|
|
|
|
2023-09-16 21:22:01 +00:00
|
|
|
Execute(The nasm executable and options should be configurable):
|
2018-05-04 19:44:32 +00:00
|
|
|
let b:ale_nasm_nasm_executable = '~/nasm'
|
|
|
|
let b:ale_nasm_nasm_options = '-w-macro-params'
|
2018-07-15 17:24:53 +00:00
|
|
|
|
2023-09-16 21:22:01 +00:00
|
|
|
AssertLinter '~/nasm', ale#Escape('~/nasm')
|
2020-08-28 18:50:36 +00:00
|
|
|
\ . ' -X gnu -I %s:h' . (has('win32') ? '\' : '/')
|
2023-09-16 21:22:01 +00:00
|
|
|
\ . ' -w-macro-params'
|
|
|
|
\ . ' %s -o ' . (has('win32') ? 'NUL' : '/dev/null')
|