From b9accaa8103d08a9ec1df113425e043abd210e6f Mon Sep 17 00:00:00 2001 From: LCD 47 Date: Fri, 3 Jan 2014 11:29:08 +0200 Subject: [PATCH] Minor cleanup: &cpo guards and formatting. --- syntax_checkers/actionscript/mxmlc.vim | 8 ++++--- syntax_checkers/ada/gcc.vim | 6 ++--- syntax_checkers/applescript/osacompile.vim | 12 ++++++++-- syntax_checkers/asciidoc/asciidoc.vim | 8 +++++++ syntax_checkers/c/checkpatch.vim | 9 ++++++++ syntax_checkers/c/cppcheck.vim | 8 +++++++ syntax_checkers/c/gcc.vim | 7 +++--- syntax_checkers/c/make.vim | 2 ++ syntax_checkers/c/oclint.vim | 8 +++++++ syntax_checkers/c/sparse.vim | 8 +++++++ syntax_checkers/c/splint.vim | 8 +++++++ syntax_checkers/c/ycm.vim | 2 ++ syntax_checkers/chef/foodcritic.vim | 14 ++++++++++-- syntax_checkers/co/coco.vim | 18 ++++++++++----- syntax_checkers/cobol/cobc.vim | 6 ++--- syntax_checkers/coffee/coffee.vim | 15 +++++++++++-- syntax_checkers/coffee/coffeelint.vim | 11 +++++++++- syntax_checkers/coq/coqtop.vim | 10 ++++++++- syntax_checkers/cpp/cppcheck.vim | 8 +++++++ syntax_checkers/cpp/cpplint.vim | 8 +++++++ syntax_checkers/cpp/gcc.vim | 6 ++--- syntax_checkers/cpp/oclint.vim | 2 ++ syntax_checkers/cpp/ycm.vim | 2 ++ syntax_checkers/cs/mcs.vim | 10 ++++++++- syntax_checkers/css/csslint.vim | 10 ++++++++- syntax_checkers/css/phpcs.vim | 5 ++++- syntax_checkers/css/prettycss.vim | 10 ++++++++- syntax_checkers/cucumber/cucumber.vim | 10 ++++++++- syntax_checkers/cuda/nvcc.vim | 11 ++++++++-- syntax_checkers/d/dmd.vim | 6 ++--- syntax_checkers/dart/dartanalyzer.vim | 9 ++++++++ syntax_checkers/docbk/xmllint.vim | 4 +++- syntax_checkers/dustjs/swiffer.vim | 10 ++++++--- syntax_checkers/elixir/elixir.vim | 11 +++++++++- syntax_checkers/erlang/escript.vim | 8 +++++++ syntax_checkers/eruby/ruby.vim | 10 ++++++++- syntax_checkers/fortran/gfortran.vim | 6 ++--- syntax_checkers/glsl/cgc.vim | 1 - syntax_checkers/go/go.vim | 11 +++++++++- syntax_checkers/go/gofmt.vim | 11 +++++++++- syntax_checkers/go/golint.vim | 11 +++++++++- syntax_checkers/go/gotype.vim | 1 + syntax_checkers/go/govet.vim | 11 +++++++++- syntax_checkers/haml/haml.vim | 10 ++++++++- syntax_checkers/handlebars/handlebars.vim | 11 +++++++++- syntax_checkers/haskell/ghc-mod.vim | 10 ++++++++- syntax_checkers/haskell/hdevtools.vim | 9 +++++++- syntax_checkers/haskell/hlint.vim | 8 +++++++ syntax_checkers/haxe/haxe.vim | 10 ++++++++- syntax_checkers/hss/hss.vim | 10 ++++++++- syntax_checkers/html/tidy.vim | 7 ++++++ syntax_checkers/html/validator.vim | 8 +++++++ syntax_checkers/html/w3.vim | 7 ++++++ syntax_checkers/java/checkstyle.vim | 11 +++++++++- syntax_checkers/java/javac.vim | 7 ++++++ .../javascript/closurecompiler.vim | 14 ++++++++++-- syntax_checkers/javascript/eslint.vim | 9 +++++++- syntax_checkers/javascript/gjslint.vim | 10 ++++++++- syntax_checkers/javascript/jshint.vim | 9 +++++++- syntax_checkers/javascript/jsl.vim | 10 ++++++++- syntax_checkers/javascript/jslint.vim | 10 ++++++++- syntax_checkers/json/jsonlint.vim | 10 ++++++++- syntax_checkers/json/jsonval.vim | 10 ++++++++- syntax_checkers/less/lessc.vim | 10 ++++++++- syntax_checkers/lex/flex.vim | 2 ++ syntax_checkers/limbo/limbo.vim | 8 +++++++ syntax_checkers/lisp/clisp.vim | 11 +++++++++- syntax_checkers/llvm/llvm.vim | 10 ++++++++- syntax_checkers/lua/luac.vim | 10 ++++++++- syntax_checkers/matlab/mlint.vim | 10 ++++++++- syntax_checkers/nasm/nasm.vim | 11 +++++++++- syntax_checkers/nroff/mandoc.vim | 10 ++++++++- syntax_checkers/objc/gcc.vim | 6 ++--- syntax_checkers/objc/oclint.vim | 2 ++ syntax_checkers/objc/ycm.vim | 2 ++ syntax_checkers/objcpp/gcc.vim | 6 ++--- syntax_checkers/objcpp/oclint.vim | 2 ++ syntax_checkers/objcpp/ycm.vim | 2 ++ syntax_checkers/ocaml/camlp4o.vim | 10 ++++++++- syntax_checkers/perl/perl.vim | 8 +++++++ syntax_checkers/perl/perlcritic.vim | 10 ++++++++- syntax_checkers/perl/podchecker.vim | 4 +++- syntax_checkers/php/php.vim | 10 ++++++++- syntax_checkers/php/phpcs.vim | 12 ++++++++-- syntax_checkers/php/phpmd.vim | 10 ++++++++- syntax_checkers/po/msgfmt.vim | 9 +++++++- syntax_checkers/pod/podchecker.vim | 10 ++++++++- syntax_checkers/puppet/puppet.vim | 10 ++++++++- syntax_checkers/puppet/puppetlint.vim | 10 ++++++++- syntax_checkers/python/flake8.vim | 15 ++++++++++--- syntax_checkers/python/pep257.vim | 8 +++++++ syntax_checkers/python/pep8.vim | 10 ++++++++- syntax_checkers/python/py3kwarn.vim | 11 +++++++++- syntax_checkers/python/pyflakes.vim | 9 ++++++++ syntax_checkers/python/pylama.vim | 13 +++++++++-- syntax_checkers/python/pylint.vim | 9 ++++++++ syntax_checkers/python/python.vim | 11 +++++++++- syntax_checkers/racket/racket.vim | 4 ++-- syntax_checkers/rst/rst2pseudoxml.vim | 22 ++++++++++--------- syntax_checkers/rst/rstcheck.vim | 15 ++++++++----- syntax_checkers/ruby/jruby.vim | 11 +++++++++- syntax_checkers/ruby/macruby.vim | 11 +++++++++- syntax_checkers/ruby/mri.vim | 10 ++++++++- syntax_checkers/ruby/rubocop.vim | 10 ++++++++- syntax_checkers/ruby/rubylint.vim | 8 ++++++- syntax_checkers/rust/rustc.vim | 10 ++++++++- syntax_checkers/sass/sass.vim | 10 ++++++++- syntax_checkers/scala/fsc.vim | 8 +++++++ syntax_checkers/scala/scalac.vim | 10 ++++++++- syntax_checkers/scss/sass.vim | 4 +++- syntax_checkers/scss/scss_lint.vim | 10 ++++++++- syntax_checkers/sh/checkbashisms.vim | 11 ++++++++-- syntax_checkers/sh/sh.vim | 10 ++++++++- syntax_checkers/sh/shellcheck.vim | 8 +++++++ syntax_checkers/slim/slimrb.vim | 10 ++++++++- syntax_checkers/tcl/nagelfar.vim | 11 +++++++++- syntax_checkers/tex/chktex.vim | 8 +++++++ syntax_checkers/tex/lacheck.vim | 10 ++++++++- syntax_checkers/text/atdtool.vim | 8 +++++++ syntax_checkers/twig/twiglint.vim | 10 ++++++++- syntax_checkers/typescript/tsc.vim | 10 ++++++++- syntax_checkers/vala/valac.vim | 8 +++++++ syntax_checkers/vhdl/ghdl.vim | 9 ++++++++ syntax_checkers/xhtml/tidy.vim | 10 ++++++++- syntax_checkers/xml/xmllint.vim | 10 ++++++++- syntax_checkers/xslt/xmllint.vim | 4 +++- syntax_checkers/yacc/bison.vim | 2 ++ syntax_checkers/yaml/jsyaml.vim | 10 ++++++++- syntax_checkers/yaml/yamlxs.vim | 10 ++++++++- syntax_checkers/z80/z80syntaxchecker.vim | 10 ++++++++- syntax_checkers/zpt/zptlint.vim | 10 ++++++++- syntax_checkers/zsh/zsh.vim | 10 ++++++++- 132 files changed, 1019 insertions(+), 146 deletions(-) diff --git a/syntax_checkers/actionscript/mxmlc.vim b/syntax_checkers/actionscript/mxmlc.vim index 98788e68..c9a1f768 100644 --- a/syntax_checkers/actionscript/mxmlc.vim +++ b/syntax_checkers/actionscript/mxmlc.vim @@ -14,13 +14,13 @@ if exists('g:loaded_syntastic_actionscript_mxmlc_checker') endif let g:loaded_syntastic_actionscript_mxmlc_checker = 1 -let s:save_cpo = &cpo -set cpo&vim - if !exists('g:syntastic_actionscript_mxmlc_conf') let g:syntastic_actionscript_mxmlc_conf = '' endif +let s:save_cpo = &cpo +set cpo&vim + function! SyntaxCheckers_actionscript_mxmlc_GetHighlightRegex(item) let term = '' @@ -66,3 +66,5 @@ call g:SyntasticRegistry.CreateAndRegisterChecker({ let &cpo = s:save_cpo unlet s:save_cpo + +" vim: set et sts=4 sw=4: diff --git a/syntax_checkers/ada/gcc.vim b/syntax_checkers/ada/gcc.vim index faefa90a..f44d611a 100644 --- a/syntax_checkers/ada/gcc.vim +++ b/syntax_checkers/ada/gcc.vim @@ -16,13 +16,13 @@ if !exists('g:syntastic_ada_compiler') let g:syntastic_ada_compiler = 'gcc' endif +let s:save_cpo = &cpo +set cpo&vim + function! SyntaxCheckers_ada_gcc_IsAvailable() dict return executable(expand(g:syntastic_ada_compiler)) endfunction -let s:save_cpo = &cpo -set cpo&vim - if !exists('g:syntastic_ada_compiler_options') let g:syntastic_ada_compiler_options = '' endif diff --git a/syntax_checkers/applescript/osacompile.vim b/syntax_checkers/applescript/osacompile.vim index bf10d722..b57512f4 100644 --- a/syntax_checkers/applescript/osacompile.vim +++ b/syntax_checkers/applescript/osacompile.vim @@ -28,7 +28,10 @@ if exists("g:loaded_syntastic_applescript_osacompile_checker") finish endif -let g:loaded_syntastic_applescript_osacompile_checker=1 +let g:loaded_syntastic_applescript_osacompile_checker = 1 + +let s:save_cpo = &cpo +set cpo&vim function! SyntaxCheckers_applescript_osacompile_GetLocList() dict let makeprg = self.makeprgBuild({ 'args': '-o ' . tempname() . '.scpt' }) @@ -38,4 +41,9 @@ endfunction call g:SyntasticRegistry.CreateAndRegisterChecker({ \ 'filetype': 'applescript', - \ 'name': 'osacompile'}) + \ 'name': 'osacompile' }) + +let &cpo = s:save_cpo +unlet s:save_cpo + +" vim: set et sts=4 sw=4: diff --git a/syntax_checkers/asciidoc/asciidoc.vim b/syntax_checkers/asciidoc/asciidoc.vim index 41bd6c28..2b261ca3 100644 --- a/syntax_checkers/asciidoc/asciidoc.vim +++ b/syntax_checkers/asciidoc/asciidoc.vim @@ -15,6 +15,9 @@ if exists("g:loaded_syntastic_asciidoc_asciidoc_checker") endif let g:loaded_syntastic_asciidoc_asciidoc_checker = 1 +let s:save_cpo = &cpo +set cpo&vim + function! SyntaxCheckers_asciidoc_asciidoc_GetLocList() dict let makeprg = self.makeprgBuild({ 'args': syntastic#c#NullOutput() }) @@ -37,3 +40,8 @@ endfunction call g:SyntasticRegistry.CreateAndRegisterChecker({ \ 'filetype': 'asciidoc', \ 'name': 'asciidoc'}) + +let &cpo = s:save_cpo +unlet s:save_cpo + +" vim: set et sts=4 sw=4: diff --git a/syntax_checkers/c/checkpatch.vim b/syntax_checkers/c/checkpatch.vim index f9a137ca..746e2f55 100644 --- a/syntax_checkers/c/checkpatch.vim +++ b/syntax_checkers/c/checkpatch.vim @@ -8,6 +8,7 @@ " Want To Public License, Version 2, as published by Sam Hocevar. " See http://sam.zoy.org/wtfpl/COPYING for more details. "============================================================================ + if exists("g:loaded_syntastic_c_checkpatch_checker") finish endif @@ -20,6 +21,9 @@ elseif executable("./scripts/checkpatch.pl") let g:syntastic_c_checker_checkpatch_location = './scripts/checkpatch.pl' endif +let s:save_cpo = &cpo +set cpo&vim + function! SyntaxCheckers_c_checkpatch_IsAvailable() dict return exists("g:syntastic_c_checker_checkpatch_location") endfunction @@ -44,3 +48,8 @@ call g:SyntasticRegistry.CreateAndRegisterChecker({ \ 'filetype': 'c', \ 'name': 'checkpatch', \ 'exec': 'checkpatch.pl'}) + +let &cpo = s:save_cpo +unlet s:save_cpo + +" vim: set et sts=4 sw=4: diff --git a/syntax_checkers/c/cppcheck.vim b/syntax_checkers/c/cppcheck.vim index 96a4f947..6e943cd0 100644 --- a/syntax_checkers/c/cppcheck.vim +++ b/syntax_checkers/c/cppcheck.vim @@ -25,6 +25,9 @@ if !exists('g:syntastic_cppcheck_config_file') let g:syntastic_cppcheck_config_file = '.syntastic_cppcheck_config' endif +let s:save_cpo = &cpo +set cpo&vim + function! SyntaxCheckers_c_cppcheck_GetLocList() dict let makeprg = self.makeprgBuild({ \ 'args': '-q ' . syntastic#c#ReadConfig(g:syntastic_cppcheck_config_file), @@ -58,3 +61,8 @@ endfunction call g:SyntasticRegistry.CreateAndRegisterChecker({ \ 'filetype': 'c', \ 'name': 'cppcheck'}) + +let &cpo = s:save_cpo +unlet s:save_cpo + +" vim: set et sts=4 sw=4: diff --git a/syntax_checkers/c/gcc.vim b/syntax_checkers/c/gcc.vim index 1adca2ee..0832efde 100644 --- a/syntax_checkers/c/gcc.vim +++ b/syntax_checkers/c/gcc.vim @@ -10,7 +10,6 @@ " "============================================================================ - if exists('g:loaded_syntastic_c_gcc_checker') finish endif @@ -20,13 +19,13 @@ if !exists('g:syntastic_c_compiler') let g:syntastic_c_compiler = executable('gcc') ? 'gcc' : 'clang' endif +let s:save_cpo = &cpo +set cpo&vim + function! SyntaxCheckers_c_gcc_IsAvailable() dict return executable(expand(g:syntastic_c_compiler)) endfunction -let s:save_cpo = &cpo -set cpo&vim - if !exists('g:syntastic_c_compiler_options') let g:syntastic_c_compiler_options = '-std=gnu99' endif diff --git a/syntax_checkers/c/make.vim b/syntax_checkers/c/make.vim index 56e283e4..c019da5a 100644 --- a/syntax_checkers/c/make.vim +++ b/syntax_checkers/c/make.vim @@ -57,3 +57,5 @@ call g:SyntasticRegistry.CreateAndRegisterChecker({ let &cpo = s:save_cpo unlet s:save_cpo + +" vim: set et sts=4 sw=4: diff --git a/syntax_checkers/c/oclint.vim b/syntax_checkers/c/oclint.vim index 9e9e098c..db270c2e 100644 --- a/syntax_checkers/c/oclint.vim +++ b/syntax_checkers/c/oclint.vim @@ -25,6 +25,9 @@ if !exists('g:syntastic_oclint_config_file') let g:syntastic_oclint_config_file = '.syntastic_oclint_config' endif +let s:save_cpo = &cpo +set cpo&vim + function! SyntaxCheckers_c_oclint_GetLocList() dict let makeprg = self.makeprgBuild({ \ 'post_args': '-- -c ' . syntastic#c#ReadConfig(g:syntastic_oclint_config_file) }) @@ -48,3 +51,8 @@ endfunction call g:SyntasticRegistry.CreateAndRegisterChecker({ \ 'filetype': 'c', \ 'name': 'oclint'}) + +let &cpo = s:save_cpo +unlet s:save_cpo + +" vim: set et sts=4 sw=4: diff --git a/syntax_checkers/c/sparse.vim b/syntax_checkers/c/sparse.vim index 11d5dfbb..aa01320f 100644 --- a/syntax_checkers/c/sparse.vim +++ b/syntax_checkers/c/sparse.vim @@ -25,6 +25,9 @@ if !exists('g:syntastic_sparse_config_file') let g:syntastic_sparse_config_file = '.syntastic_sparse_config' endif +let s:save_cpo = &cpo +set cpo&vim + function! SyntaxCheckers_c_sparse_GetLocList() dict let makeprg = self.makeprgBuild({ \ 'args': '-ftabstop=' . &ts . ' ' . syntastic#c#ReadConfig(g:syntastic_sparse_config_file) }) @@ -42,3 +45,8 @@ endfunction call g:SyntasticRegistry.CreateAndRegisterChecker({ \ 'filetype': 'c', \ 'name': 'sparse'}) + +let &cpo = s:save_cpo +unlet s:save_cpo + +" vim: set et sts=4 sw=4: diff --git a/syntax_checkers/c/splint.vim b/syntax_checkers/c/splint.vim index 4b55e5e5..a4413946 100644 --- a/syntax_checkers/c/splint.vim +++ b/syntax_checkers/c/splint.vim @@ -25,6 +25,9 @@ if !exists('g:syntastic_splint_config_file') let g:syntastic_splint_config_file = '.syntastic_splint_config' endif +let s:save_cpo = &cpo +set cpo&vim + function! SyntaxCheckers_c_splint_GetLocList() dict let makeprg = self.makeprgBuild({ \ 'post_args': '-showfunc -hints +quiet ' . syntastic#c#ReadConfig(g:syntastic_splint_config_file) }) @@ -48,3 +51,8 @@ endfunction call g:SyntasticRegistry.CreateAndRegisterChecker({ \ 'filetype': 'c', \ 'name': 'splint'}) + +let &cpo = s:save_cpo +unlet s:save_cpo + +" vim: set et sts=4 sw=4: diff --git a/syntax_checkers/c/ycm.vim b/syntax_checkers/c/ycm.vim index d410aba6..6e9f06c3 100644 --- a/syntax_checkers/c/ycm.vim +++ b/syntax_checkers/c/ycm.vim @@ -30,3 +30,5 @@ endfunction call g:SyntasticRegistry.CreateAndRegisterChecker({ \ 'filetype': 'c', \ 'name': 'ycm'}) + +" vim: set et sts=4 sw=4: diff --git a/syntax_checkers/chef/foodcritic.vim b/syntax_checkers/chef/foodcritic.vim index 8fec3236..e7773331 100644 --- a/syntax_checkers/chef/foodcritic.vim +++ b/syntax_checkers/chef/foodcritic.vim @@ -13,7 +13,10 @@ if exists("g:loaded_syntastic_chef_foodcritic_checker") finish endif -let g:loaded_syntastic_chef_foodcritic_checker=1 +let g:loaded_syntastic_chef_foodcritic_checker = 1 + +let s:save_cpo = &cpo +set cpo&vim function! SyntaxCheckers_chef_foodcritic_GetLocList() dict let makeprg = self.makeprgBuild({}) @@ -21,9 +24,16 @@ function! SyntaxCheckers_chef_foodcritic_GetLocList() dict " FC023: Prefer conditional attributes: ./recipes/config.rb:49 let errorformat = 'FC%n: %m: %f:%l' - return SyntasticMake({ 'makeprg': makeprg, 'errorformat': errorformat }) + return SyntasticMake({ + \ 'makeprg': makeprg, + \ 'errorformat': errorformat }) endfunction call g:SyntasticRegistry.CreateAndRegisterChecker({ \ 'filetype': 'chef', \ 'name': 'foodcritic'}) + +let &cpo = s:save_cpo +unlet s:save_cpo + +" vim: set et sts=4 sw=4: diff --git a/syntax_checkers/co/coco.vim b/syntax_checkers/co/coco.vim index 95977be1..edad1d7b 100644 --- a/syntax_checkers/co/coco.vim +++ b/syntax_checkers/co/coco.vim @@ -9,15 +9,14 @@ " See http://sam.zoy.org/wtfpl/COPYING for more details. " "============================================================================ + if exists("g:loaded_syntastic_co_coco_checker") finish endif -let g:loaded_syntastic_co_coco_checker=1 +let g:loaded_syntastic_co_coco_checker = 1 -"bail if the user doesnt have coco installed -if !executable("coco") - finish -endif +let s:save_cpo = &cpo +set cpo&vim function! SyntaxCheckers_co_coco_GetLocList() dict let makeprg = self.makeprgBuild({ 'args': '-c -o /tmp' }) @@ -28,9 +27,16 @@ function! SyntaxCheckers_co_coco_GetLocList() dict \ '%EFailed at: %f,'. \ '%Z%trror: Parse error on line %l: %m' - return SyntasticMake({ 'makeprg': makeprg, 'errorformat': errorformat }) + return SyntasticMake({ + \ 'makeprg': makeprg, + \ 'errorformat': errorformat }) endfunction call g:SyntasticRegistry.CreateAndRegisterChecker({ \ 'filetype': 'co', \ 'name': 'coco'}) + +let &cpo = s:save_cpo +unlet s:save_cpo + +" vim: set et sts=4 sw=4: diff --git a/syntax_checkers/cobol/cobc.vim b/syntax_checkers/cobol/cobc.vim index 41fa1aa4..7a791de4 100644 --- a/syntax_checkers/cobol/cobc.vim +++ b/syntax_checkers/cobol/cobc.vim @@ -20,13 +20,13 @@ if !exists('g:syntastic_cobol_compiler') let g:syntastic_cobol_compiler = 'cobc' endif +let s:save_cpo = &cpo +set cpo&vim + function! SyntaxCheckers_cobol_cobc_IsAvailable() dict return executable(expand(g:syntastic_cobol_compiler)) endfunction -let s:save_cpo = &cpo -set cpo&vim - if !exists('g:syntastic_cobol_compiler_options') let g:syntastic_cobol_compiler_options = '' endif diff --git a/syntax_checkers/coffee/coffee.vim b/syntax_checkers/coffee/coffee.vim index b1ae906e..3fa52513 100644 --- a/syntax_checkers/coffee/coffee.vim +++ b/syntax_checkers/coffee/coffee.vim @@ -12,10 +12,14 @@ " " Note: this script requires CoffeeScript version 1.6.2 or newer. " + if exists("g:loaded_syntastic_coffee_coffee_checker") finish endif -let g:loaded_syntastic_coffee_coffee_checker=1 +let g:loaded_syntastic_coffee_coffee_checker = 1 + +let s:save_cpo = &cpo +set cpo&vim function! SyntaxCheckers_coffee_coffee_IsAvailable() dict let exe = self.getExec() @@ -37,9 +41,16 @@ function! SyntaxCheckers_coffee_coffee_GetLocList() dict \ '%-Z%p^,' . \ '%-G%.%#' - return SyntasticMake({ 'makeprg': makeprg, 'errorformat': errorformat }) + return SyntasticMake({ + \ 'makeprg': makeprg, + \ 'errorformat': errorformat }) endfunction call g:SyntasticRegistry.CreateAndRegisterChecker({ \ 'filetype': 'coffee', \ 'name': 'coffee'}) + +let &cpo = s:save_cpo +unlet s:save_cpo + +" vim: set et sts=4 sw=4: diff --git a/syntax_checkers/coffee/coffeelint.vim b/syntax_checkers/coffee/coffeelint.vim index 40eb189e..efa95376 100644 --- a/syntax_checkers/coffee/coffeelint.vim +++ b/syntax_checkers/coffee/coffeelint.vim @@ -9,10 +9,14 @@ " See http://sam.zoy.org/wtfpl/COPYING for more details. " "============================================================================ + if exists("g:loaded_syntastic_coffee_coffeelint_checker") finish endif -let g:loaded_syntastic_coffee_coffeelint_checker=1 +let g:loaded_syntastic_coffee_coffeelint_checker = 1 + +let s:save_cpo = &cpo +set cpo&vim function! SyntaxCheckers_coffee_coffeelint_GetLocList() dict let makeprg = self.makeprgBuild({ 'args': '--csv' }) @@ -33,3 +37,8 @@ endfunction call g:SyntasticRegistry.CreateAndRegisterChecker({ \ 'filetype': 'coffee', \ 'name': 'coffeelint'}) + +let &cpo = s:save_cpo +unlet s:save_cpo + +" vim: set et sts=4 sw=4: diff --git a/syntax_checkers/coq/coqtop.vim b/syntax_checkers/coq/coqtop.vim index cb3597ff..714e93b7 100644 --- a/syntax_checkers/coq/coqtop.vim +++ b/syntax_checkers/coq/coqtop.vim @@ -13,7 +13,10 @@ if exists("g:loaded_syntastic_coq_coqtop_checker") finish endif -let g:loaded_syntastic_coq_coqtop_checker=1 +let g:loaded_syntastic_coq_coqtop_checker = 1 + +let s:save_cpo = &cpo +set cpo&vim function! SyntaxCheckers_coq_coqtop_GetLocList() dict let makeprg = self.makeprgBuild({ 'args': '-noglob -batch -load-vernac-source' }) @@ -30,3 +33,8 @@ endfunction call g:SyntasticRegistry.CreateAndRegisterChecker({ \ 'filetype': 'coq', \ 'name': 'coqtop'}) + +let &cpo = s:save_cpo +unlet s:save_cpo + +" vim: set et sts=4 sw=4: diff --git a/syntax_checkers/cpp/cppcheck.vim b/syntax_checkers/cpp/cppcheck.vim index 091caa89..73e9b0e2 100644 --- a/syntax_checkers/cpp/cppcheck.vim +++ b/syntax_checkers/cpp/cppcheck.vim @@ -25,6 +25,9 @@ if !exists('g:syntastic_cppcheck_config_file') let g:syntastic_cppcheck_config_file = '.syntastic_cppcheck_config' endif +let s:save_cpo = &cpo +set cpo&vim + function! SyntaxCheckers_cpp_cppcheck_GetLocList() dict let makeprg = self.makeprgBuild({ \ 'args': '-q ' . syntastic#c#ReadConfig(g:syntastic_cppcheck_config_file), @@ -58,3 +61,8 @@ endfunction call g:SyntasticRegistry.CreateAndRegisterChecker({ \ 'filetype': 'cpp', \ 'name': 'cppcheck'}) + +let &cpo = s:save_cpo +unlet s:save_cpo + +" vim: set et sts=4 sw=4: diff --git a/syntax_checkers/cpp/cpplint.vim b/syntax_checkers/cpp/cpplint.vim index 32bda206..923301f7 100644 --- a/syntax_checkers/cpp/cpplint.vim +++ b/syntax_checkers/cpp/cpplint.vim @@ -31,6 +31,9 @@ if !exists('g:syntastic_cpp_cpplint_thres') let g:syntastic_cpp_cpplint_thres = 5 endif +let s:save_cpo = &cpo +set cpo&vim + function! SyntaxCheckers_cpp_cpplint_GetLocList() dict let makeprg = self.makeprgBuild({ 'args': '--verbose=3' }) @@ -53,3 +56,8 @@ call g:SyntasticRegistry.CreateAndRegisterChecker({ \ 'filetype': 'cpp', \ 'name': 'cpplint', \ 'exec': 'cpplint.py'}) + +let &cpo = s:save_cpo +unlet s:save_cpo + +" vim: set et sts=4 sw=4: diff --git a/syntax_checkers/cpp/gcc.vim b/syntax_checkers/cpp/gcc.vim index c55b9c6b..0d77d4dd 100644 --- a/syntax_checkers/cpp/gcc.vim +++ b/syntax_checkers/cpp/gcc.vim @@ -19,13 +19,13 @@ if !exists('g:syntastic_cpp_compiler') let g:syntastic_cpp_compiler = executable('g++') ? 'g++' : 'clang++' endif +let s:save_cpo = &cpo +set cpo&vim + function! SyntaxCheckers_cpp_gcc_IsAvailable() dict return executable(expand(g:syntastic_cpp_compiler)) endfunction -let s:save_cpo = &cpo -set cpo&vim - if !exists('g:syntastic_cpp_compiler_options') let g:syntastic_cpp_compiler_options = '' endif diff --git a/syntax_checkers/cpp/oclint.vim b/syntax_checkers/cpp/oclint.vim index 70d64b68..b467cd75 100644 --- a/syntax_checkers/cpp/oclint.vim +++ b/syntax_checkers/cpp/oclint.vim @@ -27,3 +27,5 @@ call g:SyntasticRegistry.CreateAndRegisterChecker({ \ 'filetype': 'cpp', \ 'name': 'oclint', \ 'redirect': 'c/oclint'}) + +" vim: set et sts=4 sw=4: diff --git a/syntax_checkers/cpp/ycm.vim b/syntax_checkers/cpp/ycm.vim index df39a520..c04ac107 100644 --- a/syntax_checkers/cpp/ycm.vim +++ b/syntax_checkers/cpp/ycm.vim @@ -25,3 +25,5 @@ call g:SyntasticRegistry.CreateAndRegisterChecker({ \ 'filetype': 'cpp', \ 'name': 'ycm', \ 'redirect': 'c/ycm'}) + +" vim: set et sts=4 sw=4: diff --git a/syntax_checkers/cs/mcs.vim b/syntax_checkers/cs/mcs.vim index 50947c2d..5b7c133f 100644 --- a/syntax_checkers/cs/mcs.vim +++ b/syntax_checkers/cs/mcs.vim @@ -13,7 +13,10 @@ if exists("g:loaded_syntastic_cs_mcs_checker") finish endif -let g:loaded_syntastic_cs_mcs_checker=1 +let g:loaded_syntastic_cs_mcs_checker = 1 + +let s:save_cpo = &cpo +set cpo&vim function! SyntaxCheckers_cs_mcs_GetLocList() dict let makeprg = self.makeprgBuild({ 'args': '--parse' }) @@ -29,3 +32,8 @@ endfunction call g:SyntasticRegistry.CreateAndRegisterChecker({ \ 'filetype': 'cs', \ 'name': 'mcs'}) + +let &cpo = s:save_cpo +unlet s:save_cpo + +" vim: set et sts=4 sw=4: diff --git a/syntax_checkers/css/csslint.vim b/syntax_checkers/css/csslint.vim index 401001e2..28710838 100644 --- a/syntax_checkers/css/csslint.vim +++ b/syntax_checkers/css/csslint.vim @@ -17,12 +17,15 @@ if exists('g:loaded_syntastic_css_csslint_checker') finish endif -let g:loaded_syntastic_css_csslint_checker=1 +let g:loaded_syntastic_css_csslint_checker = 1 if !exists('g:syntastic_csslint_options') let g:syntastic_csslint_options = '' endif +let s:save_cpo = &cpo +set cpo&vim + function! SyntaxCheckers_css_csslint_GetLocList() dict let makeprg = self.makeprgBuild({ 'args': '--format=compact ' . g:syntastic_csslint_options }) @@ -44,3 +47,8 @@ endfunction call g:SyntasticRegistry.CreateAndRegisterChecker({ \ 'filetype': 'css', \ 'name': 'csslint'}) + +let &cpo = s:save_cpo +unlet s:save_cpo + +" vim: set et sts=4 sw=4: diff --git a/syntax_checkers/css/phpcs.vim b/syntax_checkers/css/phpcs.vim index 8dc34a2c..86aefeb6 100644 --- a/syntax_checkers/css/phpcs.vim +++ b/syntax_checkers/css/phpcs.vim @@ -13,10 +13,11 @@ " See here for details of phpcs " - phpcs (see http://pear.php.net/package/PHP_CodeSniffer) " + if exists("g:loaded_syntastic_css_phpcs_checker") finish endif -let g:loaded_syntastic_css_phpcs_checker=1 +let g:loaded_syntastic_css_phpcs_checker = 1 runtime! syntax_checkers/php/*.vim @@ -24,3 +25,5 @@ call g:SyntasticRegistry.CreateAndRegisterChecker({ \ 'filetype': 'css', \ 'name': 'phpcs', \ 'redirect': 'php/phpcs'}) + +" vim: set et sts=4 sw=4: diff --git a/syntax_checkers/css/prettycss.vim b/syntax_checkers/css/prettycss.vim index 95441486..536568fa 100644 --- a/syntax_checkers/css/prettycss.vim +++ b/syntax_checkers/css/prettycss.vim @@ -18,7 +18,10 @@ if exists("g:loaded_syntastic_css_prettycss_checker") finish endif -let g:loaded_syntastic_css_prettycss_checker=1 +let g:loaded_syntastic_css_prettycss_checker = 1 + +let s:save_cpo = &cpo +set cpo&vim function! SyntaxCheckers_css_prettycss_GetHighlightRegex(item) let term = matchstr(a:item["text"], '\m (\zs[^)]\+\ze)$') @@ -53,3 +56,8 @@ endfunction call g:SyntasticRegistry.CreateAndRegisterChecker({ \ 'filetype': 'css', \ 'name': 'prettycss'}) + +let &cpo = s:save_cpo +unlet s:save_cpo + +" vim: set et sts=4 sw=4: diff --git a/syntax_checkers/cucumber/cucumber.vim b/syntax_checkers/cucumber/cucumber.vim index cc40e0cf..0edb76e0 100644 --- a/syntax_checkers/cucumber/cucumber.vim +++ b/syntax_checkers/cucumber/cucumber.vim @@ -13,7 +13,10 @@ if exists("g:loaded_syntastic_cucumber_cucumber_checker") finish endif -let g:loaded_syntastic_cucumber_cucumber_checker=1 +let g:loaded_syntastic_cucumber_cucumber_checker = 1 + +let s:save_cpo = &cpo +set cpo&vim function! SyntaxCheckers_cucumber_cucumber_GetLocList() dict let makeprg = self.makeprgBuild({ 'args': '--dry-run --quiet --strict --format pretty' }) @@ -32,3 +35,8 @@ endfunction call g:SyntasticRegistry.CreateAndRegisterChecker({ \ 'filetype': 'cucumber', \ 'name': 'cucumber'}) + +let &cpo = s:save_cpo +unlet s:save_cpo + +" vim: set et sts=4 sw=4: diff --git a/syntax_checkers/cuda/nvcc.vim b/syntax_checkers/cuda/nvcc.vim index 08658e2f..1494982e 100644 --- a/syntax_checkers/cuda/nvcc.vim +++ b/syntax_checkers/cuda/nvcc.vim @@ -18,11 +18,13 @@ " " let g:syntastic_cuda_arch = "sm_20" - if exists("g:loaded_syntastic_cuda_nvcc_checker") finish endif -let g:loaded_syntastic_cuda_nvcc_checker=1 +let g:loaded_syntastic_cuda_nvcc_checker = 1 + +let s:save_cpo = &cpo +set cpo&vim function! SyntaxCheckers_cuda_nvcc_GetLocList() dict if exists('g:syntastic_cuda_arch') @@ -68,3 +70,8 @@ endfunction call g:SyntasticRegistry.CreateAndRegisterChecker({ \ 'filetype': 'cuda', \ 'name': 'nvcc'}) + +let &cpo = s:save_cpo +unlet s:save_cpo + +" vim: set et sts=4 sw=4: diff --git a/syntax_checkers/d/dmd.vim b/syntax_checkers/d/dmd.vim index 0c1df604..dbaa36ee 100644 --- a/syntax_checkers/d/dmd.vim +++ b/syntax_checkers/d/dmd.vim @@ -24,13 +24,13 @@ if !exists('g:syntastic_d_compiler') let g:syntastic_d_compiler = 'dmd' endif +let s:save_cpo = &cpo +set cpo&vim + function! SyntaxCheckers_d_dmd_IsAvailable() dict return executable(expand(g:syntastic_d_compiler)) endfunction -let s:save_cpo = &cpo -set cpo&vim - if !exists('g:syntastic_d_compiler_options') let g:syntastic_d_compiler_options = '' endif diff --git a/syntax_checkers/dart/dartanalyzer.vim b/syntax_checkers/dart/dartanalyzer.vim index eb8c42e9..9dc5fd9f 100644 --- a/syntax_checkers/dart/dartanalyzer.vim +++ b/syntax_checkers/dart/dartanalyzer.vim @@ -8,11 +8,15 @@ " Want To Public License, Version 2, as published by Sam Hocevar. " See http://sam.zoy.org/wtfpl/COPYING for more details. "============================================================================ + if exists("g:loaded_syntastic_dart_dartanalyzer_checker") finish endif let g:loaded_syntastic_dart_dartanalyzer_checker = 1 +let s:save_cpo = &cpo +set cpo&vim + function! SyntaxCheckers_dart_dartanalyzer_GetHighlightRegex(error) if a:error['len'] let lcol = a:error['col'] - 1 @@ -65,3 +69,8 @@ endfunction call g:SyntasticRegistry.CreateAndRegisterChecker({ \ 'filetype': 'dart', \ 'name': 'dartanalyzer' }) + +let &cpo = s:save_cpo +unlet s:save_cpo + +" vim: set et sts=4 sw=4: diff --git a/syntax_checkers/docbk/xmllint.vim b/syntax_checkers/docbk/xmllint.vim index 78d801a7..bfb9da0a 100644 --- a/syntax_checkers/docbk/xmllint.vim +++ b/syntax_checkers/docbk/xmllint.vim @@ -13,7 +13,7 @@ if exists("g:loaded_syntastic_docbk_xmllint_checker") finish endif -let g:loaded_syntastic_docbk_xmllint_checker=1 +let g:loaded_syntastic_docbk_xmllint_checker = 1 runtime! syntax_checkers/xml/*.vim @@ -21,3 +21,5 @@ call g:SyntasticRegistry.CreateAndRegisterChecker({ \ 'filetype': 'docbk', \ 'name': 'xmllint', \ 'redirect': 'xml/xmllint'}) + +" vim: set et sts=4 sw=4: diff --git a/syntax_checkers/dustjs/swiffer.vim b/syntax_checkers/dustjs/swiffer.vim index 27cec0e0..0bdf2813 100644 --- a/syntax_checkers/dustjs/swiffer.vim +++ b/syntax_checkers/dustjs/swiffer.vim @@ -15,9 +15,8 @@ endif let g:loaded_syntastic_dustjs_swiffer_checker = 1 -function! SyntaxCheckers_dustjs_swiffer_IsAvailable() dict - return executable('swiffer') -endfunction +let s:save_cpo = &cpo +set cpo&vim function! SyntaxCheckers_dustjs_swiffer_GetLocList() dict let makeprg = self.makeprgBuild({}) @@ -32,3 +31,8 @@ function! SyntaxCheckers_dustjs_swiffer_GetLocList() dict call SyntasticRegistry.CreateAndRegisterChecker({ \ 'filetype': 'dustjs', \ 'name': 'swiffer'}) + +let &cpo = s:save_cpo +unlet s:save_cpo + +" vim: set et sts=4 sw=4: diff --git a/syntax_checkers/elixir/elixir.vim b/syntax_checkers/elixir/elixir.vim index f4746a64..566131d5 100644 --- a/syntax_checkers/elixir/elixir.vim +++ b/syntax_checkers/elixir/elixir.vim @@ -9,10 +9,14 @@ " See http://sam.zoy.org/wtfpl/COPYING for more details. " "============================================================================ + if exists("g:loaded_syntastic_elixir_elixir_checker") finish endif -let g:loaded_syntastic_elixir_elixir_checker=1 +let g:loaded_syntastic_elixir_elixir_checker = 1 + +let s:save_cpo = &cpo +set cpo&vim " TODO: we should probably split this into separate checkers function! SyntaxCheckers_elixir_elixir_IsAvailable() dict @@ -40,3 +44,8 @@ endfunction call g:SyntasticRegistry.CreateAndRegisterChecker({ \ 'filetype': 'elixir', \ 'name': 'elixir'}) + +let &cpo = s:save_cpo +unlet s:save_cpo + +" vim: set et sts=4 sw=4: diff --git a/syntax_checkers/erlang/escript.vim b/syntax_checkers/erlang/escript.vim index ba6d0b16..5f7054be 100644 --- a/syntax_checkers/erlang/escript.vim +++ b/syntax_checkers/erlang/escript.vim @@ -21,6 +21,9 @@ endif let s:check_file = expand(':p:h') . '/erlang_check_file.erl' +let s:save_cpo = &cpo +set cpo&vim + function! SyntaxCheckers_erlang_escript_GetLocList() dict if expand('%:e') ==# 'hrl' return [] @@ -51,3 +54,8 @@ endfunction call g:SyntasticRegistry.CreateAndRegisterChecker({ \ 'filetype': 'erlang', \ 'name': 'escript'}) + +let &cpo = s:save_cpo +unlet s:save_cpo + +" vim: set et sts=4 sw=4: diff --git a/syntax_checkers/eruby/ruby.vim b/syntax_checkers/eruby/ruby.vim index f777f447..94ba42e6 100644 --- a/syntax_checkers/eruby/ruby.vim +++ b/syntax_checkers/eruby/ruby.vim @@ -13,12 +13,15 @@ if exists("g:loaded_syntastic_eruby_ruby_checker") finish endif -let g:loaded_syntastic_eruby_ruby_checker=1 +let g:loaded_syntastic_eruby_ruby_checker = 1 if !exists("g:syntastic_ruby_exec") let g:syntastic_ruby_exec = "ruby" endif +let s:save_cpo = &cpo +set cpo&vim + function! SyntaxCheckers_eruby_ruby_IsAvailable() dict return executable(expand(g:syntastic_ruby_exec)) endfunction @@ -63,3 +66,8 @@ endfunction call g:SyntasticRegistry.CreateAndRegisterChecker({ \ 'filetype': 'eruby', \ 'name': 'ruby'}) + +let &cpo = s:save_cpo +unlet s:save_cpo + +" vim: set et sts=4 sw=4: diff --git a/syntax_checkers/fortran/gfortran.vim b/syntax_checkers/fortran/gfortran.vim index 1d3f0a9f..0cc94831 100644 --- a/syntax_checkers/fortran/gfortran.vim +++ b/syntax_checkers/fortran/gfortran.vim @@ -19,13 +19,13 @@ if !exists('g:syntastic_fortran_compiler') let g:syntastic_fortran_compiler = 'gfortran' endif +let s:save_cpo = &cpo +set cpo&vim + function! SyntaxCheckers_fortran_gfortran_IsAvailable() dict return executable(expand(g:syntastic_fortran_compiler)) endfunction -let s:save_cpo = &cpo -set cpo&vim - if !exists('g:syntastic_fortran_compiler_options') let g:syntastic_fortran_compiler_options = '' endif diff --git a/syntax_checkers/glsl/cgc.vim b/syntax_checkers/glsl/cgc.vim index 5b52c6a8..c7bf6ee0 100644 --- a/syntax_checkers/glsl/cgc.vim +++ b/syntax_checkers/glsl/cgc.vim @@ -13,7 +13,6 @@ if exists("g:loaded_syntastic_glsl_cgc_checker") finish endif - let g:loaded_syntastic_glsl_cgc_checker = 1 let s:glsl_extensions = { diff --git a/syntax_checkers/go/go.vim b/syntax_checkers/go/go.vim index 27e12607..ac28bcdd 100644 --- a/syntax_checkers/go/go.vim +++ b/syntax_checkers/go/go.vim @@ -12,10 +12,14 @@ " Use a BufWritePre autocommand to that end: " autocmd FileType go autocmd BufWritePre Fmt "============================================================================ + if exists("g:loaded_syntastic_go_go_checker") finish endif -let g:loaded_syntastic_go_go_checker=1 +let g:loaded_syntastic_go_go_checker = 1 + +let s:save_cpo = &cpo +set cpo&vim function! SyntaxCheckers_go_go_IsAvailable() dict return executable('go') && executable('gofmt') @@ -72,3 +76,8 @@ endfunction call g:SyntasticRegistry.CreateAndRegisterChecker({ \ 'filetype': 'go', \ 'name': 'go'}) + +let &cpo = s:save_cpo +unlet s:save_cpo + +" vim: set et sts=4 sw=4: diff --git a/syntax_checkers/go/gofmt.vim b/syntax_checkers/go/gofmt.vim index bf85e2f2..762f47ed 100644 --- a/syntax_checkers/go/gofmt.vim +++ b/syntax_checkers/go/gofmt.vim @@ -12,10 +12,14 @@ " Use a BufWritePre autocommand to that end: " autocmd FileType go autocmd BufWritePre Fmt "============================================================================ + if exists("g:loaded_syntastic_go_gofmt_checker") finish endif -let g:loaded_syntastic_go_gofmt_checker=1 +let g:loaded_syntastic_go_gofmt_checker = 1 + +let s:save_cpo = &cpo +set cpo&vim function! SyntaxCheckers_go_gofmt_GetLocList() dict let makeprg = self.makeprgBuild({ @@ -33,3 +37,8 @@ endfunction call g:SyntasticRegistry.CreateAndRegisterChecker({ \ 'filetype': 'go', \ 'name': 'gofmt'}) + +let &cpo = s:save_cpo +unlet s:save_cpo + +" vim: set et sts=4 sw=4: diff --git a/syntax_checkers/go/golint.vim b/syntax_checkers/go/golint.vim index 852357bc..c4107016 100644 --- a/syntax_checkers/go/golint.vim +++ b/syntax_checkers/go/golint.vim @@ -9,10 +9,14 @@ " See http://sam.zoy.org/wtfpl/COPYING for more details. " "============================================================================ + if exists("g:loaded_syntastic_go_golint_checker") finish endif -let g:loaded_syntastic_go_golint_checker=1 +let g:loaded_syntastic_go_golint_checker = 1 + +let s:save_cpo = &cpo +set cpo&vim function! SyntaxCheckers_go_golint_GetLocList() dict let makeprg = self.makeprgBuild({}) @@ -28,3 +32,8 @@ endfunction call g:SyntasticRegistry.CreateAndRegisterChecker({ \ 'filetype': 'go', \ 'name': 'golint'}) + +let &cpo = s:save_cpo +unlet s:save_cpo + +" vim: set et sts=4 sw=4: diff --git a/syntax_checkers/go/gotype.vim b/syntax_checkers/go/gotype.vim index 4d9c9106..ae3b6247 100644 --- a/syntax_checkers/go/gotype.vim +++ b/syntax_checkers/go/gotype.vim @@ -9,6 +9,7 @@ " See http://sam.zoy.org/wtfpl/COPYING for more details. " "============================================================================ + if exists("g:loaded_syntastic_go_gotype_checker") finish endif diff --git a/syntax_checkers/go/govet.vim b/syntax_checkers/go/govet.vim index 3ba0aa58..080204a1 100644 --- a/syntax_checkers/go/govet.vim +++ b/syntax_checkers/go/govet.vim @@ -9,10 +9,14 @@ " See http://sam.zoy.org/wtfpl/COPYING for more details. " "============================================================================ + if exists("g:loaded_syntastic_go_govet_checker") finish endif -let g:loaded_syntastic_go_govet_checker=1 +let g:loaded_syntastic_go_govet_checker = 1 + +let s:save_cpo = &cpo +set cpo&vim function! SyntaxCheckers_go_govet_IsAvailable() dict return executable('go') @@ -38,3 +42,8 @@ endfunction call g:SyntasticRegistry.CreateAndRegisterChecker({ \ 'filetype': 'go', \ 'name': 'govet'}) + +let &cpo = s:save_cpo +unlet s:save_cpo + +" vim: set et sts=4 sw=4: diff --git a/syntax_checkers/haml/haml.vim b/syntax_checkers/haml/haml.vim index 750f0657..cc4d5506 100644 --- a/syntax_checkers/haml/haml.vim +++ b/syntax_checkers/haml/haml.vim @@ -13,12 +13,15 @@ if exists('g:loaded_syntastic_haml_haml_checker') finish endif -let g:loaded_syntastic_haml_haml_checker=1 +let g:loaded_syntastic_haml_haml_checker = 1 if !exists('g:syntastic_haml_interpreter') let g:syntastic_haml_interpreter = 'haml' endif +let s:save_cpo = &cpo +set cpo&vim + function! SyntaxCheckers_haml_haml_IsAvailable() dict return executable(expand(g:syntastic_haml_interpreter)) endfunction @@ -41,3 +44,8 @@ endfunction call g:SyntasticRegistry.CreateAndRegisterChecker({ \ 'filetype': 'haml', \ 'name': 'haml'}) + +let &cpo = s:save_cpo +unlet s:save_cpo + +" vim: set et sts=4 sw=4: diff --git a/syntax_checkers/handlebars/handlebars.vim b/syntax_checkers/handlebars/handlebars.vim index d6f37307..329a167f 100644 --- a/syntax_checkers/handlebars/handlebars.vim +++ b/syntax_checkers/handlebars/handlebars.vim @@ -8,10 +8,14 @@ " Want To Public License, Version 2, as published by Sam Hocevar. " See http://sam.zoy.org/wtfpl/COPYING for more details. "============================================================================ + if exists("g:loaded_syntastic_handlebars_handlebars_checker") finish endif -let g:loaded_syntastic_handlebars_handlebars_checker=1 +let g:loaded_syntastic_handlebars_handlebars_checker = 1 + +let s:save_cpo = &cpo +set cpo&vim function! SyntaxCheckers_handlebars_handlebars_GetLocList() dict let makeprg = self.makeprgBuild({ 'args': '-f ' . syntastic#util#DevNull() }) @@ -31,3 +35,8 @@ endfunction call g:SyntasticRegistry.CreateAndRegisterChecker({ \ 'filetype': 'handlebars', \ 'name': 'handlebars'}) + +let &cpo = s:save_cpo +unlet s:save_cpo + +" vim: set et sts=4 sw=4: diff --git a/syntax_checkers/haskell/ghc-mod.vim b/syntax_checkers/haskell/ghc-mod.vim index d6e81365..51737034 100644 --- a/syntax_checkers/haskell/ghc-mod.vim +++ b/syntax_checkers/haskell/ghc-mod.vim @@ -17,6 +17,9 @@ let g:loaded_syntastic_haskell_ghc_mod_checker = 1 let s:ghc_mod_new = -1 +let s:save_cpo = &cpo +set cpo&vim + function! SyntaxCheckers_haskell_ghc_mod_IsAvailable() dict " We need either a Vim version that can handle NULs in system() output, " or a ghc-mod version that has the --boundary option. @@ -59,4 +62,9 @@ endfunction call g:SyntasticRegistry.CreateAndRegisterChecker({ \ 'filetype': 'haskell', \ 'name': 'ghc_mod', - \ 'exec': 'ghc-mod'}) + \ 'exec': 'ghc-mod' }) + +let &cpo = s:save_cpo +unlet s:save_cpo + +" vim: set et sts=4 sw=4: diff --git a/syntax_checkers/haskell/hdevtools.vim b/syntax_checkers/haskell/hdevtools.vim index 4987a7a2..0175e046 100644 --- a/syntax_checkers/haskell/hdevtools.vim +++ b/syntax_checkers/haskell/hdevtools.vim @@ -13,7 +13,10 @@ if exists("g:loaded_syntastic_haskell_hdevtools_checker") finish endif -let g:loaded_syntastic_haskell_hdevtools_checker=1 +let g:loaded_syntastic_haskell_hdevtools_checker = 1 + +let s:save_cpo = &cpo +set cpo&vim function! SyntaxCheckers_haskell_hdevtools_GetLocList() dict let makeprg = self.makeprgBuild({ @@ -39,3 +42,7 @@ call g:SyntasticRegistry.CreateAndRegisterChecker({ \ 'filetype': 'haskell', \ 'name': 'hdevtools'}) +let &cpo = s:save_cpo +unlet s:save_cpo + +" vim: set et sts=4 sw=4: diff --git a/syntax_checkers/haskell/hlint.vim b/syntax_checkers/haskell/hlint.vim index 2fd2ef88..e859d299 100644 --- a/syntax_checkers/haskell/hlint.vim +++ b/syntax_checkers/haskell/hlint.vim @@ -10,6 +10,9 @@ if exists('g:loaded_syntastic_haskell_hlint_checker') endif let g:loaded_syntastic_haskell_hlint_checker = 1 +let s:save_cpo = &cpo +set cpo&vim + function! SyntaxCheckers_haskell_hlint_GetLocList() dict let makeprg = self.makeprgBuild({}) @@ -27,3 +30,8 @@ endfunction call g:SyntasticRegistry.CreateAndRegisterChecker({ \ 'filetype': 'haskell', \ 'name': 'hlint'}) + +let &cpo = s:save_cpo +unlet s:save_cpo + +" vim: set et sts=4 sw=4: diff --git a/syntax_checkers/haxe/haxe.vim b/syntax_checkers/haxe/haxe.vim index c6b9c3e6..184e5aa0 100644 --- a/syntax_checkers/haxe/haxe.vim +++ b/syntax_checkers/haxe/haxe.vim @@ -13,7 +13,10 @@ if exists("g:loaded_syntastic_haxe_haxe_checker") finish endif -let g:loaded_syntastic_haxe_haxe_checker=1 +let g:loaded_syntastic_haxe_haxe_checker = 1 + +let s:save_cpo = &cpo +set cpo&vim function! SyntaxCheckers_haxe_haxe_GetLocList() dict if exists('b:vaxe_hxml') @@ -43,3 +46,8 @@ endfunction call g:SyntasticRegistry.CreateAndRegisterChecker({ \ 'filetype': 'haxe', \ 'name': 'haxe'}) + +let &cpo = s:save_cpo +unlet s:save_cpo + +" vim: set et sts=4 sw=4: diff --git a/syntax_checkers/hss/hss.vim b/syntax_checkers/hss/hss.vim index 34fa332a..1f9aa242 100644 --- a/syntax_checkers/hss/hss.vim +++ b/syntax_checkers/hss/hss.vim @@ -13,7 +13,10 @@ if exists("g:loaded_syntastic_hss_hss_checker") finish endif -let g:loaded_syntastic_hss_hss_checker=1 +let g:loaded_syntastic_hss_hss_checker = 1 + +let s:save_cpo = &cpo +set cpo&vim function! SyntaxCheckers_hss_hss_GetLocList() dict let makeprg = self.makeprgBuild({ 'args' : '-output ' . syntastic#util#DevNull() }) @@ -28,3 +31,8 @@ endfunction call g:SyntasticRegistry.CreateAndRegisterChecker({ \ 'filetype': 'hss', \ 'name': 'hss'}) + +let &cpo = s:save_cpo +unlet s:save_cpo + +" vim: set et sts=4 sw=4: diff --git a/syntax_checkers/html/tidy.vim b/syntax_checkers/html/tidy.vim index 9f602183..b29033c1 100644 --- a/syntax_checkers/html/tidy.vim +++ b/syntax_checkers/html/tidy.vim @@ -42,6 +42,9 @@ if !exists('g:syntastic_html_tidy_empty_tags') let g:syntastic_html_tidy_empty_tags = [] endif +let s:save_cpo = &cpo +set cpo&vim + " TODO: join this with xhtml.vim for DRY's sake? function! s:TidyEncOptByFenc() let tidy_opts = { @@ -200,3 +203,7 @@ call g:SyntasticRegistry.CreateAndRegisterChecker({ \ 'filetype': 'html', \ 'name': 'tidy'}) +let &cpo = s:save_cpo +unlet s:save_cpo + +" vim: set et sts=4 sw=4: diff --git a/syntax_checkers/html/validator.vim b/syntax_checkers/html/validator.vim index 17bdcccb..3874fa3c 100644 --- a/syntax_checkers/html/validator.vim +++ b/syntax_checkers/html/validator.vim @@ -45,6 +45,9 @@ if !exists('g:syntastic_html_validator_nsfilter') let g:syntastic_html_validator_nsfilter = '' endif +let s:save_cpo = &cpo +set cpo&vim + function! SyntaxCheckers_html_validator_Preprocess(errors) let out = [] for e in a:errors @@ -92,3 +95,8 @@ call g:SyntasticRegistry.CreateAndRegisterChecker({ \ 'filetype': 'html', \ 'name': 'validator', \ 'exec': 'curl' }) + +let &cpo = s:save_cpo +unlet s:save_cpo + +" vim: set et sts=4 sw=4: diff --git a/syntax_checkers/html/w3.vim b/syntax_checkers/html/w3.vim index 293c1c89..cdb8a633 100644 --- a/syntax_checkers/html/w3.vim +++ b/syntax_checkers/html/w3.vim @@ -26,6 +26,9 @@ if !exists('g:syntastic_html_w3_api') let g:syntastic_html_w3_api = 'http://validator.w3.org/check' endif +let s:save_cpo = &cpo +set cpo&vim + function! SyntaxCheckers_html_w3_GetLocList() dict let makeprg = self.getExec() . ' -s -F output=json ' . \ '-F uploaded_file=@' . syntastic#util#shexpand('%:p') . '\;type=text/html ' . @@ -60,3 +63,7 @@ call g:SyntasticRegistry.CreateAndRegisterChecker({ \ 'name': 'w3', \ 'exec': 'curl' }) +let &cpo = s:save_cpo +unlet s:save_cpo + +" vim: set et sts=4 sw=4: diff --git a/syntax_checkers/java/checkstyle.vim b/syntax_checkers/java/checkstyle.vim index 541d3158..b421b448 100644 --- a/syntax_checkers/java/checkstyle.vim +++ b/syntax_checkers/java/checkstyle.vim @@ -10,10 +10,11 @@ " " Tested with checkstyle 5.5 "============================================================================ + if exists("g:loaded_syntastic_java_checkstyle_checker") finish endif -let g:loaded_syntastic_java_checkstyle_checker=1 +let g:loaded_syntastic_java_checkstyle_checker = 1 if !exists("g:syntastic_java_checkstyle_classpath") let g:syntastic_java_checkstyle_classpath = 'checkstyle-5.5-all.jar' @@ -23,6 +24,9 @@ if !exists("g:syntastic_java_checkstyle_conf_file") let g:syntastic_java_checkstyle_conf_file = 'sun_checks.xml' endif +let s:save_cpo = &cpo +set cpo&vim + function! SyntaxCheckers_java_checkstyle_Preprocess(errors) let out = copy(a:errors) for n in range(len(out)) @@ -71,3 +75,8 @@ call g:SyntasticRegistry.CreateAndRegisterChecker({ \ 'filetype': 'java', \ 'name': 'checkstyle', \ 'exec': 'java'}) + +let &cpo = s:save_cpo +unlet s:save_cpo + +" vim: set et sts=4 sw=4: diff --git a/syntax_checkers/java/javac.vim b/syntax_checkers/java/javac.vim index d6492a29..47d2048c 100644 --- a/syntax_checkers/java/javac.vim +++ b/syntax_checkers/java/javac.vim @@ -40,6 +40,9 @@ if !exists("g:syntastic_java_javac_delete_output") let g:syntastic_java_javac_delete_output = 1 endif +let s:save_cpo = &cpo +set cpo&vim + function! s:CygwinPath(path) return substitute(system("cygpath -m " . a:path), '\n', '', 'g') endfunction @@ -363,3 +366,7 @@ call g:SyntasticRegistry.CreateAndRegisterChecker({ \ 'filetype': 'java', \ 'name': 'javac'}) +let &cpo = s:save_cpo +unlet s:save_cpo + +" vim: set et sts=4 sw=4: diff --git a/syntax_checkers/javascript/closurecompiler.vim b/syntax_checkers/javascript/closurecompiler.vim index fcc0e620..db305119 100644 --- a/syntax_checkers/javascript/closurecompiler.vim +++ b/syntax_checkers/javascript/closurecompiler.vim @@ -24,14 +24,20 @@ if exists("g:loaded_syntastic_javascript_closurecompiler_checker") finish endif -let g:loaded_syntastic_javascript_closurecompiler_checker=1 +let g:loaded_syntastic_javascript_closurecompiler_checker = 1 if !exists("g:syntastic_javascript_closure_compiler_options") let g:syntastic_javascript_closure_compiler_options = "" endif +let s:save_cpo = &cpo +set cpo&vim + function! SyntaxCheckers_javascript_closurecompiler_IsAvailable() dict - return executable("java") && exists("g:syntastic_javascript_closure_compiler_path") + return + \ executable("java") && + \ exists("g:syntastic_javascript_closure_compiler_path") && + \ filereadable(g:syntastic_javascript_closure_compiler_path) endfunction function! SyntaxCheckers_javascript_closurecompiler_GetLocList() dict @@ -63,3 +69,7 @@ call g:SyntasticRegistry.CreateAndRegisterChecker({ \ 'name': 'closurecompiler', \ 'exec': 'java'}) +let &cpo = s:save_cpo +unlet s:save_cpo + +" vim: set et sts=4 sw=4: diff --git a/syntax_checkers/javascript/eslint.vim b/syntax_checkers/javascript/eslint.vim index 2ad5ac39..86b4f7c1 100644 --- a/syntax_checkers/javascript/eslint.vim +++ b/syntax_checkers/javascript/eslint.vim @@ -12,12 +12,15 @@ if exists('g:loaded_syntastic_javascript_eslint_checker') finish endif -let g:loaded_syntastic_javascript_eslint_checker=1 +let g:loaded_syntastic_javascript_eslint_checker = 1 if !exists('g:syntastic_javascript_eslint_conf') let g:syntastic_javascript_eslint_conf = '' endif +let s:save_cpo = &cpo +set cpo&vim + function! SyntaxCheckers_javascript_eslint_GetLocList() dict let makeprg = self.makeprgBuild({ \ 'args': !empty(g:syntastic_javascript_eslint_conf) ? ' --config ' . g:syntastic_javascript_eslint_conf : '' }) @@ -41,3 +44,7 @@ call g:SyntasticRegistry.CreateAndRegisterChecker({ \ 'filetype': 'javascript', \ 'name': 'eslint'}) +let &cpo = s:save_cpo +unlet s:save_cpo + +" vim: set et sts=4 sw=4: diff --git a/syntax_checkers/javascript/gjslint.vim b/syntax_checkers/javascript/gjslint.vim index b1c7ee61..6d760756 100644 --- a/syntax_checkers/javascript/gjslint.vim +++ b/syntax_checkers/javascript/gjslint.vim @@ -8,15 +8,19 @@ " Want To Public License, Version 2, as published by Sam Hocevar. " See http://sam.zoy.org/wtfpl/COPYING for more details. "============================================================================ + if exists("g:loaded_syntastic_javascript_gjslint_checker") finish endif -let g:loaded_syntastic_javascript_gjslint_checker=1 +let g:loaded_syntastic_javascript_gjslint_checker = 1 if !exists("g:syntastic_javascript_gjslint_conf") let g:syntastic_javascript_gjslint_conf = "" endif +let s:save_cpo = &cpo +set cpo&vim + function! SyntaxCheckers_javascript_gjslint_GetLocList() dict let makeprg = self.makeprgBuild({ \ 'args': g:syntastic_javascript_gjslint_conf . " --nosummary --unix_mode --nodebug_indentation --nobeep" }) @@ -37,3 +41,7 @@ call g:SyntasticRegistry.CreateAndRegisterChecker({ \ 'filetype': 'javascript', \ 'name': 'gjslint'}) +let &cpo = s:save_cpo +unlet s:save_cpo + +" vim: set et sts=4 sw=4: diff --git a/syntax_checkers/javascript/jshint.vim b/syntax_checkers/javascript/jshint.vim index 84dd06eb..96de521b 100644 --- a/syntax_checkers/javascript/jshint.vim +++ b/syntax_checkers/javascript/jshint.vim @@ -12,7 +12,7 @@ if exists('g:loaded_syntastic_javascript_jshint_checker') finish endif -let g:loaded_syntastic_javascript_jshint_checker=1 +let g:loaded_syntastic_javascript_jshint_checker = 1 if !exists('g:syntastic_jshint_exec') let g:syntastic_jshint_exec = 'jshint' @@ -22,6 +22,9 @@ if !exists('g:syntastic_javascript_jshint_conf') let g:syntastic_javascript_jshint_conf = '' endif +let s:save_cpo = &cpo +set cpo&vim + function! SyntaxCheckers_javascript_jshint_IsAvailable() dict return executable(expand(g:syntastic_jshint_exec)) endfunction @@ -55,3 +58,7 @@ call g:SyntasticRegistry.CreateAndRegisterChecker({ \ 'filetype': 'javascript', \ 'name': 'jshint'}) +let &cpo = s:save_cpo +unlet s:save_cpo + +" vim: set et sts=4 sw=4: diff --git a/syntax_checkers/javascript/jsl.vim b/syntax_checkers/javascript/jsl.vim index dc90ad91..b9b7d3e8 100644 --- a/syntax_checkers/javascript/jsl.vim +++ b/syntax_checkers/javascript/jsl.vim @@ -8,15 +8,19 @@ " Want To Public License, Version 2, as published by Sam Hocevar. " See http://sam.zoy.org/wtfpl/COPYING for more details. "============================================================================ + if exists("g:loaded_syntastic_javascript_jsl_checker") finish endif -let g:loaded_syntastic_javascript_jsl_checker=1 +let g:loaded_syntastic_javascript_jsl_checker = 1 if !exists("g:syntastic_javascript_jsl_conf") let g:syntastic_javascript_jsl_conf = "" endif +let s:save_cpo = &cpo +set cpo&vim + function! SyntaxCheckers_javascript_jsl_GetLocList() dict let makeprg = self.makeprgBuild({ \ 'args': (!empty(g:syntastic_javascript_jsl_conf) ? "-conf " . g:syntastic_javascript_jsl_conf : "") . @@ -40,3 +44,7 @@ call g:SyntasticRegistry.CreateAndRegisterChecker({ \ 'filetype': 'javascript', \ 'name': 'jsl'}) +let &cpo = s:save_cpo +unlet s:save_cpo + +" vim: set et sts=4 sw=4: diff --git a/syntax_checkers/javascript/jslint.vim b/syntax_checkers/javascript/jslint.vim index 23876192..c233cf34 100644 --- a/syntax_checkers/javascript/jslint.vim +++ b/syntax_checkers/javascript/jslint.vim @@ -13,7 +13,11 @@ if exists("g:loaded_syntastic_javascript_jslint_checker") finish endif -let g:loaded_syntastic_javascript_jslint_checker=1 + +let g:loaded_syntastic_javascript_jslint_checker = 1 + +let s:save_cpo = &cpo +set cpo&vim function! SyntaxCheckers_javascript_jslint_GetHighlightRegex(item) let term = matchstr(a:item['text'], '\mExpected .* and instead saw ''\zs.*\ze''') @@ -41,3 +45,7 @@ call g:SyntasticRegistry.CreateAndRegisterChecker({ \ 'filetype': 'javascript', \ 'name': 'jslint'}) +let &cpo = s:save_cpo +unlet s:save_cpo + +" vim: set et sts=4 sw=4: diff --git a/syntax_checkers/json/jsonlint.vim b/syntax_checkers/json/jsonlint.vim index cd0d3dfc..c6744002 100644 --- a/syntax_checkers/json/jsonlint.vim +++ b/syntax_checkers/json/jsonlint.vim @@ -12,7 +12,10 @@ if exists("g:loaded_syntastic_json_jsonlint_checker") finish endif -let g:loaded_syntastic_json_jsonlint_checker=1 +let g:loaded_syntastic_json_jsonlint_checker = 1 + +let s:save_cpo = &cpo +set cpo&vim function! SyntaxCheckers_json_jsonlint_GetLocList() dict let makeprg = self.makeprgBuild({ 'post_args': '--compact' }) @@ -33,3 +36,8 @@ endfunction call g:SyntasticRegistry.CreateAndRegisterChecker({ \ 'filetype': 'json', \ 'name': 'jsonlint'}) + +let &cpo = s:save_cpo +unlet s:save_cpo + +" vim: set et sts=4 sw=4: diff --git a/syntax_checkers/json/jsonval.vim b/syntax_checkers/json/jsonval.vim index 924a363e..16e30091 100644 --- a/syntax_checkers/json/jsonval.vim +++ b/syntax_checkers/json/jsonval.vim @@ -12,7 +12,10 @@ if exists("g:loaded_syntastic_json_jsonval_checker") finish endif -let g:loaded_syntastic_json_jsonval_checker=1 +let g:loaded_syntastic_json_jsonval_checker = 1 + +let s:save_cpo = &cpo +set cpo&vim function! SyntaxCheckers_json_jsonval_GetLocList() dict " based on https://gist.github.com/1196345 @@ -31,3 +34,8 @@ endfunction call g:SyntasticRegistry.CreateAndRegisterChecker({ \ 'filetype': 'json', \ 'name': 'jsonval'}) + +let &cpo = s:save_cpo +unlet s:save_cpo + +" vim: set et sts=4 sw=4: diff --git a/syntax_checkers/less/lessc.vim b/syntax_checkers/less/lessc.vim index dc16d469..20bb7f37 100644 --- a/syntax_checkers/less/lessc.vim +++ b/syntax_checkers/less/lessc.vim @@ -20,7 +20,7 @@ if exists("g:loaded_syntastic_less_lessc_checker") finish endif -let g:loaded_syntastic_less_lessc_checker=1 +let g:loaded_syntastic_less_lessc_checker = 1 if !exists("g:syntastic_less_options") let g:syntastic_less_options = "--no-color" @@ -36,6 +36,9 @@ else let s:check_file = 'lessc' endif +let s:save_cpo = &cpo +set cpo&vim + function! SyntaxCheckers_less_lessc_IsAvailable() dict return g:syntastic_less_use_less_lint ? executable('node') : executable('lessc') endfunction @@ -60,3 +63,8 @@ endfunction call g:SyntasticRegistry.CreateAndRegisterChecker({ \ 'filetype': 'less', \ 'name': 'lessc'}) + +let &cpo = s:save_cpo +unlet s:save_cpo + +" vim: set et sts=4 sw=4: diff --git a/syntax_checkers/lex/flex.vim b/syntax_checkers/lex/flex.vim index 971068f8..f86b90c8 100644 --- a/syntax_checkers/lex/flex.vim +++ b/syntax_checkers/lex/flex.vim @@ -46,3 +46,5 @@ call g:SyntasticRegistry.CreateAndRegisterChecker({ let &cpo = s:save_cpo unlet s:save_cpo + +" vim: set et sts=4 sw=4: diff --git a/syntax_checkers/limbo/limbo.vim b/syntax_checkers/limbo/limbo.vim index 6f49c2b3..b021dea8 100644 --- a/syntax_checkers/limbo/limbo.vim +++ b/syntax_checkers/limbo/limbo.vim @@ -15,6 +15,9 @@ if exists("g:loaded_syntastic_limbo_limbo_checker") endif let g:loaded_syntastic_limbo_limbo_checker = 1 +let s:save_cpo = &cpo +set cpo&vim + function! SyntaxCheckers_limbo_limbo_GetLocList() dict let include = !empty($INFERNO_HOME) ? '-I$INFERNO_HOME ' : '' " don't generate .dis in current dir while checking syntax, @@ -36,3 +39,8 @@ endfunction call g:SyntasticRegistry.CreateAndRegisterChecker({ \ 'filetype': 'limbo', \ 'name': 'limbo' }) + +let &cpo = s:save_cpo +unlet s:save_cpo + +" vim: set et sts=4 sw=4: diff --git a/syntax_checkers/lisp/clisp.vim b/syntax_checkers/lisp/clisp.vim index 6bef1e97..5f432b89 100644 --- a/syntax_checkers/lisp/clisp.vim +++ b/syntax_checkers/lisp/clisp.vim @@ -9,10 +9,14 @@ " See http://sam.zoy.org/wtfpl/COPYING for more details. " "============================================================================ + if exists("g:loaded_syntastic_lisp_clisp_checker") finish endif -let g:loaded_syntastic_lisp_clisp_checker=1 +let g:loaded_syntastic_lisp_clisp_checker = 1 + +let s:save_cpo = &cpo +set cpo&vim function! SyntaxCheckers_lisp_clisp_GetLocList() dict let makeprg = self.makeprgBuild({ @@ -38,3 +42,8 @@ endfunction call g:SyntasticRegistry.CreateAndRegisterChecker({ \ 'filetype': 'lisp', \ 'name': 'clisp'}) + +let &cpo = s:save_cpo +unlet s:save_cpo + +" vim: set et sts=4 sw=4: diff --git a/syntax_checkers/llvm/llvm.vim b/syntax_checkers/llvm/llvm.vim index cd5a5b45..bc89fbc0 100644 --- a/syntax_checkers/llvm/llvm.vim +++ b/syntax_checkers/llvm/llvm.vim @@ -9,10 +9,14 @@ " See http://sam.zoy.org/wtfpl/COPYING for more details. " "============================================================================ + if exists("g:loaded_syntastic_llvm_llvm_checker") finish endif -let g:loaded_syntastic_llvm_llvm_checker=1 +let g:loaded_syntastic_llvm_llvm_checker = 1 + +let s:save_cpo = &cpo +set cpo&vim function! SyntaxCheckers_llvm_llvm_GetLocList() dict let makeprg = self.makeprgBuild({ 'args': syntastic#c#NullOutput() }) @@ -29,3 +33,7 @@ call g:SyntasticRegistry.CreateAndRegisterChecker({ \ 'name': 'llvm', \ 'exec': 'llc'}) +let &cpo = s:save_cpo +unlet s:save_cpo + +" vim: set et sts=4 sw=4: diff --git a/syntax_checkers/lua/luac.vim b/syntax_checkers/lua/luac.vim index d8984d3a..0139ced3 100644 --- a/syntax_checkers/lua/luac.vim +++ b/syntax_checkers/lua/luac.vim @@ -13,7 +13,10 @@ if exists("g:loaded_syntastic_lua_luac_checker") finish endif -let g:loaded_syntastic_lua_luac_checker=1 +let g:loaded_syntastic_lua_luac_checker = 1 + +let s:save_cpo = &cpo +set cpo&vim function! SyntaxCheckers_lua_luac_GetHighlightRegex(pos) let result = '' @@ -55,3 +58,8 @@ endfunction call g:SyntasticRegistry.CreateAndRegisterChecker({ \ 'filetype': 'lua', \ 'name': 'luac'}) + +let &cpo = s:save_cpo +unlet s:save_cpo + +" vim: set et sts=4 sw=4: diff --git a/syntax_checkers/matlab/mlint.vim b/syntax_checkers/matlab/mlint.vim index 5b1f4545..1953b871 100644 --- a/syntax_checkers/matlab/mlint.vim +++ b/syntax_checkers/matlab/mlint.vim @@ -13,7 +13,10 @@ if exists("g:loaded_syntastic_matlab_mlint_checker") finish endif -let g:loaded_syntastic_matlab_mlint_checker=1 +let g:loaded_syntastic_matlab_mlint_checker = 1 + +let s:save_cpo = &cpo +set cpo&vim function! SyntaxCheckers_matlab_mlint_GetLocList() dict let makeprg = self.makeprgBuild({ 'args': '-id $*' }) @@ -31,3 +34,8 @@ endfunction call g:SyntasticRegistry.CreateAndRegisterChecker({ \ 'filetype': 'matlab', \ 'name': 'mlint'}) + +let &cpo = s:save_cpo +unlet s:save_cpo + +" vim: set et sts=4 sw=4: diff --git a/syntax_checkers/nasm/nasm.vim b/syntax_checkers/nasm/nasm.vim index 6ad0f1bb..95d77cb3 100644 --- a/syntax_checkers/nasm/nasm.vim +++ b/syntax_checkers/nasm/nasm.vim @@ -9,10 +9,14 @@ " See http://sam.zoy.org/wtfpl/COPYING for more details. " "============================================================================ + if exists("g:loaded_syntastic_nasm_nasm_checker") finish endif -let g:loaded_syntastic_nasm_nasm_checker=1 +let g:loaded_syntastic_nasm_nasm_checker = 1 + +let s:save_cpo = &cpo +set cpo&vim function! SyntaxCheckers_nasm_nasm_GetLocList() dict let wd = syntastic#util#shescape(expand("%:p:h") . "/") @@ -31,3 +35,8 @@ endfunction call g:SyntasticRegistry.CreateAndRegisterChecker({ \ 'filetype': 'nasm', \ 'name': 'nasm'}) + +let &cpo = s:save_cpo +unlet s:save_cpo + +" vim: set et sts=4 sw=4: diff --git a/syntax_checkers/nroff/mandoc.vim b/syntax_checkers/nroff/mandoc.vim index 4c8105cc..6ffc32f7 100644 --- a/syntax_checkers/nroff/mandoc.vim +++ b/syntax_checkers/nroff/mandoc.vim @@ -9,10 +9,14 @@ " See http://sam.zoy.org/wtfpl/COPYING for more details. " "============================================================================ + if exists("g:loaded_syntastic_nroff_mandoc_checker") finish endif -let g:loaded_syntastic_nroff_mandoc_checker=1 +let g:loaded_syntastic_nroff_mandoc_checker = 1 + +let s:save_cpo = &cpo +set cpo&vim function! SyntaxCheckers_nroff_mandoc_GetLocList() dict let makeprg = self.makeprgBuild({ 'args': '-Tlint' }) @@ -31,3 +35,7 @@ call g:SyntasticRegistry.CreateAndRegisterChecker({ \ 'filetype': 'nroff', \ 'name': 'mandoc'}) +let &cpo = s:save_cpo +unlet s:save_cpo + +" vim: set et sts=4 sw=4: diff --git a/syntax_checkers/objc/gcc.vim b/syntax_checkers/objc/gcc.vim index 3438e94f..e311b291 100644 --- a/syntax_checkers/objc/gcc.vim +++ b/syntax_checkers/objc/gcc.vim @@ -19,13 +19,13 @@ if !exists('g:syntastic_objc_compiler') let g:syntastic_objc_compiler = executable('gcc') ? 'gcc' : 'clang' endif +let s:save_cpo = &cpo +set cpo&vim + function! SyntaxCheckers_objc_gcc_IsAvailable() dict return executable(expand(g:syntastic_objc_compiler)) endfunction -let s:save_cpo = &cpo -set cpo&vim - if !exists('g:syntastic_objc_compiler_options') let g:syntastic_objc_compiler_options = '-std=gnu99' endif diff --git a/syntax_checkers/objc/oclint.vim b/syntax_checkers/objc/oclint.vim index d3108eb6..a415c41f 100644 --- a/syntax_checkers/objc/oclint.vim +++ b/syntax_checkers/objc/oclint.vim @@ -27,3 +27,5 @@ call g:SyntasticRegistry.CreateAndRegisterChecker({ \ 'filetype': 'objc', \ 'name': 'oclint', \ 'redirect': 'c/oclint'}) + +" vim: set et sts=4 sw=4: diff --git a/syntax_checkers/objc/ycm.vim b/syntax_checkers/objc/ycm.vim index 8157b38d..15f232b9 100644 --- a/syntax_checkers/objc/ycm.vim +++ b/syntax_checkers/objc/ycm.vim @@ -25,3 +25,5 @@ call g:SyntasticRegistry.CreateAndRegisterChecker({ \ 'filetype': 'objc', \ 'name': 'ycm', \ 'redirect': 'c/ycm'}) + +" vim: set et sts=4 sw=4: diff --git a/syntax_checkers/objcpp/gcc.vim b/syntax_checkers/objcpp/gcc.vim index 5984466e..3817f5d2 100644 --- a/syntax_checkers/objcpp/gcc.vim +++ b/syntax_checkers/objcpp/gcc.vim @@ -19,13 +19,13 @@ if !exists('g:syntastic_objcpp_compiler') let g:syntastic_objcpp_compiler = executable('gcc') ? 'gcc' : 'clang' endif +let s:save_cpo = &cpo +set cpo&vim + function! SyntaxCheckers_objcpp_gcc_IsAvailable() dict return executable(expand(g:syntastic_objcpp_compiler)) endfunction -let s:save_cpo = &cpo -set cpo&vim - if !exists('g:syntastic_objcpp_compiler_options') let g:syntastic_objcpp_compiler_options = '-std=gnu99' endif diff --git a/syntax_checkers/objcpp/oclint.vim b/syntax_checkers/objcpp/oclint.vim index 59eb7cc7..84f71d29 100644 --- a/syntax_checkers/objcpp/oclint.vim +++ b/syntax_checkers/objcpp/oclint.vim @@ -27,3 +27,5 @@ call g:SyntasticRegistry.CreateAndRegisterChecker({ \ 'filetype': 'objcpp', \ 'name': 'oclint', \ 'redirect': 'c/oclint'}) + +" vim: set et sts=4 sw=4: diff --git a/syntax_checkers/objcpp/ycm.vim b/syntax_checkers/objcpp/ycm.vim index 3bad05eb..5770f888 100644 --- a/syntax_checkers/objcpp/ycm.vim +++ b/syntax_checkers/objcpp/ycm.vim @@ -25,3 +25,5 @@ call g:SyntasticRegistry.CreateAndRegisterChecker({ \ 'filetype': 'objcpp', \ 'name': 'ycm', \ 'redirect': 'c/ycm'}) + +" vim: set et sts=4 sw=4: diff --git a/syntax_checkers/ocaml/camlp4o.vim b/syntax_checkers/ocaml/camlp4o.vim index e50acb78..d9f57001 100644 --- a/syntax_checkers/ocaml/camlp4o.vim +++ b/syntax_checkers/ocaml/camlp4o.vim @@ -51,7 +51,7 @@ if exists("g:loaded_syntastic_ocaml_camlp4o_checker") finish endif -let g:loaded_syntastic_ocaml_camlp4o_checker=1 +let g:loaded_syntastic_ocaml_camlp4o_checker = 1 if exists('g:syntastic_ocaml_camlp4r') && g:syntastic_ocaml_camlp4r != 0 let s:ocamlpp="camlp4r" @@ -59,6 +59,9 @@ else let s:ocamlpp="camlp4o" endif +let s:save_cpo = &cpo +set cpo&vim + function! SyntaxCheckers_ocaml_camlp4o_IsAvailable() dict return executable(s:ocamlpp) endfunction @@ -146,3 +149,8 @@ endfunction call g:SyntasticRegistry.CreateAndRegisterChecker({ \ 'filetype': 'ocaml', \ 'name': 'camlp4o'}) + +let &cpo = s:save_cpo +unlet s:save_cpo + +" vim: set et sts=4 sw=4: diff --git a/syntax_checkers/perl/perl.vim b/syntax_checkers/perl/perl.vim index abe4fe1b..daf47097 100644 --- a/syntax_checkers/perl/perl.vim +++ b/syntax_checkers/perl/perl.vim @@ -34,6 +34,9 @@ if !exists('g:syntastic_perl_lib_path') let g:syntastic_perl_lib_path = [] endif +let s:save_cpo = &cpo +set cpo&vim + function! SyntaxCheckers_perl_perl_IsAvailable() dict " don't call executable() here, to allow things like " let g:syntastic_perl_interpreter='/usr/bin/env perl' @@ -95,3 +98,8 @@ endfunction call g:SyntasticRegistry.CreateAndRegisterChecker({ \ 'filetype': 'perl', \ 'name': 'perl'}) + +let &cpo = s:save_cpo +unlet s:save_cpo + +" vim: set et sts=4 sw=4: diff --git a/syntax_checkers/perl/perlcritic.vim b/syntax_checkers/perl/perlcritic.vim index dda412be..e6d8c074 100644 --- a/syntax_checkers/perl/perlcritic.vim +++ b/syntax_checkers/perl/perlcritic.vim @@ -27,12 +27,15 @@ if exists("g:loaded_syntastic_perl_perlcritic_checker") finish endif -let g:loaded_syntastic_perl_perlcritic_checker=1 +let g:loaded_syntastic_perl_perlcritic_checker = 1 if !exists('g:syntastic_perl_perlcritic_thres') let g:syntastic_perl_perlcritic_thres = 5 endif +let s:save_cpo = &cpo +set cpo&vim + function! SyntaxCheckers_perl_perlcritic_GetLocList() dict let makeprg = self.makeprgBuild({ \ 'post_args': '--quiet --nocolor --verbose "\%s:\%f:\%l:\%c:(\%s) \%m (\%e)\n"' }) @@ -56,3 +59,8 @@ endfunction call g:SyntasticRegistry.CreateAndRegisterChecker({ \ 'filetype': 'perl', \ 'name': 'perlcritic'}) + +let &cpo = s:save_cpo +unlet s:save_cpo + +" vim: set et sts=4 sw=4: diff --git a/syntax_checkers/perl/podchecker.vim b/syntax_checkers/perl/podchecker.vim index bf7cf880..5ffc7365 100644 --- a/syntax_checkers/perl/podchecker.vim +++ b/syntax_checkers/perl/podchecker.vim @@ -13,7 +13,7 @@ if exists("g:loaded_syntastic_perl_podchecker_checker") finish endif -let g:loaded_syntastic_perl_podchecker_checker=1 +let g:loaded_syntastic_perl_podchecker_checker = 1 runtime! syntax_checkers/pod/*.vim @@ -21,3 +21,5 @@ call g:SyntasticRegistry.CreateAndRegisterChecker({ \ 'filetype': 'perl', \ 'name': 'podchecker', \ 'redirect': 'pod/podchecker'}) + +" vim: set et sts=4 sw=4: diff --git a/syntax_checkers/php/php.vim b/syntax_checkers/php/php.vim index 4d009129..42b831b6 100644 --- a/syntax_checkers/php/php.vim +++ b/syntax_checkers/php/php.vim @@ -13,7 +13,10 @@ if exists("g:loaded_syntastic_php_php_checker") finish endif -let g:loaded_syntastic_php_php_checker=1 +let g:loaded_syntastic_php_php_checker = 1 + +let s:save_cpo = &cpo +set cpo&vim function! SyntaxCheckers_php_php_GetHighlightRegex(item) let unexpected = matchstr(a:item['text'], "\\munexpected '[^']\\+'") @@ -42,4 +45,9 @@ endfunction call g:SyntasticRegistry.CreateAndRegisterChecker({ \ 'filetype': 'php', + +let &cpo = s:save_cpo +unlet s:save_cpo + +" vim: set et sts=4 sw=4: \ 'name': 'php'}) diff --git a/syntax_checkers/php/phpcs.vim b/syntax_checkers/php/phpcs.vim index c69f32ac..75260198 100644 --- a/syntax_checkers/php/phpcs.vim +++ b/syntax_checkers/php/phpcs.vim @@ -12,11 +12,14 @@ " " See here for details of phpcs " - phpcs (see http://pear.php.net/package/PHP_CodeSniffer) -" + if exists("g:loaded_syntastic_php_phpcs_checker") finish endif -let g:loaded_syntastic_php_phpcs_checker=1 +let g:loaded_syntastic_php_phpcs_checker = 1 + +let s:save_cpo = &cpo +set cpo&vim function! SyntaxCheckers_php_phpcs_GetLocList() dict let makeprg = self.makeprgBuild({ 'args': '--report=csv' }) @@ -34,3 +37,8 @@ endfunction call g:SyntasticRegistry.CreateAndRegisterChecker({ \ 'filetype': 'php', \ 'name': 'phpcs'}) + +let &cpo = s:save_cpo +unlet s:save_cpo + +" vim: set et sts=4 sw=4: diff --git a/syntax_checkers/php/phpmd.vim b/syntax_checkers/php/phpmd.vim index 290e5fc6..7a04f3e2 100644 --- a/syntax_checkers/php/phpmd.vim +++ b/syntax_checkers/php/phpmd.vim @@ -16,7 +16,10 @@ if exists("g:loaded_syntastic_php_phpmd_checker") finish endif -let g:loaded_syntastic_php_phpmd_checker=1 +let g:loaded_syntastic_php_phpmd_checker = 1 + +let s:save_cpo = &cpo +set cpo&vim function! SyntaxCheckers_php_phpmd_GetHighlightRegex(item) let term = matchstr(a:item['text'], '\m\C^The \S\+ \w\+\(()\)\= \(has\|is not\|utilizes\)') @@ -68,3 +71,8 @@ endfunction call g:SyntasticRegistry.CreateAndRegisterChecker({ \ 'filetype': 'php', \ 'name': 'phpmd'}) + +let &cpo = s:save_cpo +unlet s:save_cpo + +" vim: set et sts=4 sw=4: diff --git a/syntax_checkers/po/msgfmt.vim b/syntax_checkers/po/msgfmt.vim index bd719915..342c94a2 100644 --- a/syntax_checkers/po/msgfmt.vim +++ b/syntax_checkers/po/msgfmt.vim @@ -13,8 +13,10 @@ if exists("g:loaded_syntastic_po_msgfmt_checker") finish endif -let g:loaded_syntastic_po_msgfmt_checker=1 +let g:loaded_syntastic_po_msgfmt_checker = 1 +let s:save_cpo = &cpo +set cpo&vim function! SyntaxCheckers_po_msgfmt_GetHighlightRegex(item) let term = matchstr(a:item['text'], '\mkeyword "\zs[^"]\+\ze" unknown') @@ -41,3 +43,8 @@ endfunction call g:SyntasticRegistry.CreateAndRegisterChecker({ \ 'filetype': 'po', \ 'name': 'msgfmt'}) + +let &cpo = s:save_cpo +unlet s:save_cpo + +" vim: set et sts=4 sw=4: diff --git a/syntax_checkers/pod/podchecker.vim b/syntax_checkers/pod/podchecker.vim index c51533e1..34a37e55 100644 --- a/syntax_checkers/pod/podchecker.vim +++ b/syntax_checkers/pod/podchecker.vim @@ -9,10 +9,14 @@ " See http://sam.zoy.org/wtfpl/COPYING for more details. " "============================================================================ + if exists("g:loaded_syntastic_pod_podchecker_checker") finish endif -let g:loaded_syntastic_pod_podchecker_checker=1 +let g:loaded_syntastic_pod_podchecker_checker = 1 + +let s:save_cpo = &cpo +set cpo&vim function! SyntaxCheckers_pod_podchecker_GetLocList() dict let makeprg = self.makeprgBuild({}) @@ -41,3 +45,7 @@ call g:SyntasticRegistry.CreateAndRegisterChecker({ \ 'filetype': 'pod', \ 'name': 'podchecker'}) +let &cpo = s:save_cpo +unlet s:save_cpo + +" vim: set et sts=4 sw=4: diff --git a/syntax_checkers/puppet/puppet.vim b/syntax_checkers/puppet/puppet.vim index 541a3242..3604c3ec 100644 --- a/syntax_checkers/puppet/puppet.vim +++ b/syntax_checkers/puppet/puppet.vim @@ -13,7 +13,10 @@ if exists("g:loaded_syntastic_puppet_puppet_checker") finish endif -let g:loaded_syntastic_puppet_puppet_checker=1 +let g:loaded_syntastic_puppet_puppet_checker = 1 + +let s:save_cpo = &cpo +set cpo&vim function! SyntaxCheckers_puppet_puppet_GetLocList() dict let ver = syntastic#util#getVersion(self.getExec() . ' --version 2>' . syntastic#util#DevNull()) @@ -40,3 +43,8 @@ endfunction call g:SyntasticRegistry.CreateAndRegisterChecker({ \ 'filetype': 'puppet', \ 'name': 'puppet'}) + +let &cpo = s:save_cpo +unlet s:save_cpo + +" vim: set et sts=4 sw=4: diff --git a/syntax_checkers/puppet/puppetlint.vim b/syntax_checkers/puppet/puppetlint.vim index d8153cdc..a5be2ca2 100644 --- a/syntax_checkers/puppet/puppetlint.vim +++ b/syntax_checkers/puppet/puppetlint.vim @@ -13,7 +13,10 @@ if exists("g:loaded_syntastic_puppet_puppetlint_checker") finish endif -let g:loaded_syntastic_puppet_puppetlint_checker=1 +let g:loaded_syntastic_puppet_puppetlint_checker = 1 + +let s:save_cpo = &cpo +set cpo&vim if exists("g:syntastic_puppet_lint_arguments") let g:syntastic_puppet_puppetlint_args = g:syntastic_puppet_lint_arguments @@ -44,3 +47,8 @@ call g:SyntasticRegistry.CreateAndRegisterChecker({ \ 'filetype': 'puppet', \ 'name': 'puppetlint', \ 'exec': 'puppet-lint'}) + +let &cpo = s:save_cpo +unlet s:save_cpo + +" vim: set et sts=4 sw=4: diff --git a/syntax_checkers/python/flake8.vim b/syntax_checkers/python/flake8.vim index fa2e1780..9fe721f8 100644 --- a/syntax_checkers/python/flake8.vim +++ b/syntax_checkers/python/flake8.vim @@ -5,13 +5,17 @@ " kstep " "============================================================================ + if exists("g:loaded_syntastic_python_flake8_checker") finish endif -let g:loaded_syntastic_python_flake8_checker=1 +let g:loaded_syntastic_python_flake8_checker = 1 -function! SyntaxCheckers_python_flake8_GetHighlightRegex(i) - return SyntaxCheckers_python_pyflakes_GetHighlightRegex(a:i) +let s:save_cpo = &cpo +set cpo&vim + +function! SyntaxCheckers_python_flake8_GetHighlightRegex(item) + return SyntaxCheckers_python_pyflakes_GetHighlightRegex(a:item) endfunction function! SyntaxCheckers_python_flake8_GetLocList() dict @@ -35,3 +39,8 @@ runtime! syntax_checkers/python/pyflakes.vim call g:SyntasticRegistry.CreateAndRegisterChecker({ \ 'filetype': 'python', \ 'name': 'flake8'}) + +let &cpo = s:save_cpo +unlet s:save_cpo + +" vim: set et sts=4 sw=4: diff --git a/syntax_checkers/python/pep257.vim b/syntax_checkers/python/pep257.vim index 8e2c56ca..31ec1623 100644 --- a/syntax_checkers/python/pep257.vim +++ b/syntax_checkers/python/pep257.vim @@ -10,6 +10,9 @@ if exists("g:loaded_syntastic_python_pep257_checker") endif let g:loaded_syntastic_python_pep257_checker = 1 +let s:save_cpo = &cpo +set cpo&vim + " sanity: kill empty lines here rather than munging errorformat function! SyntaxCheckers_python_pep257_Preprocess(errors) return filter(copy(a:errors), 'v:val != ""') @@ -41,3 +44,8 @@ endfunction call g:SyntasticRegistry.CreateAndRegisterChecker({ \ 'filetype': 'python', \ 'name': 'pep257'}) + +let &cpo = s:save_cpo +unlet s:save_cpo + +" vim: set et sts=4 sw=4: diff --git a/syntax_checkers/python/pep8.vim b/syntax_checkers/python/pep8.vim index 2e19a162..310746b3 100644 --- a/syntax_checkers/python/pep8.vim +++ b/syntax_checkers/python/pep8.vim @@ -15,7 +15,10 @@ if exists("g:loaded_syntastic_python_pep8_checker") finish endif -let g:loaded_syntastic_python_pep8_checker=1 +let g:loaded_syntastic_python_pep8_checker = 1 + +let s:save_cpo = &cpo +set cpo&vim function! SyntaxCheckers_python_pep8_GetLocList() dict let makeprg = self.makeprgBuild({}) @@ -37,3 +40,8 @@ endfunction call g:SyntasticRegistry.CreateAndRegisterChecker({ \ 'filetype': 'python', \ 'name': 'pep8'}) + +let &cpo = s:save_cpo +unlet s:save_cpo + +" vim: set et sts=4 sw=4: diff --git a/syntax_checkers/python/py3kwarn.vim b/syntax_checkers/python/py3kwarn.vim index 7a2d4ed1..5ceb51ab 100644 --- a/syntax_checkers/python/py3kwarn.vim +++ b/syntax_checkers/python/py3kwarn.vim @@ -4,10 +4,14 @@ "Authors: Liam Curry " "============================================================================ + if exists("g:loaded_syntastic_python_py3kwarn_checker") finish endif -let g:loaded_syntastic_python_py3kwarn_checker=1 +let g:loaded_syntastic_python_py3kwarn_checker = 1 + +let s:save_cpo = &cpo +set cpo&vim function! SyntaxCheckers_python_py3kwarn_GetLocList() dict let makeprg = self.makeprgBuild({}) @@ -22,3 +26,8 @@ endfunction call g:SyntasticRegistry.CreateAndRegisterChecker({ \ 'filetype': 'python', \ 'name': 'py3kwarn'}) + +let &cpo = s:save_cpo +unlet s:save_cpo + +" vim: set et sts=4 sw=4: diff --git a/syntax_checkers/python/pyflakes.vim b/syntax_checkers/python/pyflakes.vim index b66346f2..8112bf3c 100644 --- a/syntax_checkers/python/pyflakes.vim +++ b/syntax_checkers/python/pyflakes.vim @@ -6,11 +6,15 @@ " Parantapa Bhattacharya " "============================================================================ + if exists("g:loaded_syntastic_python_pyflakes_checker") finish endif let g:loaded_syntastic_python_pyflakes_checker = 1 +let s:save_cpo = &cpo +set cpo&vim + function! SyntaxCheckers_python_pyflakes_GetHighlightRegex(i) if stridx(a:i['text'], 'is assigned to but never used') >= 0 \ || stridx(a:i['text'], 'imported but unused') >= 0 @@ -54,3 +58,8 @@ endfunction call g:SyntasticRegistry.CreateAndRegisterChecker({ \ 'filetype': 'python', \ 'name': 'pyflakes'}) + +let &cpo = s:save_cpo +unlet s:save_cpo + +" vim: set et sts=4 sw=4: diff --git a/syntax_checkers/python/pylama.vim b/syntax_checkers/python/pylama.vim index 9bbdd45c..b8c7663a 100644 --- a/syntax_checkers/python/pylama.vim +++ b/syntax_checkers/python/pylama.vim @@ -9,13 +9,17 @@ " See http://sam.zoy.org/wtfpl/COPYING for more details. " "============================================================================ + if exists('g:loaded_syntastic_python_pylama_checker') finish endif let g:loaded_syntastic_python_pylama_checker = 1 -function! SyntaxCheckers_python_pylama_GetHighlightRegex(i) - return SyntaxCheckers_python_pyflakes_GetHighlightRegex(a:i) +let s:save_cpo = &cpo +set cpo&vim + +function! SyntaxCheckers_python_pylama_GetHighlightRegex(item) + return SyntaxCheckers_python_pyflakes_GetHighlightRegex(a:item) endfunction function! SyntaxCheckers_python_pylama_GetLocList() dict @@ -57,3 +61,8 @@ runtime! syntax_checkers/python/pyflakes.vim call g:SyntasticRegistry.CreateAndRegisterChecker({ \ 'filetype': 'python', \ 'name': 'pylama' }) + +let &cpo = s:save_cpo +unlet s:save_cpo + +" vim: set et sts=4 sw=4: diff --git a/syntax_checkers/python/pylint.vim b/syntax_checkers/python/pylint.vim index fcd40328..4267fdf2 100644 --- a/syntax_checkers/python/pylint.vim +++ b/syntax_checkers/python/pylint.vim @@ -4,6 +4,7 @@ "Author: Parantapa Bhattacharya " "============================================================================ + if exists("g:loaded_syntastic_python_pylint_checker") finish endif @@ -11,6 +12,9 @@ let g:loaded_syntastic_python_pylint_checker = 1 let s:pylint_new = -1 +let s:save_cpo = &cpo +set cpo&vim + function! SyntaxCheckers_python_pylint_IsAvailable() dict let exe = self.getExec() let s:pylint_new = executable(exe) ? s:PylintNew(exe) : -1 @@ -65,3 +69,8 @@ endfunction call g:SyntasticRegistry.CreateAndRegisterChecker({ \ 'filetype': 'python', \ 'name': 'pylint' }) + +let &cpo = s:save_cpo +unlet s:save_cpo + +" vim: set et sts=4 sw=4: diff --git a/syntax_checkers/python/python.vim b/syntax_checkers/python/python.vim index 0038b50e..74d53c52 100644 --- a/syntax_checkers/python/python.vim +++ b/syntax_checkers/python/python.vim @@ -7,10 +7,14 @@ " http://www.vim.org/scripts/download_script.php?src_id=1392 " "============================================================================ + if exists("g:loaded_syntastic_python_python_checker") finish endif -let g:loaded_syntastic_python_python_checker=1 +let g:loaded_syntastic_python_python_checker = 1 + +let s:save_cpo = &cpo +set cpo&vim function! SyntaxCheckers_python_python_GetLocList() dict let fname = "'" . escape(expand('%'), "\\'") . "'" @@ -34,3 +38,8 @@ endfunction call g:SyntasticRegistry.CreateAndRegisterChecker({ \ 'filetype': 'python', \ 'name': 'python'}) + +let &cpo = s:save_cpo +unlet s:save_cpo + +" vim: set et sts=4 sw=4: diff --git a/syntax_checkers/racket/racket.vim b/syntax_checkers/racket/racket.vim index 870b5790..71615205 100644 --- a/syntax_checkers/racket/racket.vim +++ b/syntax_checkers/racket/racket.vim @@ -19,8 +19,6 @@ let g:loaded_syntastic_racket_racket_checker=1 let s:save_cpo = &cpo set cpo&vim -" at some point put in the GetHightlightRegex(item) callback - function! SyntaxCheckers_racket_racket_GetLocList() dict let makeprg = self.makeprgBuild({}) @@ -48,3 +46,5 @@ call g:SyntasticRegistry.CreateAndRegisterChecker({ let &cpo = s:save_cpo unlet s:save_cpo + +" vim: set et sts=4 sw=4: diff --git a/syntax_checkers/rst/rst2pseudoxml.vim b/syntax_checkers/rst/rst2pseudoxml.vim index 0aa3b852..795fa277 100644 --- a/syntax_checkers/rst/rst2pseudoxml.vim +++ b/syntax_checkers/rst/rst2pseudoxml.vim @@ -16,15 +16,15 @@ if exists("g:loaded_syntastic_rst_rst2pseudoxml_checker") finish endif -let g:loaded_syntastic_rst_rst2pseudoxml_checker=1 +let g:loaded_syntastic_rst_rst2pseudoxml_checker = 1 -function! SyntaxCheckers_rst_rst2pseudoxml_IsAvailable() dict - return executable(s:exe()) -endfunction +let s:rst2pseudoxml = executable('rst2pseudoxml.py') ? 'rst2pseudoxml.py' : 'rst2pseudoxml' + +let s:save_cpo = &cpo +set cpo&vim function! SyntaxCheckers_rst_rst2pseudoxml_GetLocList() dict let makeprg = self.makeprgBuild({ - \ 'exe': s:exe(), \ 'args': '--report=2 --exit-status=1', \ 'tail': syntastic#util#DevNull() }) @@ -51,10 +51,12 @@ function! SyntaxCheckers_rst_rst2pseudoxml_GetLocList() dict return loclist endfunction -function! s:exe() - return executable("rst2pseudoxml.py") ? "rst2pseudoxml.py" : "rst2pseudoxml" -endfunction - call g:SyntasticRegistry.CreateAndRegisterChecker({ \ 'filetype': 'rst', - \ 'name': 'rst2pseudoxml'}) + \ 'name': 'rst2pseudoxml', + \ 'exec': s:rst2pseudoxml }) + +let &cpo = s:save_cpo +unlet s:save_cpo + +" vim: set et sts=4 sw=4: diff --git a/syntax_checkers/rst/rstcheck.vim b/syntax_checkers/rst/rstcheck.vim index f98b97c3..e55a045e 100644 --- a/syntax_checkers/rst/rstcheck.vim +++ b/syntax_checkers/rst/rstcheck.vim @@ -5,15 +5,13 @@ " "============================================================================ -" https://github.com/myint/rstcheck -" -" To install rstcheck: -" $ pip install --upgrade rstcheck - if exists("g:loaded_syntastic_rst_rstcheck_checker") finish endif -let g:loaded_syntastic_rst_rstcheck_checker=1 +let g:loaded_syntastic_rst_rstcheck_checker = 1 + +let s:save_cpo = &cpo +set cpo&vim function! SyntaxCheckers_rst_rstcheck_GetLocList() dict let makeprg = self.makeprgBuild({}) @@ -44,3 +42,8 @@ endfunction call g:SyntasticRegistry.CreateAndRegisterChecker({ \ 'filetype': 'rst', \ 'name': 'rstcheck'}) + +let &cpo = s:save_cpo +unlet s:save_cpo + +" vim: set et sts=4 sw=4: diff --git a/syntax_checkers/ruby/jruby.vim b/syntax_checkers/ruby/jruby.vim index 34f3014d..587fe05f 100644 --- a/syntax_checkers/ruby/jruby.vim +++ b/syntax_checkers/ruby/jruby.vim @@ -9,10 +9,14 @@ " See http://sam.zoy.org/wtfpl/COPYING for more details. " "============================================================================ + if exists("g:loaded_syntastic_ruby_jruby_checker") finish endif -let g:loaded_syntastic_ruby_jruby_checker=1 +let g:loaded_syntastic_ruby_jruby_checker = 1 + +let s:save_cpo = &cpo +set cpo&vim function! SyntaxCheckers_ruby_jruby_GetLocList() dict if syntastic#util#isRunningWindows() @@ -42,3 +46,8 @@ endfunction call g:SyntasticRegistry.CreateAndRegisterChecker({ \ 'filetype': 'ruby', \ 'name': 'jruby'}) + +let &cpo = s:save_cpo +unlet s:save_cpo + +" vim: set et sts=4 sw=4: diff --git a/syntax_checkers/ruby/macruby.vim b/syntax_checkers/ruby/macruby.vim index ebfcd18f..002b7194 100644 --- a/syntax_checkers/ruby/macruby.vim +++ b/syntax_checkers/ruby/macruby.vim @@ -8,10 +8,14 @@ " See http://sam.zoy.org/wtfpl/COPYING for more details. " "============================================================================ + if exists("g:loaded_syntastic_ruby_macruby_checker") finish endif -let g:loaded_syntastic_ruby_macruby_checker=1 +let g:loaded_syntastic_ruby_macruby_checker = 1 + +let s:save_cpo = &cpo +set cpo&vim function! SyntaxCheckers_ruby_macruby_GetLocList() dict let makeprg = self.makeprgBuild({ @@ -35,3 +39,8 @@ endfunction call g:SyntasticRegistry.CreateAndRegisterChecker({ \ 'filetype': 'ruby', \ 'name': 'macruby'}) + +let &cpo = s:save_cpo +unlet s:save_cpo + +" vim: set et sts=4 sw=4: diff --git a/syntax_checkers/ruby/mri.vim b/syntax_checkers/ruby/mri.vim index ce11b4ba..4aac0ab5 100644 --- a/syntax_checkers/ruby/mri.vim +++ b/syntax_checkers/ruby/mri.vim @@ -13,12 +13,15 @@ if exists("g:loaded_syntastic_ruby_mri_checker") finish endif -let g:loaded_syntastic_ruby_mri_checker=1 +let g:loaded_syntastic_ruby_mri_checker = 1 if !exists("g:syntastic_ruby_exec") let g:syntastic_ruby_exec = "ruby" endif +let s:save_cpo = &cpo +set cpo&vim + function! SyntaxCheckers_ruby_mri_GetHighlightRegex(i) if stridx(a:i['text'], 'assigned but unused variable') >= 0 let term = split(a:i['text'], ' - ')[1] @@ -70,3 +73,8 @@ call g:SyntasticRegistry.CreateAndRegisterChecker({ \ 'filetype': 'ruby', \ 'name': 'mri', \ 'exec': 'ruby'}) + +let &cpo = s:save_cpo +unlet s:save_cpo + +" vim: set et sts=4 sw=4: diff --git a/syntax_checkers/ruby/rubocop.vim b/syntax_checkers/ruby/rubocop.vim index 60200cf2..cf6bf4d7 100644 --- a/syntax_checkers/ruby/rubocop.vim +++ b/syntax_checkers/ruby/rubocop.vim @@ -16,7 +16,10 @@ if exists("g:loaded_syntastic_ruby_rubocop_checker") finish endif -let g:loaded_syntastic_ruby_rubocop_checker=1 +let g:loaded_syntastic_ruby_rubocop_checker = 1 + +let s:save_cpo = &cpo +set cpo&vim function! SyntaxCheckers_ruby_rubocop_IsAvailable() dict let exe = self.getExec() @@ -50,3 +53,8 @@ endfunction call g:SyntasticRegistry.CreateAndRegisterChecker({ \ 'filetype': 'ruby', \ 'name': 'rubocop'}) + +let &cpo = s:save_cpo +unlet s:save_cpo + +" vim: set et sts=4 sw=4: diff --git a/syntax_checkers/ruby/rubylint.vim b/syntax_checkers/ruby/rubylint.vim index 4cf1f865..02ed2f2f 100644 --- a/syntax_checkers/ruby/rubylint.vim +++ b/syntax_checkers/ruby/rubylint.vim @@ -16,6 +16,9 @@ endif let g:loaded_syntastic_ruby_rubylint_checker = 1 +let s:save_cpo = &cpo +set cpo&vim + function! SyntaxCheckers_ruby_rubylint_GetLocList() dict let makeprg = self.makeprgBuild({ 'args': 'analyze --presenter=syntastic' }) @@ -31,4 +34,7 @@ call g:SyntasticRegistry.CreateAndRegisterChecker({ \ 'name': 'rubylint', \ 'exec': 'ruby-lint'}) -" vim: set ts=4 sts=4 sw=4: +let &cpo = s:save_cpo +unlet s:save_cpo + +" vim: set et sts=4 sw=4: diff --git a/syntax_checkers/rust/rustc.vim b/syntax_checkers/rust/rustc.vim index de4de537..9910ae5c 100644 --- a/syntax_checkers/rust/rustc.vim +++ b/syntax_checkers/rust/rustc.vim @@ -13,7 +13,10 @@ if exists("g:loaded_syntastic_rust_rustc_checker") finish endif -let g:loaded_syntastic_rust_rustc_checker=1 +let g:loaded_syntastic_rust_rustc_checker = 1 + +let s:save_cpo = &cpo +set cpo&vim function! SyntaxCheckers_rust_rustc_GetLocList() dict let makeprg = self.makeprgBuild({ 'args': '--parse-only' }) @@ -32,3 +35,8 @@ endfunction call g:SyntasticRegistry.CreateAndRegisterChecker({ \ 'filetype': 'rust', \ 'name': 'rustc'}) + +let &cpo = s:save_cpo +unlet s:save_cpo + +" vim: set et sts=4 sw=4: diff --git a/syntax_checkers/sass/sass.vim b/syntax_checkers/sass/sass.vim index 5edfebe7..6ff168e2 100644 --- a/syntax_checkers/sass/sass.vim +++ b/syntax_checkers/sass/sass.vim @@ -13,7 +13,7 @@ if exists("g:loaded_syntastic_sass_sass_checker") finish endif -let g:loaded_syntastic_sass_sass_checker=1 +let g:loaded_syntastic_sass_sass_checker = 1 "sass caching for large files drastically speeds up the checking, but store it "in a temp location otherwise sass puts .sass_cache dirs in the users project @@ -30,6 +30,9 @@ if executable("compass") let s:imports = "--compass" endif +let s:save_cpo = &cpo +set cpo&vim + function! SyntaxCheckers_sass_sass_GetLocList() dict if !g:syntastic_sass_check_partials && expand('%:t')[0] == '_' return [] @@ -69,3 +72,8 @@ endfunction call g:SyntasticRegistry.CreateAndRegisterChecker({ \ 'filetype': 'sass', \ 'name': 'sass'}) + +let &cpo = s:save_cpo +unlet s:save_cpo + +" vim: set et sts=4 sw=4: diff --git a/syntax_checkers/scala/fsc.vim b/syntax_checkers/scala/fsc.vim index e5f44c31..02809e9c 100644 --- a/syntax_checkers/scala/fsc.vim +++ b/syntax_checkers/scala/fsc.vim @@ -19,6 +19,9 @@ if !exists('g:syntastic_scala_options') let g:syntastic_scala_options = '' endif +let s:save_cpo = &cpo +set cpo&vim + function! SyntaxCheckers_scala_fsc_GetLocList() dict " fsc has some serious problems with the " working directory changing after being started @@ -40,3 +43,8 @@ endfunction call g:SyntasticRegistry.CreateAndRegisterChecker({ \ 'filetype': 'scala', \ 'name': 'fsc'}) + +let &cpo = s:save_cpo +unlet s:save_cpo + +" vim: set et sts=4 sw=4: diff --git a/syntax_checkers/scala/scalac.vim b/syntax_checkers/scala/scalac.vim index eaf4e719..3d11fa7c 100644 --- a/syntax_checkers/scala/scalac.vim +++ b/syntax_checkers/scala/scalac.vim @@ -13,12 +13,15 @@ if exists("g:loaded_syntastic_scala_scalac_checker") finish endif -let g:loaded_syntastic_scala_scalac_checker=1 +let g:loaded_syntastic_scala_scalac_checker = 1 if !exists('g:syntastic_scala_options') let g:syntastic_scala_options = '' endif +let s:save_cpo = &cpo +set cpo&vim + function! SyntaxCheckers_scala_scalac_GetLocList() dict let makeprg = self.makeprgBuild({ \ 'args': '-Ystop-after:parser ' . g:syntastic_scala_options }) @@ -36,3 +39,8 @@ endfunction call g:SyntasticRegistry.CreateAndRegisterChecker({ \ 'filetype': 'scala', \ 'name': 'scalac'}) + +let &cpo = s:save_cpo +unlet s:save_cpo + +" vim: set et sts=4 sw=4: diff --git a/syntax_checkers/scss/sass.vim b/syntax_checkers/scss/sass.vim index 1fa54b7d..61bd6de7 100644 --- a/syntax_checkers/scss/sass.vim +++ b/syntax_checkers/scss/sass.vim @@ -14,7 +14,7 @@ if exists("g:loaded_syntastic_scss_sass_checker") finish endif -let g:loaded_syntastic_scss_sass_checker=1 +let g:loaded_syntastic_scss_sass_checker = 1 runtime! syntax_checkers/sass/*.vim @@ -22,3 +22,5 @@ call g:SyntasticRegistry.CreateAndRegisterChecker({ \ 'filetype': 'scss', \ 'name': 'sass', \ 'redirect': 'sass/sass'}) + +" vim: set et sts=4 sw=4: diff --git a/syntax_checkers/scss/scss_lint.vim b/syntax_checkers/scss/scss_lint.vim index dd1f927f..5219c37b 100644 --- a/syntax_checkers/scss/scss_lint.vim +++ b/syntax_checkers/scss/scss_lint.vim @@ -12,7 +12,10 @@ if exists("g:loaded_syntastic_scss_scss_lint_checker") finish endif -let g:loaded_syntastic_scss_scss_lint_checker=1 +let g:loaded_syntastic_scss_scss_lint_checker = 1 + +let s:save_cpo = &cpo +set cpo&vim function! SyntaxCheckers_scss_scss_lint_GetLocList() dict let makeprg = self.makeprgBuild({}) @@ -27,3 +30,8 @@ call g:SyntasticRegistry.CreateAndRegisterChecker({ \ 'filetype': 'scss', \ 'name': 'scss_lint', \ 'exec': 'scss-lint' }) + +let &cpo = s:save_cpo +unlet s:save_cpo + +" vim: set et sts=4 sw=4: diff --git a/syntax_checkers/sh/checkbashisms.vim b/syntax_checkers/sh/checkbashisms.vim index 6f8b1053..42751cf9 100644 --- a/syntax_checkers/sh/checkbashisms.vim +++ b/syntax_checkers/sh/checkbashisms.vim @@ -9,7 +9,10 @@ if exists("g:loaded_syntastic_sh_checkbashisms_checker") finish endif -let g:loaded_syntastic_sh_checkbashisms_checker=1 +let g:loaded_syntastic_sh_checkbashisms_checker = 1 + +let s:save_cpo = &cpo +set cpo&vim function! SyntaxCheckers_sh_checkbashisms_GetLocList() dict let makeprg = self.makeprgBuild({ 'args': '-fx' }) @@ -29,7 +32,11 @@ function! SyntaxCheckers_sh_checkbashisms_GetLocList() dict \ 'subtype': 'Style' }) endfunction - call g:SyntasticRegistry.CreateAndRegisterChecker({ \ 'filetype': 'sh', \ 'name': 'checkbashisms' }) + +let &cpo = s:save_cpo +unlet s:save_cpo + +" vim: set et sts=4 sw=4: diff --git a/syntax_checkers/sh/sh.vim b/syntax_checkers/sh/sh.vim index 6e196055..4e4be67b 100644 --- a/syntax_checkers/sh/sh.vim +++ b/syntax_checkers/sh/sh.vim @@ -13,7 +13,10 @@ if exists("g:loaded_syntastic_sh_sh_checker") finish endif -let g:loaded_syntastic_sh_sh_checker=1 +let g:loaded_syntastic_sh_sh_checker = 1 + +let s:save_cpo = &cpo +set cpo&vim function! s:GetShell() if !exists('b:shell') || b:shell == '' @@ -78,3 +81,8 @@ endfunction call g:SyntasticRegistry.CreateAndRegisterChecker({ \ 'filetype': 'sh', \ 'name': 'sh' }) + +let &cpo = s:save_cpo +unlet s:save_cpo + +" vim: set et sts=4 sw=4: diff --git a/syntax_checkers/sh/shellcheck.vim b/syntax_checkers/sh/shellcheck.vim index 2c983eef..af141640 100644 --- a/syntax_checkers/sh/shellcheck.vim +++ b/syntax_checkers/sh/shellcheck.vim @@ -8,6 +8,9 @@ if exists("g:loaded_syntastic_sh_shellcheck_checker") endif let g:loaded_syntastic_sh_shellcheck_checker = 1 +let s:save_cpo = &cpo +set cpo&vim + function! SyntaxCheckers_sh_shellcheck_GetLocList() dict let makeprg = self.makeprgBuild({ 'args': '-f gcc' }) @@ -34,3 +37,8 @@ endfunction call g:SyntasticRegistry.CreateAndRegisterChecker({ \ 'filetype': 'sh', \ 'name': 'shellcheck' }) + +let &cpo = s:save_cpo +unlet s:save_cpo + +" vim: set et sts=4 sw=4: diff --git a/syntax_checkers/slim/slimrb.vim b/syntax_checkers/slim/slimrb.vim index 90f5b9f2..43840a21 100644 --- a/syntax_checkers/slim/slimrb.vim +++ b/syntax_checkers/slim/slimrb.vim @@ -13,7 +13,10 @@ if exists("g:loaded_syntastic_slim_slimrb_checker") finish endif -let g:loaded_syntastic_slim_slimrb_checker=1 +let g:loaded_syntastic_slim_slimrb_checker = 1 + +let s:save_cpo = &cpo +set cpo&vim function! s:SlimrbVersion() if !exists('s:slimrb_version') @@ -47,3 +50,8 @@ endfunction call g:SyntasticRegistry.CreateAndRegisterChecker({ \ 'filetype': 'slim', \ 'name': 'slimrb'}) + +let &cpo = s:save_cpo +unlet s:save_cpo + +" vim: set et sts=4 sw=4: diff --git a/syntax_checkers/tcl/nagelfar.vim b/syntax_checkers/tcl/nagelfar.vim index b17f8a67..2b128b44 100644 --- a/syntax_checkers/tcl/nagelfar.vim +++ b/syntax_checkers/tcl/nagelfar.vim @@ -11,10 +11,14 @@ " See nagelfar homepage http://nagelfar.berlios.de/. " "============================================================================ + if exists("g:loaded_syntastic_tcl_nagelfar_checker") finish endif -let g:loaded_syntastic_tcl_nagelfar_checker=1 +let g:loaded_syntastic_tcl_nagelfar_checker = 1 + +let s:save_cpo = &cpo +set cpo&vim function! SyntaxCheckers_tcl_nagelfar_GetLocList() dict let makeprg = self.makeprgBuild({ 'args': '-H' }) @@ -32,3 +36,8 @@ endfunction call g:SyntasticRegistry.CreateAndRegisterChecker({ \ 'filetype': 'tcl', \ 'name': 'nagelfar'}) + +let &cpo = s:save_cpo +unlet s:save_cpo + +" vim: set et sts=4 sw=4: diff --git a/syntax_checkers/tex/chktex.vim b/syntax_checkers/tex/chktex.vim index 5263807c..3417692d 100644 --- a/syntax_checkers/tex/chktex.vim +++ b/syntax_checkers/tex/chktex.vim @@ -28,6 +28,9 @@ if exists('g:loaded_syntastic_tex_chktex_checker') endif let g:loaded_syntastic_tex_chktex_checker = 1 +let s:save_cpo = &cpo +set cpo&vim + if !exists('g:syntastic_tex_chktex_showmsgs') let g:syntastic_tex_chktex_showmsgs = 1 endif @@ -52,3 +55,8 @@ endfunction call g:SyntasticRegistry.CreateAndRegisterChecker({ \ 'filetype': 'tex', \ 'name': 'chktex'}) + +let &cpo = s:save_cpo +unlet s:save_cpo + +" vim: set et sts=4 sw=4: diff --git a/syntax_checkers/tex/lacheck.vim b/syntax_checkers/tex/lacheck.vim index ec1e4bed..0896919c 100644 --- a/syntax_checkers/tex/lacheck.vim +++ b/syntax_checkers/tex/lacheck.vim @@ -13,7 +13,10 @@ if exists('g:loaded_syntastic_tex_lacheck_checker') finish endif -let g:loaded_syntastic_tex_lacheck_checker=1 +let g:loaded_syntastic_tex_lacheck_checker = 1 + +let s:save_cpo = &cpo +set cpo&vim function! SyntaxCheckers_tex_lacheck_GetLocList() dict let makeprg = self.makeprgBuild({}) @@ -30,3 +33,8 @@ endfunction call g:SyntasticRegistry.CreateAndRegisterChecker({ \ 'filetype': 'tex', \ 'name': 'lacheck'}) + +let &cpo = s:save_cpo +unlet s:save_cpo + +" vim: set et sts=4 sw=4: diff --git a/syntax_checkers/text/atdtool.vim b/syntax_checkers/text/atdtool.vim index c3d8ee1c..5a8ea0c7 100644 --- a/syntax_checkers/text/atdtool.vim +++ b/syntax_checkers/text/atdtool.vim @@ -15,6 +15,9 @@ if exists("g:loaded_syntastic_text_atdtool_checker") endif let g:loaded_syntastic_text_atdtool_checker = 1 +let s:save_cpo = &cpo +set cpo&vim + function! SyntaxCheckers_text_atdtool_GetHighlightRegex(item) let term = matchstr(a:item['text'], '\m "\zs[^"]\+\ze"\($\| | suggestions:\)') if term != '' @@ -47,3 +50,8 @@ endfunction call g:SyntasticRegistry.CreateAndRegisterChecker({ \ 'filetype': 'text', \ 'name': 'atdtool'}) + +let &cpo = s:save_cpo +unlet s:save_cpo + +" vim: set et sts=4 sw=4: diff --git a/syntax_checkers/twig/twiglint.vim b/syntax_checkers/twig/twiglint.vim index 90b76fc4..98d5141d 100644 --- a/syntax_checkers/twig/twiglint.vim +++ b/syntax_checkers/twig/twiglint.vim @@ -13,7 +13,10 @@ if exists("g:loaded_syntastic_twig_twiglint_checker") finish endif -let g:loaded_syntastic_twig_twiglint_checker=1 +let g:loaded_syntastic_twig_twiglint_checker = 1 + +let s:save_cpo = &cpo +set cpo&vim function! SyntaxCheckers_twig_twiglint_GetHighlightRegex(item) " Let's match the full line for now @@ -34,3 +37,8 @@ call g:SyntasticRegistry.CreateAndRegisterChecker({ \ 'filetype': 'twig', \ 'name': 'twiglint', \ 'exec': 'twig-lint'}) + +let &cpo = s:save_cpo +unlet s:save_cpo + +" vim: set et sts=4 sw=4: diff --git a/syntax_checkers/typescript/tsc.vim b/syntax_checkers/typescript/tsc.vim index 0953acb3..73408f76 100644 --- a/syntax_checkers/typescript/tsc.vim +++ b/syntax_checkers/typescript/tsc.vim @@ -7,7 +7,10 @@ if exists("g:loaded_syntastic_typescript_tsc_checker") finish endif -let g:loaded_syntastic_typescript_tsc_checker=1 +let g:loaded_syntastic_typescript_tsc_checker = 1 + +let s:save_cpo = &cpo +set cpo&vim function! SyntaxCheckers_typescript_tsc_GetLocList() dict let makeprg = self.makeprgBuild({ @@ -30,3 +33,8 @@ endfunction call g:SyntasticRegistry.CreateAndRegisterChecker({ \ 'filetype': 'typescript', \ 'name': 'tsc'}) + +let &cpo = s:save_cpo +unlet s:save_cpo + +" vim: set et sts=4 sw=4: diff --git a/syntax_checkers/vala/valac.vim b/syntax_checkers/vala/valac.vim index e33dd03a..dc5ae48b 100644 --- a/syntax_checkers/vala/valac.vim +++ b/syntax_checkers/vala/valac.vim @@ -32,6 +32,9 @@ if exists("g:loaded_syntastic_vala_valac_checker") endif let g:loaded_syntastic_vala_valac_checker = 1 +let s:save_cpo = &cpo +set cpo&vim + function! SyntaxCheckers_vala_valac_GetHighlightRegex(pos) let strlength = strlen(matchstr(a:pos['text'], '\m\^\+$')) return '\%>' . (a:pos.col-1) . 'c.*\%<' . (a:pos.col+strlength+1) . 'c' @@ -87,3 +90,8 @@ endfunction call g:SyntasticRegistry.CreateAndRegisterChecker({ \ 'filetype': 'vala', \ 'name': 'valac'}) + +let &cpo = s:save_cpo +unlet s:save_cpo + +" vim: set et sts=4 sw=4: diff --git a/syntax_checkers/vhdl/ghdl.vim b/syntax_checkers/vhdl/ghdl.vim index 915d3b4f..b6fba1f2 100644 --- a/syntax_checkers/vhdl/ghdl.vim +++ b/syntax_checkers/vhdl/ghdl.vim @@ -9,11 +9,15 @@ " See http://sam.zoy.org/wtfpl/COPYING for more details. " "============================================================================ + if exists("g:loaded_syntastic_vhdl_ghdl_checker") finish endif let g:loaded_syntastic_vhdl_ghdl_checker = 1 +let s:save_cpo = &cpo +set cpo&vim + function! SyntaxCheckers_vhdl_ghdl_GetLocList() dict let makeprg = self.makeprgBuild({ 'args': '-s' }) @@ -27,3 +31,8 @@ endfunction call g:SyntasticRegistry.CreateAndRegisterChecker({ \ 'filetype': 'vhdl', \ 'name': 'ghdl'}) + +let &cpo = s:save_cpo +unlet s:save_cpo + +" vim: set et sts=4 sw=4: diff --git a/syntax_checkers/xhtml/tidy.vim b/syntax_checkers/xhtml/tidy.vim index c8392d90..06b255ac 100644 --- a/syntax_checkers/xhtml/tidy.vim +++ b/syntax_checkers/xhtml/tidy.vim @@ -18,12 +18,15 @@ if exists("g:loaded_syntastic_xhtml_tidy_checker") finish endif -let g:loaded_syntastic_xhtml_tidy_checker=1 +let g:loaded_syntastic_xhtml_tidy_checker = 1 if !exists('g:syntastic_xhtml_tidy_ignore_errors') let g:syntastic_xhtml_tidy_ignore_errors = [] endif +let s:save_cpo = &cpo +set cpo&vim + " TODO: join this with html.vim DRY's sake? function! s:TidyEncOptByFenc() let tidy_opts = { @@ -79,3 +82,8 @@ endfunction call g:SyntasticRegistry.CreateAndRegisterChecker({ \ 'filetype': 'xhtml', \ 'name': 'tidy'}) + +let &cpo = s:save_cpo +unlet s:save_cpo + +" vim: set et sts=4 sw=4: diff --git a/syntax_checkers/xml/xmllint.vim b/syntax_checkers/xml/xmllint.vim index 99dbf251..d09df879 100644 --- a/syntax_checkers/xml/xmllint.vim +++ b/syntax_checkers/xml/xmllint.vim @@ -13,7 +13,10 @@ if exists("g:loaded_syntastic_xml_xmllint_checker") finish endif -let g:loaded_syntastic_xml_xmllint_checker=1 +let g:loaded_syntastic_xml_xmllint_checker = 1 + +let s:save_cpo = &cpo +set cpo&vim " You can use a local installation of DTDs to significantly speed up validation " and allow you to validate XML data without network access, see xmlcatalog(1) @@ -42,3 +45,8 @@ endfunction call g:SyntasticRegistry.CreateAndRegisterChecker({ \ 'filetype': 'xml', \ 'name': 'xmllint'}) + +let &cpo = s:save_cpo +unlet s:save_cpo + +" vim: set et sts=4 sw=4: diff --git a/syntax_checkers/xslt/xmllint.vim b/syntax_checkers/xslt/xmllint.vim index 7e6afbe6..e224c256 100644 --- a/syntax_checkers/xslt/xmllint.vim +++ b/syntax_checkers/xslt/xmllint.vim @@ -13,7 +13,7 @@ if exists("g:loaded_syntastic_xslt_xmllint_checker") finish endif -let g:loaded_syntastic_xslt_xmllint_checker=1 +let g:loaded_syntastic_xslt_xmllint_checker = 1 runtime! syntax_checkers/xml/*.vim @@ -21,3 +21,5 @@ call g:SyntasticRegistry.CreateAndRegisterChecker({ \ 'filetype': 'xslt', \ 'name': 'xmllint', \ 'redirect': 'xml/xmllint'}) + +" vim: set et sts=4 sw=4: diff --git a/syntax_checkers/yacc/bison.vim b/syntax_checkers/yacc/bison.vim index 79921a42..b285b2fb 100644 --- a/syntax_checkers/yacc/bison.vim +++ b/syntax_checkers/yacc/bison.vim @@ -51,3 +51,5 @@ call g:SyntasticRegistry.CreateAndRegisterChecker({ let &cpo = s:save_cpo unlet s:save_cpo + +" vim: set et sts=4 sw=4: diff --git a/syntax_checkers/yaml/jsyaml.vim b/syntax_checkers/yaml/jsyaml.vim index ddc72bfd..366a3a62 100644 --- a/syntax_checkers/yaml/jsyaml.vim +++ b/syntax_checkers/yaml/jsyaml.vim @@ -16,7 +16,10 @@ if exists("g:loaded_syntastic_yaml_jsyaml_checker") finish endif -let g:loaded_syntastic_yaml_jsyaml_checker=1 +let g:loaded_syntastic_yaml_jsyaml_checker = 1 + +let s:save_cpo = &cpo +set cpo&vim function! SyntaxCheckers_yaml_jsyaml_GetLocList() dict if !exists('s:js_yaml_new') @@ -41,3 +44,8 @@ call g:SyntasticRegistry.CreateAndRegisterChecker({ \ 'filetype': 'yaml', \ 'name': 'jsyaml', \ 'exec': 'js-yaml'}) + +let &cpo = s:save_cpo +unlet s:save_cpo + +" vim: set et sts=4 sw=4: diff --git a/syntax_checkers/yaml/yamlxs.vim b/syntax_checkers/yaml/yamlxs.vim index 4ccf5e78..b8a540f1 100644 --- a/syntax_checkers/yaml/yamlxs.vim +++ b/syntax_checkers/yaml/yamlxs.vim @@ -14,7 +14,7 @@ if exists("g:loaded_syntastic_yaml_yamlxs_checker") finish endif -let g:loaded_syntastic_yaml_yamlxs_checker=1 +let g:loaded_syntastic_yaml_yamlxs_checker = 1 if !exists('g:syntastic_perl_interpreter') let g:syntastic_perl_interpreter = 'perl' @@ -24,6 +24,9 @@ if !exists('g:syntastic_perl_lib_path') let g:syntastic_perl_lib_path = [] endif +let s:save_cpo = &cpo +set cpo&vim + function! SyntaxCheckers_yaml_yamlxs_IsAvailable() dict " don't call executable() here, to allow things like " let g:syntastic_perl_interpreter='/usr/bin/env perl' @@ -67,3 +70,8 @@ endfunction call g:SyntasticRegistry.CreateAndRegisterChecker({ \ 'filetype': 'yaml', \ 'name': 'yamlxs' }) + +let &cpo = s:save_cpo +unlet s:save_cpo + +" vim: set et sts=4 sw=4: diff --git a/syntax_checkers/z80/z80syntaxchecker.vim b/syntax_checkers/z80/z80syntaxchecker.vim index a0c3c6ea..bbf3e48d 100644 --- a/syntax_checkers/z80/z80syntaxchecker.vim +++ b/syntax_checkers/z80/z80syntaxchecker.vim @@ -19,7 +19,10 @@ if exists("g:loaded_syntastic_z80_z80syntaxchecker_checker") finish endif -let g:loaded_syntastic_z80_z80syntaxchecker_checker=1 +let g:loaded_syntastic_z80_z80syntaxchecker_checker = 1 + +let s:save_cpo = &cpo +set cpo&vim function! SyntaxCheckers_z80_z80syntaxchecker_GetLocList() dict let makeprg = self.makeprgBuild({}) @@ -35,3 +38,8 @@ call g:SyntasticRegistry.CreateAndRegisterChecker({ \ 'filetype': 'z80', \ 'name': 'z80syntaxchecker', \ 'exec': 'z80_syntax_checker.py'}) + +let &cpo = s:save_cpo +unlet s:save_cpo + +" vim: set et sts=4 sw=4: diff --git a/syntax_checkers/zpt/zptlint.vim b/syntax_checkers/zpt/zptlint.vim index 16b85e0c..6769b55b 100644 --- a/syntax_checkers/zpt/zptlint.vim +++ b/syntax_checkers/zpt/zptlint.vim @@ -22,7 +22,10 @@ if exists("g:loaded_syntastic_zpt_zptlint_checker") finish endif -let g:loaded_syntastic_zpt_zptlint_checker=1 +let g:loaded_syntastic_zpt_zptlint_checker = 1 + +let s:save_cpo = &cpo +set cpo&vim function! SyntaxCheckers_zpt_zptlint_GetLocList() dict let makeprg = self.makeprgBuild({}) @@ -41,3 +44,8 @@ endfunction call g:SyntasticRegistry.CreateAndRegisterChecker({ \ 'filetype': 'zpt', \ 'name': 'zptlint'}) + +let &cpo = s:save_cpo +unlet s:save_cpo + +" vim: set et sts=4 sw=4: diff --git a/syntax_checkers/zsh/zsh.vim b/syntax_checkers/zsh/zsh.vim index 09b5ee65..216cadae 100644 --- a/syntax_checkers/zsh/zsh.vim +++ b/syntax_checkers/zsh/zsh.vim @@ -13,7 +13,10 @@ if exists("g:loaded_syntastic_zsh_zsh_checker") finish endif -let g:loaded_syntastic_zsh_zsh_checker=1 +let g:loaded_syntastic_zsh_zsh_checker = 1 + +let s:save_cpo = &cpo +set cpo&vim function! SyntaxCheckers_zsh_zsh_GetLocList() dict let makeprg = self.makeprgBuild({ 'args': '-n' }) @@ -28,3 +31,8 @@ endfunction call g:SyntasticRegistry.CreateAndRegisterChecker({ \ 'filetype': 'zsh', \ 'name': 'zsh'}) + +let &cpo = s:save_cpo +unlet s:save_cpo + +" vim: set et sts=4 sw=4: