Merge pull request #583 from lcd047/checkbashisms

Set subchecker in checkbashisms
This commit is contained in:
Martin Grenfell 2013-03-27 02:19:52 -07:00
commit 0cf85d52c1
30 changed files with 73 additions and 35 deletions

View File

@ -37,7 +37,8 @@ endfunction
function! SyntaxCheckers_applescript_osacompile_GetLocList() function! SyntaxCheckers_applescript_osacompile_GetLocList()
let makeprg = syntastic#makeprg#build({ let makeprg = syntastic#makeprg#build({
\ 'exe': 'osacompile', \ 'exe': 'osacompile',
\ 'args': '-o ' . tempname() . '.scpt ' }) \ 'args': '-o ' . tempname() . '.scpt ',
\ 'subchecker': 'osacompile' })
let errorformat = '%f:%l:%m' let errorformat = '%f:%l:%m'
return SyntasticMake({ 'makeprg': makeprg, 'errorformat': errorformat }) return SyntasticMake({ 'makeprg': makeprg, 'errorformat': errorformat })

View File

@ -26,7 +26,8 @@ endfunction
function! SyntaxCheckers_co_coco_GetLocList() function! SyntaxCheckers_co_coco_GetLocList()
let makeprg = syntastic#makeprg#build({ let makeprg = syntastic#makeprg#build({
\ 'exe': 'coco', \ 'exe': 'coco',
\ 'args': '-c -o /tmp' }) \ 'args': '-c -o /tmp',
\ 'subchecker': 'coco' })
let errorformat = '%EFailed at: %f,%ZSyntax%trror: %m on line %l,%EFailed at: %f,%Z%trror: Parse error on line %l: %m' let errorformat = '%EFailed at: %f,%ZSyntax%trror: %m on line %l,%EFailed at: %f,%Z%trror: Parse error on line %l: %m'
return SyntasticMake({ 'makeprg': makeprg, 'errorformat': errorformat }) return SyntasticMake({ 'makeprg': makeprg, 'errorformat': errorformat })

View File

@ -21,7 +21,8 @@ endfunction
function! SyntaxCheckers_coffee_coffee_GetLocList() function! SyntaxCheckers_coffee_coffee_GetLocList()
let makeprg = syntastic#makeprg#build({ let makeprg = syntastic#makeprg#build({
\ 'exe': 'coffee', \ 'exe': 'coffee',
\ 'args': '-c -l -o /tmp' }) \ 'args': '-c -l -o /tmp',
\ 'subchecker': 'coffee' })
let errorformat = 'Syntax%trror: In %f\, %m on line %l,%EError: In %f\, Parse error on line %l: %m,%EError: In %f\, %m on line %l,%W%f(%l): lint warning: %m,%-Z%p^,%W%f(%l): warning: %m,%-Z%p^,%E%f(%l): SyntaxError: %m,%-Z%p^,%-G%.%#' let errorformat = 'Syntax%trror: In %f\, %m on line %l,%EError: In %f\, Parse error on line %l: %m,%EError: In %f\, %m on line %l,%W%f(%l): lint warning: %m,%-Z%p^,%W%f(%l): warning: %m,%-Z%p^,%E%f(%l): SyntaxError: %m,%-Z%p^,%-G%.%#'
return SyntasticMake({ 'makeprg': makeprg, 'errorformat': errorformat }) return SyntasticMake({ 'makeprg': makeprg, 'errorformat': errorformat })

View File

