From 0ce25edcc65716e3ef1efe46b67f4a2309842fd9 Mon Sep 17 00:00:00 2001 From: LCD 47 Date: Tue, 26 Mar 2013 22:42:43 +0200 Subject: [PATCH 1/2] Set subchecker. --- syntax_checkers/sh/checkbashisms.vim | 9 ++++++--- syntax_checkers/sh/sh.vim | 3 ++- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/syntax_checkers/sh/checkbashisms.vim b/syntax_checkers/sh/checkbashisms.vim index ea8ee5d5..cd43b7e4 100644 --- a/syntax_checkers/sh/checkbashisms.vim +++ b/syntax_checkers/sh/checkbashisms.vim @@ -13,12 +13,15 @@ let g:loaded_syntastic_sh_checkbashisms_checker=1 function! SyntaxCheckers_sh_checkbashisms_IsAvailable() - return executable('checkbashisms.pl') + return executable('checkbashisms') endfunction 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 = \ '%Eerror: %f: %m,' . @@ -26,7 +29,7 @@ function! SyntaxCheckers_sh_checkbashisms_GetLocList() \ '%Wscript %f %m,%C%.# lines,' . \ '%Wpossible bashism in %f line %l (%m):,%C%.%#,%Z.%#' - return SyntasticMake({'makeprg': makeprg, 'errorformat': errorformat}) + return SyntasticMake({'makeprg': makeprg, 'errorformat': errorformat, 'subtype': 'Style'}) endfunction diff --git a/syntax_checkers/sh/sh.vim b/syntax_checkers/sh/sh.vim index a0141594..3d3ad3c7 100644 --- a/syntax_checkers/sh/sh.vim +++ b/syntax_checkers/sh/sh.vim @@ -63,7 +63,8 @@ function! SyntaxCheckers_sh_sh_GetLocList() let makeprg = syntastic#makeprg#build({ \ 'exe': s:GetShell(), - \ 'args': '-n' }) + \ 'args': '-n', + \ 'subchecker': 'sh'}) let errorformat = '%f: line %l: %m' return SyntasticMake({ 'makeprg': makeprg, 'errorformat': errorformat}) From 1247394786a0e61776bd888d6617da54710c9bba Mon Sep 17 00:00:00 2001 From: LCD 47 Date: Wed, 27 Mar 2013 11:17:15 +0200 Subject: [PATCH 2/2] Add subchecker to syntastic#makeprg#build() calls. --- syntax_checkers/applescript/osacompile.vim | 7 ++++--- syntax_checkers/co/coco.vim | 3 ++- syntax_checkers/coffee/coffee.vim | 3 ++- syntax_checkers/cs/mcs.vim | 3 ++- syntax_checkers/css/csslint.vim | 3 ++- syntax_checkers/cucumber/cucumber.vim | 3 ++- syntax_checkers/elixir/elixir.vim | 4 +++- syntax_checkers/fortran/gfortran.vim | 3 ++- syntax_checkers/haml/haml.vim | 3 ++- syntax_checkers/less/lessc.vim | 3 ++- syntax_checkers/lisp/clisp.vim | 3 ++- syntax_checkers/lua/luac.vim | 5 ++++- syntax_checkers/matlab/mlint.vim | 5 ++++- syntax_checkers/nasm/nasm.vim | 3 ++- syntax_checkers/rst/rst2pseudoxml.vim | 3 ++- syntax_checkers/rust/rustc.vim | 3 ++- syntax_checkers/sass/sass.vim | 3 ++- syntax_checkers/scala/scalac.vim | 3 ++- syntax_checkers/slim/slimrb.vim | 3 ++- syntax_checkers/tex/lacheck.vim | 2 +- syntax_checkers/typescript/tsc.vim | 3 ++- syntax_checkers/vala/valac.vim | 3 ++- syntax_checkers/xhtml/tidy.vim | 3 ++- syntax_checkers/xml/xmllint.vim | 3 ++- syntax_checkers/yaml/jsyaml.vim | 3 ++- syntax_checkers/z80/z80syntaxchecker.vim | 6 ++++-- syntax_checkers/zpt/zptlint.vim | 2 +- syntax_checkers/zsh/zsh.vim | 5 ++++- 28 files changed, 65 insertions(+), 31 deletions(-) diff --git a/syntax_checkers/applescript/osacompile.vim b/syntax_checkers/applescript/osacompile.vim index 91b100b5..4ce21e73 100644 --- a/syntax_checkers/applescript/osacompile.vim +++ b/syntax_checkers/applescript/osacompile.vim @@ -4,8 +4,8 @@ " Author: Zhao Cai " Email: caizhaoff@gmail.com " Version: 0.2.1 -" Date Created: Thu 09 Sep 2011 10:30:09 AM EST -" Last Modified: Fri 09 Dec 2011 01:10:24 PM EST +" Date Created: Thu 09 Sep 2011 10:30:09 AM EST +" Last Modified: Fri 09 Dec 2011 01:10:24 PM EST " " History: 0.1.0 - working, but it will run the script everytime to check " syntax. Should use osacompile but strangely it does not give @@ -37,7 +37,8 @@ endfunction function! SyntaxCheckers_applescript_osacompile_GetLocList() let makeprg = syntastic#makeprg#build({ \ 'exe': 'osacompile', - \ 'args': '-o ' . tempname() . '.scpt ' }) + \ 'args': '-o ' . tempname() . '.scpt ', + \ 'subchecker': 'osacompile' }) let errorformat = '%f:%l:%m' return SyntasticMake({ 'makeprg': makeprg, 'errorformat': errorformat }) diff --git a/syntax_checkers/co/coco.vim b/syntax_checkers/co/coco.vim index 54ac9cb5..9c30a043 100644 --- a/syntax_checkers/co/coco.vim +++ b/syntax_checkers/co/coco.vim @@ -26,7 +26,8 @@ endfunction function! SyntaxCheckers_co_coco_GetLocList() let makeprg = syntastic#makeprg#build({ \ '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' return SyntasticMake({ 'makeprg': makeprg, 'errorformat': errorformat }) diff --git a/syntax_checkers/coffee/coffee.vim b/syntax_checkers/coffee/coffee.vim index f4842c58..6e8e4779 100644 --- a/syntax_checkers/coffee/coffee.vim +++ b/syntax_checkers/coffee/coffee.vim @@ -21,7 +21,8 @@ endfunction function! SyntaxCheckers_coffee_coffee_GetLocList() let makeprg = syntastic#makeprg#build({ \ '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%.%#' return SyntasticMake({ 'makeprg': makeprg, 'errorformat': errorformat }) diff --git a/syntax_checkers/cs/mcs.vim b/syntax_checkers/cs/mcs.vim index 1d7ccc92..da809fd3 100644 --- a/syntax_checkers/cs/mcs.vim +++ b/syntax_checkers/cs/mcs.vim @@ -22,7 +22,8 @@ endfunction function! SyntaxCheckers_cs_mcs_GetLocList() let makeprg = syntastic#makeprg#build({ \ 'exe': 'mcs', - \ 'args': '--parse' }) + \ 'args': '--parse', + \ 'subchecker': 'mcs' }) let errorformat = '%f(%l\,%c): %trror %m' return SyntasticMake({ 'makeprg': makeprg, \ 'errorformat': errorformat, diff --git a/syntax_checkers/css/csslint.vim b/syntax_checkers/css/csslint.vim index 3306e879..62406a44 100644 --- a/syntax_checkers/css/csslint.vim +++ b/syntax_checkers/css/csslint.vim @@ -30,7 +30,8 @@ endfunction function! SyntaxCheckers_css_csslint_GetLocList() let makeprg = syntastic#makeprg#build({ \ '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. 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,' diff --git a/syntax_checkers/cucumber/cucumber.vim b/syntax_checkers/cucumber/cucumber.vim index ce6f9fc3..7d52968a 100644 --- a/syntax_checkers/cucumber/cucumber.vim +++ b/syntax_checkers/cucumber/cucumber.vim @@ -22,7 +22,8 @@ endfunction function! SyntaxCheckers_cucumber_cucumber_GetLocList() let makeprg = syntastic#makeprg#build({ \ '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%.%#' return SyntasticMake({ 'makeprg': makeprg, 'errorformat': errorformat }) diff --git a/syntax_checkers/elixir/elixir.vim b/syntax_checkers/elixir/elixir.vim index 453bab5e..cbd91c8c 100644 --- a/syntax_checkers/elixir/elixir.vim +++ b/syntax_checkers/elixir/elixir.vim @@ -29,7 +29,9 @@ function! SyntaxCheckers_elixir_elixir_IsAvailable() endfunction 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' return SyntasticMake({ 'makeprg': makeprg, 'errorformat': errorformat }) diff --git a/syntax_checkers/fortran/gfortran.vim b/syntax_checkers/fortran/gfortran.vim index 289e430c..0655d704 100644 --- a/syntax_checkers/fortran/gfortran.vim +++ b/syntax_checkers/fortran/gfortran.vim @@ -34,7 +34,8 @@ endfunction function! SyntaxCheckers_fortran_gfortran_GetLocList() let makeprg = syntastic#makeprg#build({ \ 'exe': 'gfortran', - \ 'args': s:args() }) + \ 'args': s:args(), + \ 'subchecker': 'gfortran' }) let errorformat = '%-C %#,%-C %#%.%#,%A%f:%l.%c:,%Z%m,%G%.%#' return SyntasticMake({ 'makeprg': makeprg, 'errorformat': errorformat }) endfunction diff --git a/syntax_checkers/haml/haml.vim b/syntax_checkers/haml/haml.vim index d17adaba..62fdfafe 100644 --- a/syntax_checkers/haml/haml.vim +++ b/syntax_checkers/haml/haml.vim @@ -22,7 +22,8 @@ endfunction function! SyntaxCheckers_haml_haml_GetLocList() let makeprg = syntastic#makeprg#build({ \ 'exe': 'haml', - \ 'args': '-c' }) + \ 'args': '-c', + \ 'subchecker': 'haml' }) let errorformat = 'Haml error on line %l: %m,Syntax error on line %l: %m,%-G%.%#' return SyntasticMake({ 'makeprg': makeprg, 'errorformat': errorformat }) endfunction diff --git a/syntax_checkers/less/lessc.vim b/syntax_checkers/less/lessc.vim index 74a32221..7ceddad8 100644 --- a/syntax_checkers/less/lessc.vim +++ b/syntax_checkers/less/lessc.vim @@ -44,7 +44,8 @@ function! SyntaxCheckers_less_lessc_GetLocList() let makeprg = syntastic#makeprg#build({ \ 'exe': s:check_file, \ 'args': g:syntastic_less_options, - \ 'tail': syntastic#util#DevNull() }) + \ 'tail': syntastic#util#DevNull(), + \ 'subchecker': 'lessc' }) let errorformat = '%m in %f:%l:%c' return SyntasticMake({ 'makeprg': makeprg, diff --git a/syntax_checkers/lisp/clisp.vim b/syntax_checkers/lisp/clisp.vim index 867e3c32..0f8c051c 100644 --- a/syntax_checkers/lisp/clisp.vim +++ b/syntax_checkers/lisp/clisp.vim @@ -22,7 +22,8 @@ function! SyntaxCheckers_lisp_clisp_GetLocList() let makeprg = syntastic#makeprg#build({ \ 'exe': 'clisp', \ 'args': '-c', - \ 'tail': '-o /tmp/clisp-vim-compiled-file' }) + \ 'tail': '-o /tmp/clisp-vim-compiled-file', + \ 'subchecker': 'clisp' }) let efm = '%-G;%.%#,' let efm .= '%W%>WARNING:%.%#line %l : %m,%C %#%m,' let efm .= '%E%>The following functions were %m,%Z %m,' diff --git a/syntax_checkers/lua/luac.vim b/syntax_checkers/lua/luac.vim index 464e14f7..77f017eb 100644 --- a/syntax_checkers/lua/luac.vim +++ b/syntax_checkers/lua/luac.vim @@ -44,7 +44,10 @@ endfunction 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' return SyntasticMake({ 'makeprg': makeprg, diff --git a/syntax_checkers/matlab/mlint.vim b/syntax_checkers/matlab/mlint.vim index 272a2109..837586fa 100644 --- a/syntax_checkers/matlab/mlint.vim +++ b/syntax_checkers/matlab/mlint.vim @@ -20,7 +20,10 @@ function! SyntaxCheckers_matlab_mlint_IsAvailable() endfunction 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' return SyntasticMake({ 'makeprg': makeprg, 'errorformat': errorformat, 'defaults': {'bufnr': bufnr("")} }) endfunction diff --git a/syntax_checkers/nasm/nasm.vim b/syntax_checkers/nasm/nasm.vim index 68bb91d5..0cf0b51a 100644 --- a/syntax_checkers/nasm/nasm.vim +++ b/syntax_checkers/nasm/nasm.vim @@ -27,7 +27,8 @@ function! SyntaxCheckers_nasm_nasm_GetLocList() 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 . ' -o ' . outfile, + \ 'subchecker': 'nasm' }) let errorformat = '%f:%l: %t%*[^:]: %m' return SyntasticMake({ 'makeprg': makeprg, 'errorformat': errorformat }) endfunction diff --git a/syntax_checkers/rst/rst2pseudoxml.vim b/syntax_checkers/rst/rst2pseudoxml.vim index e27e982f..f6d2518f 100644 --- a/syntax_checkers/rst/rst2pseudoxml.vim +++ b/syntax_checkers/rst/rst2pseudoxml.vim @@ -26,7 +26,8 @@ function! SyntaxCheckers_rst_rst2pseudoxml_GetLocList() let makeprg = syntastic#makeprg#build({ \ 'exe': s:exe(), \ 'args': '--report=2 --exit-status=1', - \ 'tail': syntastic#util#DevNull() }) + \ 'tail': syntastic#util#DevNull(), + \ 'subchecker': 'rst2pseudoxml' }) let errorformat = '%f:%l:\ (%tNFO/1)\ %m, \%f:%l:\ (%tARNING/2)\ %m, diff --git a/syntax_checkers/rust/rustc.vim b/syntax_checkers/rust/rustc.vim index 43ca3737..47bd34fb 100644 --- a/syntax_checkers/rust/rustc.vim +++ b/syntax_checkers/rust/rustc.vim @@ -22,7 +22,8 @@ endfunction function! SyntaxCheckers_rust_rustc_GetLocList() let makeprg = syntastic#makeprg#build({ \ 'exe': 'rustc', - \ 'args': '--parse-only' }) + \ 'args': '--parse-only', + \ 'subchecker': 'rustc' }) let errorformat = '%E%f:%l:%c: \\d%#:\\d%# %.%\{-}error:%.%\{-} %m,' . \ '%W%f:%l:%c: \\d%#:\\d%# %.%\{-}warning:%.%\{-} %m,' . diff --git a/syntax_checkers/sass/sass.vim b/syntax_checkers/sass/sass.vim index 3f09ff85..ae796e94 100644 --- a/syntax_checkers/sass/sass.vim +++ b/syntax_checkers/sass/sass.vim @@ -40,7 +40,8 @@ function! SyntaxCheckers_sass_sass_GetLocList() end let makeprg = syntastic#makeprg#build({ \ '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 .= ',%Wwarning on line %l:,%Z%m,Syntax %trror on line %l: %m' let loclist = SyntasticMake({ 'makeprg': makeprg, 'errorformat': errorformat }) diff --git a/syntax_checkers/scala/scalac.vim b/syntax_checkers/scala/scalac.vim index f02f3ef9..a2394c10 100644 --- a/syntax_checkers/scala/scalac.vim +++ b/syntax_checkers/scala/scalac.vim @@ -27,7 +27,8 @@ endif function! SyntaxCheckers_scala_scalac_GetLocList() let makeprg = syntastic#makeprg#build({ \ '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' diff --git a/syntax_checkers/slim/slimrb.vim b/syntax_checkers/slim/slimrb.vim index ca159e0b..57952f89 100644 --- a/syntax_checkers/slim/slimrb.vim +++ b/syntax_checkers/slim/slimrb.vim @@ -32,7 +32,8 @@ endfunction function! SyntaxCheckers_slim_slimrb_GetLocList() let makeprg = syntastic#makeprg#build({ \ 'exe': 'slimrb', - \ 'args': '-c' }) + \ 'args': '-c', + \ 'subchecker': 'slimrb' }) if syntastic#util#versionIsAtLeast(s:SlimrbVersion(), [1,3,1]) let errorformat = '%C\ %#%f\, Line %l\, Column %c,%-G\ %.%#,%ESlim::Parser::SyntaxError: %m,%+C%.%#' else diff --git a/syntax_checkers/tex/lacheck.vim b/syntax_checkers/tex/lacheck.vim index 3de289b4..a8d8d6bf 100644 --- a/syntax_checkers/tex/lacheck.vim +++ b/syntax_checkers/tex/lacheck.vim @@ -20,7 +20,7 @@ function! SyntaxCheckers_tex_lacheck_IsAvailable() endfunction 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' return SyntasticMake({ 'makeprg': makeprg, 'errorformat': errorformat }) endfunction diff --git a/syntax_checkers/typescript/tsc.vim b/syntax_checkers/typescript/tsc.vim index 55ee8cfe..a3279c36 100644 --- a/syntax_checkers/typescript/tsc.vim +++ b/syntax_checkers/typescript/tsc.vim @@ -17,7 +17,8 @@ endfunction function! SyntaxCheckers_typescript_tsc_GetLocList() let makeprg = syntastic#makeprg#build({ \ 'exe': 'tsc', - \ 'post_args': '--out ' . syntastic#util#DevNull() }) + \ 'post_args': '--out ' . syntastic#util#DevNull(), + \ 'subchecker': 'tsc' }) let errorformat = '%f %#(%l\,%c): %m' return SyntasticMake({ 'makeprg': makeprg, 'errorformat': errorformat }) endfunction diff --git a/syntax_checkers/vala/valac.vim b/syntax_checkers/vala/valac.vim index 52a567e0..21ad0ca8 100644 --- a/syntax_checkers/vala/valac.vim +++ b/syntax_checkers/vala/valac.vim @@ -51,7 +51,8 @@ function! SyntaxCheckers_vala_valac_GetLocList() let vala_pkg_args = join(map(s:GetValaModules(), '"--pkg ".v:val'), ' ') let makeprg = syntastic#makeprg#build({ \ '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' return SyntasticMake({ 'makeprg': makeprg, diff --git a/syntax_checkers/xhtml/tidy.vim b/syntax_checkers/xhtml/tidy.vim index 62bad001..5c2c64c1 100644 --- a/syntax_checkers/xhtml/tidy.vim +++ b/syntax_checkers/xhtml/tidy.vim @@ -42,7 +42,8 @@ function! SyntaxCheckers_xhtml_tidy_GetLocList() let encopt = s:TidyEncOptByFenc() let makeprg = syntastic#makeprg#build({ \ '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%.%#' return SyntasticMake({ 'makeprg': makeprg, 'errorformat': errorformat, 'defaults': {'bufnr': bufnr("")} }) endfunction diff --git a/syntax_checkers/xml/xmllint.vim b/syntax_checkers/xml/xmllint.vim index 89e3b533..23aa394a 100644 --- a/syntax_checkers/xml/xmllint.vim +++ b/syntax_checkers/xml/xmllint.vim @@ -26,7 +26,8 @@ endfunction function! SyntaxCheckers_xml_xmllint_GetLocList() let makeprg = syntastic#makeprg#build({ \ 'exe': 'xmllint', - \ 'args': '--xinclude --noout --postvalid' }) + \ 'args': '--xinclude --noout --postvalid', + \ 'subchecker': 'xmllint' }) let errorformat='%E%f:%l: error : %m,' . \ '%-G%f:%l: validity error : Validation failed: no DTD found %m,' . \ '%W%f:%l: warning : %m,' . diff --git a/syntax_checkers/yaml/jsyaml.vim b/syntax_checkers/yaml/jsyaml.vim index d6498d5c..bc91f1bb 100644 --- a/syntax_checkers/yaml/jsyaml.vim +++ b/syntax_checkers/yaml/jsyaml.vim @@ -25,7 +25,8 @@ endfunction function! SyntaxCheckers_yaml_jsyaml_GetLocList() let makeprg = syntastic#makeprg#build({ \ 'exe': 'js-yaml', - \ 'args': '--compact' }) + \ 'args': '--compact', + \ 'subchecker': 'jsyaml' }) let errorformat='Error on line %l\, col %c:%m,%-G%.%#' return SyntasticMake({ 'makeprg': makeprg, \ 'errorformat': errorformat, diff --git a/syntax_checkers/z80/z80syntaxchecker.vim b/syntax_checkers/z80/z80syntaxchecker.vim index 6628705e..bb8af00d 100644 --- a/syntax_checkers/z80/z80syntaxchecker.vim +++ b/syntax_checkers/z80/z80syntaxchecker.vim @@ -24,8 +24,10 @@ function! SyntaxCheckers_z80_z80syntaxchecker_IsAvailable() endfunction function! SyntaxCheckers_z80_z80syntaxchecker_GetLocList() - let makeprg = syntastic#makeprg#build({ 'exe': 'z80_syntax_checker.py' }) - let errorformat = '%f:%l %m' + let makeprg = syntastic#makeprg#build({ + \ 'exe': 'z80_syntax_checker.py', + \ 'subchecker': 'z80syntaxchecker' }) + let errorformat = '%f:%l %m' let loclist = SyntasticMake({ 'makeprg': makeprg, 'errorformat': errorformat }) return loclist endfunction diff --git a/syntax_checkers/zpt/zptlint.vim b/syntax_checkers/zpt/zptlint.vim index 218fe6c0..f9ef4492 100644 --- a/syntax_checkers/zpt/zptlint.vim +++ b/syntax_checkers/zpt/zptlint.vim @@ -29,7 +29,7 @@ function! SyntaxCheckers_zpt_zptlint_IsAvailable() endfunction 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' return SyntasticMake({ 'makeprg': makeprg, 'errorformat': errorformat }) endfunction diff --git a/syntax_checkers/zsh/zsh.vim b/syntax_checkers/zsh/zsh.vim index 7e004741..6cb776c5 100644 --- a/syntax_checkers/zsh/zsh.vim +++ b/syntax_checkers/zsh/zsh.vim @@ -20,7 +20,10 @@ function! SyntaxCheckers_zsh_zsh_IsAvailable() endfunction 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' return SyntasticMake({ 'makeprg': makeprg, 'errorformat': errorformat}) endfunction