Small fixes.
This commit is contained in:
parent
ea827bfa06
commit
f4a5842d18
@ -50,6 +50,7 @@ function! SyntaxCheckers_c_gcc_GetLocList()
|
||||
\ '%f:%l: %tarning: %m,'.
|
||||
\ '%f:%l: %m',
|
||||
\ 'makeprg_main': '-x c -fsyntax-only',
|
||||
\ 'makeprg_headers': '-x c',
|
||||
\ 'headers_pattern': '\.h$' })
|
||||
endfunction
|
||||
|
||||
|
@ -45,6 +45,7 @@ function! SyntaxCheckers_cpp_gcc_GetLocList()
|
||||
\ '%f:%l: %tarning: %m,'.
|
||||
\ '%f:%l: %m',
|
||||
\ 'makeprg_main': '-x c++ -fsyntax-only',
|
||||
\ 'makeprg_headers': '-x c++',
|
||||
\ 'headers_pattern': '\.\(h\|hpp\|hh\)$' })
|
||||
endfunction
|
||||
|
||||
|
@ -44,7 +44,7 @@ function! SyntaxCheckers_d_dmd_GetLocList()
|
||||
\ 'errorformat':
|
||||
\ '%-G%f:%s:,%f(%l): %m,' .
|
||||
\ '%f:%l: %m',
|
||||
\ 'makeprg_main': '-c',
|
||||
\ 'makeprg_main': '-c ' . syntastic#c#NullOutput('d'),
|
||||
\ 'headers_pattern': '\.di$' })
|
||||
endfunction
|
||||
|
||||
|
@ -19,15 +19,10 @@ function! SyntaxCheckers_nasm_nasm_IsAvailable()
|
||||
endfunction
|
||||
|
||||
function! SyntaxCheckers_nasm_nasm_GetLocList()
|
||||
if has("win32")
|
||||
let outfile="NUL"
|
||||
else
|
||||
let outfile="/dev/null"
|
||||
endif
|
||||
let wd = shellescape(expand("%:p:h") . "/")
|
||||
let makeprg = syntastic#makeprg#build({
|
||||
\ 'exe': 'nasm',
|
||||
\ 'args': '-X gnu -f elf -I ' . wd . ' -o ' . outfile,
|
||||
\ 'args': '-X gnu -f elf -I ' . wd . ' ' . syntastic#c#NullOutput('nasm'),
|
||||
\ 'subchecker': 'nasm' })
|
||||
let errorformat = '%f:%l: %t%*[^:]: %m'
|
||||
return SyntasticMake({ 'makeprg': makeprg, 'errorformat': errorformat })
|
||||
|
Loading…
Reference in New Issue
Block a user