@ -22,7 +22,8 @@ endfunction
function! SyntaxCheckers_cs_mcs_GetLocList() function! SyntaxCheckers_cs_mcs_GetLocList()
let makeprg = syntastic#makeprg#build({ let makeprg = syntastic#makeprg#build({
\ 'exe': 'mcs', \ 'exe': 'mcs',
\ 'args': '--parse' }) \ 'args': '--parse',
\ 'subchecker': 'mcs' })
let errorformat = '%f(%l\,%c): %trror %m' let errorformat = '%f(%l\,%c): %trror %m'
return SyntasticMake({ 'makeprg': makeprg, return SyntasticMake({ 'makeprg': makeprg,
\ 'errorformat': errorformat, \ 'errorformat': errorformat,

View File

@ -30,7 +30,8 @@ endfunction
function! SyntaxCheckers_css_csslint_GetLocList() function! SyntaxCheckers_css_csslint_GetLocList()
let makeprg = syntastic#makeprg#build({ let makeprg = syntastic#makeprg#build({
\ 'exe': 'csslint', \ 'exe': 'csslint',
\ 'args': '--format=compact ' . g:syntastic_csslint_options }) \ 'args': '--format=compact ' . g:syntastic_csslint_options,
\ 'subchecker': 'csslint' })
" Print CSS Lint's error/warning messages from compact format. Ignores blank lines. " Print CSS Lint's error/warning messages from compact format. Ignores blank lines.
let errorformat = '%-G,%-G%f: lint free!,%f: line %l\, col %c\, %trror - %m,%f: line %l\, col %c\, %tarning - %m,%f: line %l\, col %c\, %m,' let errorformat = '%-G,%-G%f: lint free!,%f: line %l\, col %c\, %trror - %m,%f: line %l\, col %c\, %tarning - %m,%f: line %l\, col %c\, %m,'

View File

@ -22,7 +22,8 @@ endfunction
function! SyntaxCheckers_cucumber_cucumber_GetLocList() function! SyntaxCheckers_cucumber_cucumber_GetLocList()
let makeprg = syntastic#makeprg#build({ let makeprg = syntastic#makeprg#build({
\ 'exe': 'cucumber', \ 'exe': 'cucumber',
\ 'args': '--dry-run --quiet --strict --format pretty' }) \ 'args': '--dry-run --quiet --strict --format pretty',
\ 'subchecker': 'cucumber' })
let errorformat = '%f:%l:%c:%m,%W %.%# (%m),%-Z%f:%l:%.%#,%-G%.%#' let errorformat = '%f:%l:%c:%m,%W %.%# (%m),%-Z%f:%l:%.%#,%-G%.%#'
return SyntasticMake({ 'makeprg': makeprg, 'errorformat': errorformat }) return SyntasticMake({ 'makeprg': makeprg, 'errorformat': errorformat })

View File

@ -29,7 +29,9 @@ function! SyntaxCheckers_elixir_elixir_IsAvailable()
endfunction endfunction
function! SyntaxCheckers_elixir_elixir_GetLocList() function! SyntaxCheckers_elixir_elixir_GetLocList()
let makeprg = syntastic#makeprg#build({ 'exe': s:syntastic_elixir_compile_command }) let makeprg = syntastic#makeprg#build({
\ 'exe': s:syntastic_elixir_compile_command,
\ 'subchecker': 'elixir' })
let errorformat = '** %*[^\ ] %f:%l: %m' let errorformat = '** %*[^\ ] %f:%l: %m'
return SyntasticMake({ 'makeprg': makeprg, 'errorformat': errorformat }) return SyntasticMake({ 'makeprg': makeprg, 'errorformat': errorformat })

View File

@ -34,7 +34,8 @@ endfunction
function! SyntaxCheckers_fortran_gfortran_GetLocList() function! SyntaxCheckers_fortran_gfortran_GetLocList()
let makeprg = syntastic#makeprg#build({ let makeprg = syntastic#makeprg#build({
\ 'exe': 'gfortran', \ 'exe': 'gfortran',
\ 'args': s:args() }) \ 'args': s:args(),
\ 'subchecker': 'gfortran' })
let errorformat = '%-C %#,%-C %#%.%#,%A%f:%l.%c:,%Z%m,%G%.%#' let errorformat = '%-C %#,%-C %#%.%#,%A%f:%l.%c:,%Z%m,%G%.%#'
return SyntasticMake({ 'makeprg': makeprg, 'errorformat': errorformat }) return SyntasticMake({ 'makeprg': makeprg, 'errorformat': errorformat })
endfunction endfunction

View File

@ -22,7 +22,8 @@ endfunction
function! SyntaxCheckers_haml_haml_GetLocList() function! SyntaxCheckers_haml_haml_GetLocList()
let makeprg = syntastic#makeprg#build({ let makeprg = syntastic#makeprg#build({
\ 'exe': 'haml', \ 'exe': 'haml',
\ 'args': '-c' }) \ 'args': '-c',
\ 'subchecker': 'haml' })
let errorformat = 'Haml error on line %l: %m,Syntax error on line %l: %m,%-G%.%#' let errorformat = 'Haml error on line %l: %m,Syntax error on line %l: %m,%-G%.%#'
return SyntasticMake({ 'makeprg': makeprg, 'errorformat': errorformat }) return SyntasticMake({ 'makeprg': makeprg, 'errorformat': errorformat })
endfunction endfunction

View File

@ -44,7 +44,8 @@ function! SyntaxCheckers_less_lessc_GetLocList()
let makeprg = syntastic#makeprg#build({ let makeprg = syntastic#makeprg#build({
\ 'exe': s:check_file, \ 'exe': s:check_file,
\ 'args': g:syntastic_less_options, \ 'args': g:syntastic_less_options,
\ 'tail': syntastic#util#DevNull() }) \ 'tail': syntastic#util#DevNull(),
\ 'subchecker': 'lessc' })
let errorformat = '%m in %f:%l:%c' let errorformat = '%m in %f:%l:%c'
return SyntasticMake({ 'makeprg': makeprg, return SyntasticMake({ 'makeprg': makeprg,

View File

@ -22,7 +22,8 @@ function! SyntaxCheckers_lisp_clisp_GetLocList()
let makeprg = syntastic#makeprg#build({ let makeprg = syntastic#makeprg#build({
\ 'exe': 'clisp', \ 'exe': 'clisp',
\ 'args': '-c', \ 'args': '-c',
\ 'tail': '-o /tmp/clisp-vim-compiled-file' }) \ 'tail': '-o /tmp/clisp-vim-compiled-file',
\ 'subchecker': 'clisp' })
let efm = '%-G;%.%#,' let efm = '%-G;%.%#,'
let efm .= '%W%>WARNING:%.%#line %l : %m,%C %#%m,' let efm .= '%W%>WARNING:%.%#line %l : %m,%C %#%m,'
let efm .= '%E%>The following functions were %m,%Z %m,' let efm .= '%E%>The following functions were %m,%Z %m,'

View File

@ -44,7 +44,10 @@ endfunction
function! SyntaxCheckers_lua_luac_GetLocList() function! SyntaxCheckers_lua_luac_GetLocList()
let makeprg = syntastic#makeprg#build({ 'exe': 'luac', 'args': '-p' }) let makeprg = syntastic#makeprg#build({
\ 'exe': 'luac',
\ 'args': '-p',
\ 'subchecker': 'luac' })
let errorformat = 'luac: %#%f:%l: %m' let errorformat = 'luac: %#%f:%l: %m'
return SyntasticMake({ 'makeprg': makeprg, return SyntasticMake({ 'makeprg': makeprg,

View File

@ -20,7 +20,10 @@ function! SyntaxCheckers_matlab_mlint_IsAvailable()
endfunction endfunction
function! SyntaxCheckers_matlab_mlint_GetLocList() function! SyntaxCheckers_matlab_mlint_GetLocList()
let makeprg = syntastic#makeprg#build({ 'exe': 'mlint', 'args': '-id $*' }) let makeprg = syntastic#makeprg#build({
\ 'exe': 'mlint',
\ 'args': '-id $*',
\ 'subchecker': 'mlint' })
let errorformat = 'L %l (C %c): %*[a-zA-Z0-9]: %m,L %l (C %c-%*[0-9]): %*[a-zA-Z0-9]: %m' let errorformat = 'L %l (C %c): %*[a-zA-Z0-9]: %m,L %l (C %c-%*[0-9]): %*[a-zA-Z0-9]: %m'
return SyntasticMake({ 'makeprg': makeprg, 'errorformat': errorformat, 'defaults': {'bufnr': bufnr("")} }) return SyntasticMake({ 'makeprg': makeprg, 'errorformat': errorformat, 'defaults': {'bufnr': bufnr("")} })
endfunction endfunction

View File

@ -27,7 +27,8 @@ function! SyntaxCheckers_nasm_nasm_GetLocList()
let wd = shellescape(expand("%:p:h") . "/") let wd = shellescape(expand("%:p:h") . "/")
let makeprg = syntastic#makeprg#build({ let makeprg = syntastic#makeprg#build({
\ 'exe': 'nasm', \ 'exe': 'nasm',
\ 'args': '-X gnu -f elf -I ' . wd . ' -o ' . outfile }) \ 'args': '-X gnu -f elf -I ' . wd . ' -o ' . outfile,
\ 'subchecker': 'nasm' })
let errorformat = '%f:%l: %t%*[^:]: %m' let errorformat = '%f:%l: %t%*[^:]: %m'
return SyntasticMake({ 'makeprg': makeprg, 'errorformat': errorformat }) return SyntasticMake({ 'makeprg': makeprg, 'errorformat': errorformat })
endfunction endfunction

View File

@ -26,7 +26,8 @@ function! SyntaxCheckers_rst_rst2pseudoxml_GetLocList()
let makeprg = syntastic#makeprg#build({ let makeprg = syntastic#makeprg#build({
\ 'exe': s:exe(), \ 'exe': s:exe(),
\ 'args': '--report=2 --exit-status=1', \ 'args': '--report=2 --exit-status=1',
\ 'tail': syntastic#util#DevNull() }) \ 'tail': syntastic#util#DevNull(),
\ 'subchecker': 'rst2pseudoxml' })
let errorformat = '%f:%l:\ (%tNFO/1)\ %m, let errorformat = '%f:%l:\ (%tNFO/1)\ %m,
\%f:%l:\ (%tARNING/2)\ %m, \%f:%l:\ (%tARNING/2)\ %m,

View File

@ -22,7 +22,8 @@ endfunction
function! SyntaxCheckers_rust_rustc_GetLocList() function! SyntaxCheckers_rust_rustc_GetLocList()
let makeprg = syntastic#makeprg#build({ let makeprg = syntastic#makeprg#build({
\ 'exe': 'rustc', \ 'exe': 'rustc',
\ 'args': '--parse-only' }) \ 'args': '--parse-only',
\ 'subchecker': 'rustc' })
let errorformat = '%E%f:%l:%c: \\d%#:\\d%# %.%\{-}error:%.%\{-} %m,' . let errorformat = '%E%f:%l:%c: \\d%#:\\d%# %.%\{-}error:%.%\{-} %m,' .
\ '%W%f:%l:%c: \\d%#:\\d%# %.%\{-}warning:%.%\{-} %m,' . \ '%W%f:%l:%c: \\d%#:\\d%# %.%\{-}warning:%.%\{-} %m,' .

View File

@ -40,7 +40,8 @@ function! SyntaxCheckers_sass_sass_GetLocList()
end end
let makeprg = syntastic#makeprg#build({ let makeprg = syntastic#makeprg#build({
\ 'exe': 'sass', \ 'exe': 'sass',
\ 'args': '--cache-location ' . s:sass_cache_location . ' ' . s:imports . ' --check' }) \ 'args': '--cache-location ' . s:sass_cache_location . ' ' . s:imports . ' --check',
\ 'subchecker': 'sass' })
let errorformat = '%ESyntax %trror:%m,%C on line %l of %f,%Z%.%#' let errorformat = '%ESyntax %trror:%m,%C on line %l of %f,%Z%.%#'
let errorformat .= ',%Wwarning on line %l:,%Z%m,Syntax %trror on line %l: %m' let errorformat .= ',%Wwarning on line %l:,%Z%m,Syntax %trror on line %l: %m'
let loclist = SyntasticMake({ 'makeprg': makeprg, 'errorformat': errorformat }) let loclist = SyntasticMake({ 'makeprg': makeprg, 'errorformat': errorformat })

View File

@ -27,7 +27,8 @@ endif
function! SyntaxCheckers_scala_scalac_GetLocList() function! SyntaxCheckers_scala_scalac_GetLocList()
let makeprg = syntastic#makeprg#build({ let makeprg = syntastic#makeprg#build({
\ 'exe': 'scalac', \ 'exe': 'scalac',
\ 'args': '-Ystop-after:parser '. g:syntastic_scala_options }) \ 'args': '-Ystop-after:parser '. g:syntastic_scala_options,
\ 'subchecker': 'scalac' })
let errorformat = '%f\:%l: %trror: %m' let errorformat = '%f\:%l: %trror: %m'

View File

@ -13,12 +13,15 @@ let g:loaded_syntastic_sh_checkbashisms_checker=1
function! SyntaxCheckers_sh_checkbashisms_IsAvailable() function! SyntaxCheckers_sh_checkbashisms_IsAvailable()
return executable('checkbashisms.pl') return executable('checkbashisms')
endfunction endfunction
function! SyntaxCheckers_sh_checkbashisms_GetLocList() function! SyntaxCheckers_sh_checkbashisms_GetLocList()
let makeprg = syntastic#makeprg#build({'exe': 'checkbashisms.pl', 'args': '-fpx'}) let makeprg = syntastic#makeprg#build({
\ 'exe': 'checkbashisms',
\ 'args': '-fpx',
\ 'subchecker': 'checkbashisms'})
let errorformat = let errorformat =
\ '%Eerror: %f: %m,' . \ '%Eerror: %f: %m,' .
@ -26,7 +29,7 @@ function! SyntaxCheckers_sh_checkbashisms_GetLocList()
\ '%Wscript %f %m,%C%.# lines,' . \ '%Wscript %f %m,%C%.# lines,' .
\ '%Wpossible bashism in %f line %l (%m):,%C%.%#,%Z.%#' \ '%Wpossible bashism in %f line %l (%m):,%C%.%#,%Z.%#'
return SyntasticMake({'makeprg': makeprg, 'errorformat': errorformat}) return SyntasticMake({'makeprg': makeprg, 'errorformat': errorformat, 'subtype': 'Style'})
endfunction endfunction

View File

@ -63,7 +63,8 @@ function! SyntaxCheckers_sh_sh_GetLocList()
let makeprg = syntastic#makeprg#build({ let makeprg = syntastic#makeprg#build({
\ 'exe': s:GetShell(), \ 'exe': s:GetShell(),
\ 'args': '-n' }) \ 'args': '-n',
\ 'subchecker': 'sh'})
let errorformat = '%f: line %l: %m' let errorformat = '%f: line %l: %m'
return SyntasticMake({ 'makeprg': makeprg, 'errorformat': errorformat}) return SyntasticMake({ 'makeprg': makeprg, 'errorformat': errorformat})

View File

@ -32,7 +32,8 @@ endfunction
function! SyntaxCheckers_slim_slimrb_GetLocList() function! SyntaxCheckers_slim_slimrb_GetLocList()
let makeprg = syntastic#makeprg#build({ let makeprg = syntastic#makeprg#build({
\ 'exe': 'slimrb', \ 'exe': 'slimrb',
\ 'args': '-c' }) \ 'args': '-c',
\ 'subchecker': 'slimrb' })
if syntastic#util#versionIsAtLeast(s:SlimrbVersion(), [1,3,1]) if syntastic#util#versionIsAtLeast(s:SlimrbVersion(), [1,3,1])
let errorformat = '%C\ %#%f\, Line %l\, Column %c,%-G\ %.%#,%ESlim::Parser::SyntaxError: %m,%+C%.%#' let errorformat = '%C\ %#%f\, Line %l\, Column %c,%-G\ %.%#,%ESlim::Parser::SyntaxError: %m,%+C%.%#'
else else

View File

@ -20,7 +20,7 @@ function! SyntaxCheckers_tex_lacheck_IsAvailable()
endfunction endfunction
function! SyntaxCheckers_tex_lacheck_GetLocList() function! SyntaxCheckers_tex_lacheck_GetLocList()
let makeprg = syntastic#makeprg#build({ 'exe': 'lacheck' }) let makeprg = syntastic#makeprg#build({ 'exe': 'lacheck', 'subchecker': 'lacheck' })
let errorformat = '%-G** %f:,%E"%f"\, line %l: %m' let errorformat = '%-G** %f:,%E"%f"\, line %l: %m'
return SyntasticMake({ 'makeprg': makeprg, 'errorformat': errorformat }) return SyntasticMake({ 'makeprg': makeprg, 'errorformat': errorformat })
endfunction endfunction

View File

@ -17,7 +17,8 @@ endfunction
function! SyntaxCheckers_typescript_tsc_GetLocList() function! SyntaxCheckers_typescript_tsc_GetLocList()
let makeprg = syntastic#makeprg#build({ let makeprg = syntastic#makeprg#build({
\ 'exe': 'tsc', \ 'exe': 'tsc',
\ 'post_args': '--out ' . syntastic#util#DevNull() }) \ 'post_args': '--out ' . syntastic#util#DevNull(),
\ 'subchecker': 'tsc' })
let errorformat = '%f %#(%l\,%c): %m' let errorformat = '%f %#(%l\,%c): %m'
return SyntasticMake({ 'makeprg': makeprg, 'errorformat': errorformat }) return SyntasticMake({ 'makeprg': makeprg, 'errorformat': errorformat })
endfunction endfunction

View File

@ -51,7 +51,8 @@ function! SyntaxCheckers_vala_valac_GetLocList()
let vala_pkg_args = join(map(s:GetValaModules(), '"--pkg ".v:val'), ' ') let vala_pkg_args = join(map(s:GetValaModules(), '"--pkg ".v:val'), ' ')
let makeprg = syntastic#makeprg#build({ let makeprg = syntastic#makeprg#build({
\ 'exe': 'valac', \ 'exe': 'valac',
\ 'args': '-C ' . vala_pkg_args }) \ 'args': '-C ' . vala_pkg_args,
\ 'subchecker': 'valac' })
let errorformat = '%A%f:%l.%c-%\d%\+.%\d%\+: %t%[a-z]%\+: %m,%C%m,%Z%m' let errorformat = '%A%f:%l.%c-%\d%\+.%\d%\+: %t%[a-z]%\+: %m,%C%m,%Z%m'
return SyntasticMake({ 'makeprg': makeprg, return SyntasticMake({ 'makeprg': makeprg,

View File

@ -42,7 +42,8 @@ function! SyntaxCheckers_xhtml_tidy_GetLocList()
let encopt = s:TidyEncOptByFenc() let encopt = s:TidyEncOptByFenc()
let makeprg = syntastic#makeprg#build({ let makeprg = syntastic#makeprg#build({
\ 'exe': 'tidy', \ 'exe': 'tidy',
\ 'args': encopt . ' -xml -e' }) \ 'args': encopt . ' -xml -e',
\ 'subchecker': 'tidy' })
let errorformat='%Wline %l column %c - Warning: %m,%Eline %l column %c - Error: %m,%-G%.%#,%-G%.%#' let errorformat='%Wline %l column %c - Warning: %m,%Eline %l column %c - Error: %m,%-G%.%#,%-G%.%#'
return SyntasticMake({ 'makeprg': makeprg, 'errorformat': errorformat, 'defaults': {'bufnr': bufnr("")} }) return SyntasticMake({ 'makeprg': makeprg, 'errorformat': errorformat, 'defaults': {'bufnr': bufnr("")} })
endfunction endfunction

View File

@ -26,7 +26,8 @@ endfunction
function! SyntaxCheckers_xml_xmllint_GetLocList() function! SyntaxCheckers_xml_xmllint_GetLocList()
let makeprg = syntastic#makeprg#build({ let makeprg = syntastic#makeprg#build({
\ 'exe': 'xmllint', \ 'exe': 'xmllint',
\ 'args': '--xinclude --noout --postvalid' }) \ 'args': '--xinclude --noout --postvalid',
\ 'subchecker': 'xmllint' })
let errorformat='%E%f:%l: error : %m,' . let errorformat='%E%f:%l: error : %m,' .
\ '%-G%f:%l: validity error : Validation failed: no DTD found %m,' . \ '%-G%f:%l: validity error : Validation failed: no DTD found %m,' .
\ '%W%f:%l: warning : %m,' . \ '%W%f:%l: warning : %m,' .

View File

@ -25,7 +25,8 @@ endfunction
function! SyntaxCheckers_yaml_jsyaml_GetLocList() function! SyntaxCheckers_yaml_jsyaml_GetLocList()
let makeprg = syntastic#makeprg#build({ let makeprg = syntastic#makeprg#build({
\ 'exe': 'js-yaml', \ 'exe': 'js-yaml',
\ 'args': '--compact' }) \ 'args': '--compact',
\ 'subchecker': 'jsyaml' })
let errorformat='Error on line %l\, col %c:%m,%-G%.%#' let errorformat='Error on line %l\, col %c:%m,%-G%.%#'
return SyntasticMake({ 'makeprg': makeprg, return SyntasticMake({ 'makeprg': makeprg,
\ 'errorformat': errorformat, \ 'errorformat': errorformat,

View File

@ -24,7 +24,9 @@ function! SyntaxCheckers_z80_z80syntaxchecker_IsAvailable()
endfunction endfunction
function! SyntaxCheckers_z80_z80syntaxchecker_GetLocList() function! SyntaxCheckers_z80_z80syntaxchecker_GetLocList()
let makeprg = syntastic#makeprg#build({ 'exe': 'z80_syntax_checker.py' }) let makeprg = syntastic#makeprg#build({
\ 'exe': 'z80_syntax_checker.py',
\ 'subchecker': 'z80syntaxchecker' })
let errorformat = '%f:%l %m' let errorformat = '%f:%l %m'
let loclist = SyntasticMake({ 'makeprg': makeprg, 'errorformat': errorformat }) let loclist = SyntasticMake({ 'makeprg': makeprg, 'errorformat': errorformat })
return loclist return loclist

View File

@ -29,7 +29,7 @@ function! SyntaxCheckers_zpt_zptlint_IsAvailable()
endfunction endfunction
function! SyntaxCheckers_zpt_zptlint_GetLocList() function! SyntaxCheckers_zpt_zptlint_GetLocList()
let makeprg = syntastic#makeprg#build({ 'exe': 'zptlint' }) let makeprg = syntastic#makeprg#build({ 'exe': 'zptlint', 'subchecker': 'zptlint' })
let errorformat='%-P*** Error in: %f,%Z%*\s\, at line %l\, column %c,%E%*\s%m,%-Q' let errorformat='%-P*** Error in: %f,%Z%*\s\, at line %l\, column %c,%E%*\s%m,%-Q'
return SyntasticMake({ 'makeprg': makeprg, 'errorformat': errorformat }) return SyntasticMake({ 'makeprg': makeprg, 'errorformat': errorformat })
endfunction endfunction

View File

@ -20,7 +20,10 @@ function! SyntaxCheckers_zsh_zsh_IsAvailable()
endfunction endfunction
function! SyntaxCheckers_zsh_zsh_GetLocList() function! SyntaxCheckers_zsh_zsh_GetLocList()
let makeprg = syntastic#makeprg#build({ 'exe': 'zsh', 'args': '-n' }) let makeprg = syntastic#makeprg#build({
\ 'exe': 'zsh',
\ 'args': '-n',
\ 'subchecker': 'zsh' })
let errorformat = '%f:%l: %m' let errorformat = '%f:%l: %m'
return SyntasticMake({ 'makeprg': makeprg, 'errorformat': errorformat}) return SyntasticMake({ 'makeprg': makeprg, 'errorformat': errorformat})
endfunction endfunction