Minor cleanup: &cpo guards and formatting.

This commit is contained in:
LCD 47 2014-01-03 11:29:08 +02:00
parent cfe872b32b
commit b9accaa810
132 changed files with 1019 additions and 146 deletions

View File

@ -14,13 +14,13 @@ if exists('g:loaded_syntastic_actionscript_mxmlc_checker')
endif endif
let g:loaded_syntastic_actionscript_mxmlc_checker = 1 let g:loaded_syntastic_actionscript_mxmlc_checker = 1
let s:save_cpo = &cpo
set cpo&vim
if !exists('g:syntastic_actionscript_mxmlc_conf') if !exists('g:syntastic_actionscript_mxmlc_conf')
let g:syntastic_actionscript_mxmlc_conf = '' let g:syntastic_actionscript_mxmlc_conf = ''
endif endif
let s:save_cpo = &cpo
set cpo&vim
function! SyntaxCheckers_actionscript_mxmlc_GetHighlightRegex(item) function! SyntaxCheckers_actionscript_mxmlc_GetHighlightRegex(item)
let term = '' let term = ''
@ -66,3 +66,5 @@ call g:SyntasticRegistry.CreateAndRegisterChecker({
let &cpo = s:save_cpo let &cpo = s:save_cpo
unlet s:save_cpo unlet s:save_cpo
" vim: set et sts=4 sw=4:

View File

@ -16,13 +16,13 @@ if !exists('g:syntastic_ada_compiler')
let g:syntastic_ada_compiler = 'gcc' let g:syntastic_ada_compiler = 'gcc'
endif endif
let s:save_cpo = &cpo
set cpo&vim
function! SyntaxCheckers_ada_gcc_IsAvailable() dict function! SyntaxCheckers_ada_gcc_IsAvailable() dict
return executable(expand(g:syntastic_ada_compiler)) return executable(expand(g:syntastic_ada_compiler))
endfunction endfunction
let s:save_cpo = &cpo
set cpo&vim
if !exists('g:syntastic_ada_compiler_options') if !exists('g:syntastic_ada_compiler_options')
let g:syntastic_ada_compiler_options = '' let g:syntastic_ada_compiler_options = ''
endif endif

View File

@ -30,6 +30,9 @@ if exists("g:loaded_syntastic_applescript_osacompile_checker")
endif 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 function! SyntaxCheckers_applescript_osacompile_GetLocList() dict
let makeprg = self.makeprgBuild({ 'args': '-o ' . tempname() . '.scpt' }) let makeprg = self.makeprgBuild({ 'args': '-o ' . tempname() . '.scpt' })
let errorformat = '%f:%l:%m' let errorformat = '%f:%l:%m'
@ -39,3 +42,8 @@ endfunction
call g:SyntasticRegistry.CreateAndRegisterChecker({ call g:SyntasticRegistry.CreateAndRegisterChecker({
\ 'filetype': 'applescript', \ 'filetype': 'applescript',
\ 'name': 'osacompile' }) \ 'name': 'osacompile' })
let &cpo = s:save_cpo
unlet s:save_cpo
" vim: set et sts=4 sw=4:

View File

@ -15,6 +15,9 @@ if exists("g:loaded_syntastic_asciidoc_asciidoc_checker")
endif endif
let g:loaded_syntastic_asciidoc_asciidoc_checker = 1 let g:loaded_syntastic_asciidoc_asciidoc_checker = 1
let s:save_cpo = &cpo
set cpo&vim
function! SyntaxCheckers_asciidoc_asciidoc_GetLocList() dict function! SyntaxCheckers_asciidoc_asciidoc_GetLocList() dict
let makeprg = self.makeprgBuild({ 'args': syntastic#c#NullOutput() }) let makeprg = self.makeprgBuild({ 'args': syntastic#c#NullOutput() })
@ -37,3 +40,8 @@ endfunction
call g:SyntasticRegistry.CreateAndRegisterChecker({ call g:SyntasticRegistry.CreateAndRegisterChecker({
\ 'filetype': 'asciidoc', \ 'filetype': 'asciidoc',
\ 'name': 'asciidoc'}) \ 'name': 'asciidoc'})
let &cpo = s:save_cpo
unlet s:save_cpo
" vim: set et sts=4 sw=4:

View File

@ -8,6 +8,7 @@
" Want To Public License, Version 2, as published by Sam Hocevar. " Want To Public License, Version 2, as published by Sam Hocevar.
" See http://sam.zoy.org/wtfpl/COPYING for more details. " See http://sam.zoy.org/wtfpl/COPYING for more details.
"============================================================================ "============================================================================
if exists("g:loaded_syntastic_c_checkpatch_checker") if exists("g:loaded_syntastic_c_checkpatch_checker")
finish finish
endif endif
@ -20,6 +21,9 @@ elseif executable("./scripts/checkpatch.pl")
let g:syntastic_c_checker_checkpatch_location = './scripts/checkpatch.pl' let g:syntastic_c_checker_checkpatch_location = './scripts/checkpatch.pl'
endif endif
let s:save_cpo = &cpo
set cpo&vim
function! SyntaxCheckers_c_checkpatch_IsAvailable() dict function! SyntaxCheckers_c_checkpatch_IsAvailable() dict
return exists("g:syntastic_c_checker_checkpatch_location") return exists("g:syntastic_c_checker_checkpatch_location")
endfunction endfunction
@ -44,3 +48,8 @@ call g:SyntasticRegistry.CreateAndRegisterChecker({
\ 'filetype': 'c', \ 'filetype': 'c',
\ 'name': 'checkpatch', \ 'name': 'checkpatch',
\ 'exec': 'checkpatch.pl'}) \ 'exec': 'checkpatch.pl'})
let &cpo = s:save_cpo
unlet s:save_cpo
" vim: set et sts=4 sw=4:

View File

@ -25,6 +25,9 @@ if !exists('g:syntastic_cppcheck_config_file')
let g:syntastic_cppcheck_config_file = '.syntastic_cppcheck_config' let g:syntastic_cppcheck_config_file = '.syntastic_cppcheck_config'
endif endif
let s:save_cpo = &cpo
set cpo&vim
function! SyntaxCheckers_c_cppcheck_GetLocList() dict function! SyntaxCheckers_c_cppcheck_GetLocList() dict
let makeprg = self.makeprgBuild({ let makeprg = self.makeprgBuild({
\ 'args': '-q ' . syntastic#c#ReadConfig(g:syntastic_cppcheck_config_file), \ 'args': '-q ' . syntastic#c#ReadConfig(g:syntastic_cppcheck_config_file),
@ -58,3 +61,8 @@ endfunction
call g:SyntasticRegistry.CreateAndRegisterChecker({ call g:SyntasticRegistry.CreateAndRegisterChecker({
\ 'filetype': 'c', \ 'filetype': 'c',
\ 'name': 'cppcheck'}) \ 'name': 'cppcheck'})
let &cpo = s:save_cpo
unlet s:save_cpo
" vim: set et sts=4 sw=4:

View File

@ -10,7 +10,6 @@
" "
"============================================================================ "============================================================================
if exists('g:loaded_syntastic_c_gcc_checker') if exists('g:loaded_syntastic_c_gcc_checker')
finish finish
endif endif
@ -20,13 +19,13 @@ if !exists('g:syntastic_c_compiler')
let g:syntastic_c_compiler = executable('gcc') ? 'gcc' : 'clang' let g:syntastic_c_compiler = executable('gcc') ? 'gcc' : 'clang'
endif endif
let s:save_cpo = &cpo
set cpo&vim
function! SyntaxCheckers_c_gcc_IsAvailable() dict function! SyntaxCheckers_c_gcc_IsAvailable() dict
return executable(expand(g:syntastic_c_compiler)) return executable(expand(g:syntastic_c_compiler))
endfunction endfunction
let s:save_cpo = &cpo
set cpo&vim
if !exists('g:syntastic_c_compiler_options') if !exists('g:syntastic_c_compiler_options')
let g:syntastic_c_compiler_options = '-std=gnu99' let g:syntastic_c_compiler_options = '-std=gnu99'
endif endif

View File

@ -57,3 +57,5 @@ call g:SyntasticRegistry.CreateAndRegisterChecker({
let &cpo = s:save_cpo let &cpo = s:save_cpo
unlet s:save_cpo unlet s:save_cpo
" vim: set et sts=4 sw=4:

View File

@ -25,6 +25,9 @@ if !exists('g:syntastic_oclint_config_file')
let g:syntastic_oclint_config_file = '.syntastic_oclint_config' let g:syntastic_oclint_config_file = '.syntastic_oclint_config'
endif endif
let s:save_cpo = &cpo
set cpo&vim
function! SyntaxCheckers_c_oclint_GetLocList() dict function! SyntaxCheckers_c_oclint_GetLocList() dict
let makeprg = self.makeprgBuild({ let makeprg = self.makeprgBuild({
\ 'post_args': '-- -c ' . syntastic#c#ReadConfig(g:syntastic_oclint_config_file) }) \ 'post_args': '-- -c ' . syntastic#c#ReadConfig(g:syntastic_oclint_config_file) })
@ -48,3 +51,8 @@ endfunction
call g:SyntasticRegistry.CreateAndRegisterChecker({ call g:SyntasticRegistry.CreateAndRegisterChecker({
\ 'filetype': 'c', \ 'filetype': 'c',
\ 'name': 'oclint'}) \ 'name': 'oclint'})
let &cpo = s:save_cpo
unlet s:save_cpo
" vim: set et sts=4 sw=4:

View File

@ -25,6 +25,9 @@ if !exists('g:syntastic_sparse_config_file')
let g:syntastic_sparse_config_file = '.syntastic_sparse_config' let g:syntastic_sparse_config_file = '.syntastic_sparse_config'
endif endif
let s:save_cpo = &cpo
set cpo&vim
function! SyntaxCheckers_c_sparse_GetLocList() dict function! SyntaxCheckers_c_sparse_GetLocList() dict
let makeprg = self.makeprgBuild({ let makeprg = self.makeprgBuild({
\ 'args': '-ftabstop=' . &ts . ' ' . syntastic#c#ReadConfig(g:syntastic_sparse_config_file) }) \ 'args': '-ftabstop=' . &ts . ' ' . syntastic#c#ReadConfig(g:syntastic_sparse_config_file) })
@ -42,3 +45,8 @@ endfunction
call g:SyntasticRegistry.CreateAndRegisterChecker({ call g:SyntasticRegistry.CreateAndRegisterChecker({
\ 'filetype': 'c', \ 'filetype': 'c',
\ 'name': 'sparse'}) \ 'name': 'sparse'})
let &cpo = s:save_cpo
unlet s:save_cpo
" vim: set et sts=4 sw=4:

View File

@ -25,6 +25,9 @@ if !exists('g:syntastic_splint_config_file')
let g:syntastic_splint_config_file = '.syntastic_splint_config' let g:syntastic_splint_config_file = '.syntastic_splint_config'
endif endif
let s:save_cpo = &cpo
set cpo&vim
function! SyntaxCheckers_c_splint_GetLocList() dict function! SyntaxCheckers_c_splint_GetLocList() dict
let makeprg = self.makeprgBuild({ let makeprg = self.makeprgBuild({
\ 'post_args': '-showfunc -hints +quiet ' . syntastic#c#ReadConfig(g:syntastic_splint_config_file) }) \ 'post_args': '-showfunc -hints +quiet ' . syntastic#c#ReadConfig(g:syntastic_splint_config_file) })
@ -48,3 +51,8 @@ endfunction
call g:SyntasticRegistry.CreateAndRegisterChecker({ call g:SyntasticRegistry.CreateAndRegisterChecker({
\ 'filetype': 'c', \ 'filetype': 'c',
\ 'name': 'splint'}) \ 'name': 'splint'})
let &cpo = s:save_cpo
unlet s:save_cpo
" vim: set et sts=4 sw=4:

View File

@ -30,3 +30,5 @@ endfunction
call g:SyntasticRegistry.CreateAndRegisterChecker({ call g:SyntasticRegistry.CreateAndRegisterChecker({
\ 'filetype': 'c', \ 'filetype': 'c',
\ 'name': 'ycm'}) \ 'name': 'ycm'})
" vim: set et sts=4 sw=4:

View File

@ -15,15 +15,25 @@ if exists("g:loaded_syntastic_chef_foodcritic_checker")
endif 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 function! SyntaxCheckers_chef_foodcritic_GetLocList() dict
let makeprg = self.makeprgBuild({}) let makeprg = self.makeprgBuild({})
" FC023: Prefer conditional attributes: ./recipes/config.rb:49 " FC023: Prefer conditional attributes: ./recipes/config.rb:49
let errorformat = 'FC%n: %m: %f:%l' let errorformat = 'FC%n: %m: %f:%l'
return SyntasticMake({ 'makeprg': makeprg, 'errorformat': errorformat }) return SyntasticMake({
\ 'makeprg': makeprg,
\ 'errorformat': errorformat })
endfunction endfunction
call g:SyntasticRegistry.CreateAndRegisterChecker({ call g:SyntasticRegistry.CreateAndRegisterChecker({
\ 'filetype': 'chef', \ 'filetype': 'chef',
\ 'name': 'foodcritic'}) \ 'name': 'foodcritic'})
let &cpo = s:save_cpo
unlet s:save_cpo
" vim: set et sts=4 sw=4:

View File

@ -9,15 +9,14 @@
" See http://sam.zoy.org/wtfpl/COPYING for more details. " See http://sam.zoy.org/wtfpl/COPYING for more details.
" "
"============================================================================ "============================================================================
if exists("g:loaded_syntastic_co_coco_checker") if exists("g:loaded_syntastic_co_coco_checker")
finish finish
endif 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 let s:save_cpo = &cpo
if !executable("coco") set cpo&vim
finish
endif
function! SyntaxCheckers_co_coco_GetLocList() dict function! SyntaxCheckers_co_coco_GetLocList() dict
let makeprg = self.makeprgBuild({ 'args': '-c -o /tmp' }) let makeprg = self.makeprgBuild({ 'args': '-c -o /tmp' })
@ -28,9 +27,16 @@ function! SyntaxCheckers_co_coco_GetLocList() dict
\ '%EFailed at: %f,'. \ '%EFailed at: %f,'.
\ '%Z%trror: Parse error on line %l: %m' \ '%Z%trror: Parse error on line %l: %m'
return SyntasticMake({ 'makeprg': makeprg, 'errorformat': errorformat }) return SyntasticMake({
\ 'makeprg': makeprg,
\ 'errorformat': errorformat })
endfunction endfunction
call g:SyntasticRegistry.CreateAndRegisterChecker({ call g:SyntasticRegistry.CreateAndRegisterChecker({
\ 'filetype': 'co', \ 'filetype': 'co',
\ 'name': 'coco'}) \ 'name': 'coco'})
let &cpo = s:save_cpo
unlet s:save_cpo
" vim: set et sts=4 sw=4:

View File

@ -20,13 +20,13 @@ if !exists('g:syntastic_cobol_compiler')
let g:syntastic_cobol_compiler = 'cobc' let g:syntastic_cobol_compiler = 'cobc'
endif endif
let s:save_cpo = &cpo
set cpo&vim
function! SyntaxCheckers_cobol_cobc_IsAvailable() dict function! SyntaxCheckers_cobol_cobc_IsAvailable() dict
return executable(expand(g:syntastic_cobol_compiler)) return executable(expand(g:syntastic_cobol_compiler))
endfunction endfunction
let s:save_cpo = &cpo
set cpo&vim
if !exists('g:syntastic_cobol_compiler_options') if !exists('g:syntastic_cobol_compiler_options')
let g:syntastic_cobol_compiler_options = '' let g:syntastic_cobol_compiler_options = ''
endif endif

View File

@ -12,11 +12,15 @@
" "
" Note: this script requires CoffeeScript version 1.6.2 or newer. " Note: this script requires CoffeeScript version 1.6.2 or newer.
" "
if exists("g:loaded_syntastic_coffee_coffee_checker") if exists("g:loaded_syntastic_coffee_coffee_checker")
finish finish
endif 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 function! SyntaxCheckers_coffee_coffee_IsAvailable() dict
let exe = self.getExec() let exe = self.getExec()
return executable(exe) && return executable(exe) &&
@ -37,9 +41,16 @@ function! SyntaxCheckers_coffee_coffee_GetLocList() dict
\ '%-Z%p^,' . \ '%-Z%p^,' .
\ '%-G%.%#' \ '%-G%.%#'
return SyntasticMake({ 'makeprg': makeprg, 'errorformat': errorformat }) return SyntasticMake({
\ 'makeprg': makeprg,
\ 'errorformat': errorformat })
endfunction endfunction
call g:SyntasticRegistry.CreateAndRegisterChecker({ call g:SyntasticRegistry.CreateAndRegisterChecker({
\ 'filetype': 'coffee', \ 'filetype': 'coffee',
\ 'name': 'coffee'}) \ 'name': 'coffee'})
let &cpo = s:save_cpo
unlet s:save_cpo
" vim: set et sts=4 sw=4:

View File

@ -9,11 +9,15 @@
" See http://sam.zoy.org/wtfpl/COPYING for more details. " See http://sam.zoy.org/wtfpl/COPYING for more details.
" "
"============================================================================ "============================================================================
if exists("g:loaded_syntastic_coffee_coffeelint_checker") if exists("g:loaded_syntastic_coffee_coffeelint_checker")
finish finish
endif 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 function! SyntaxCheckers_coffee_coffeelint_GetLocList() dict
let makeprg = self.makeprgBuild({ 'args': '--csv' }) let makeprg = self.makeprgBuild({ 'args': '--csv' })
@ -33,3 +37,8 @@ endfunction
call g:SyntasticRegistry.CreateAndRegisterChecker({ call g:SyntasticRegistry.CreateAndRegisterChecker({
\ 'filetype': 'coffee', \ 'filetype': 'coffee',
\ 'name': 'coffeelint'}) \ 'name': 'coffeelint'})
let &cpo = s:save_cpo
unlet s:save_cpo
" vim: set et sts=4 sw=4:

View File

@ -15,6 +15,9 @@ if exists("g:loaded_syntastic_coq_coqtop_checker")
endif 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 function! SyntaxCheckers_coq_coqtop_GetLocList() dict
let makeprg = self.makeprgBuild({ 'args': '-noglob -batch -load-vernac-source' }) let makeprg = self.makeprgBuild({ 'args': '-noglob -batch -load-vernac-source' })
@ -30,3 +33,8 @@ endfunction
call g:SyntasticRegistry.CreateAndRegisterChecker({ call g:SyntasticRegistry.CreateAndRegisterChecker({
\ 'filetype': 'coq', \ 'filetype': 'coq',
\ 'name': 'coqtop'}) \ 'name': 'coqtop'})
let &cpo = s:save_cpo
unlet s:save_cpo
" vim: set et sts=4 sw=4:

View File

@ -25,6 +25,9 @@ if !exists('g:syntastic_cppcheck_config_file')
let g:syntastic_cppcheck_config_file = '.syntastic_cppcheck_config' let g:syntastic_cppcheck_config_file = '.syntastic_cppcheck_config'
endif endif
let s:save_cpo = &cpo
set cpo&vim
function! SyntaxCheckers_cpp_cppcheck_GetLocList() dict function! SyntaxCheckers_cpp_cppcheck_GetLocList() dict
let makeprg = self.makeprgBuild({ let makeprg = self.makeprgBuild({
\ 'args': '-q ' . syntastic#c#ReadConfig(g:syntastic_cppcheck_config_file), \ 'args': '-q ' . syntastic#c#ReadConfig(g:syntastic_cppcheck_config_file),
@ -58,3 +61,8 @@ endfunction
call g:SyntasticRegistry.CreateAndRegisterChecker({ call g:SyntasticRegistry.CreateAndRegisterChecker({
\ 'filetype': 'cpp', \ 'filetype': 'cpp',
\ 'name': 'cppcheck'}) \ 'name': 'cppcheck'})
let &cpo = s:save_cpo
unlet s:save_cpo
" vim: set et sts=4 sw=4:

View File

@ -31,6 +31,9 @@ if !exists('g:syntastic_cpp_cpplint_thres')
let g:syntastic_cpp_cpplint_thres = 5 let g:syntastic_cpp_cpplint_thres = 5
endif endif
let s:save_cpo = &cpo
set cpo&vim
function! SyntaxCheckers_cpp_cpplint_GetLocList() dict function! SyntaxCheckers_cpp_cpplint_GetLocList() dict
let makeprg = self.makeprgBuild({ 'args': '--verbose=3' }) let makeprg = self.makeprgBuild({ 'args': '--verbose=3' })
@ -53,3 +56,8 @@ call g:SyntasticRegistry.CreateAndRegisterChecker({
\ 'filetype': 'cpp', \ 'filetype': 'cpp',
\ 'name': 'cpplint', \ 'name': 'cpplint',
\ 'exec': 'cpplint.py'}) \ 'exec': 'cpplint.py'})
let &cpo = s:save_cpo
unlet s:save_cpo
" vim: set et sts=4 sw=4:

View File

@ -19,13 +19,13 @@ if !exists('g:syntastic_cpp_compiler')
let g:syntastic_cpp_compiler = executable('g++') ? 'g++' : 'clang++' let g:syntastic_cpp_compiler = executable('g++') ? 'g++' : 'clang++'
endif endif
let s:save_cpo = &cpo
set cpo&vim
function! SyntaxCheckers_cpp_gcc_IsAvailable() dict function! SyntaxCheckers_cpp_gcc_IsAvailable() dict
return executable(expand(g:syntastic_cpp_compiler)) return executable(expand(g:syntastic_cpp_compiler))
endfunction endfunction
let s:save_cpo = &cpo
set cpo&vim
if !exists('g:syntastic_cpp_compiler_options') if !exists('g:syntastic_cpp_compiler_options')
let g:syntastic_cpp_compiler_options = '' let g:syntastic_cpp_compiler_options = ''
endif endif

View File

@ -27,3 +27,5 @@ call g:SyntasticRegistry.CreateAndRegisterChecker({
\ 'filetype': 'cpp', \ 'filetype': 'cpp',
\ 'name': 'oclint', \ 'name': 'oclint',
\ 'redirect': 'c/oclint'}) \ 'redirect': 'c/oclint'})
" vim: set et sts=4 sw=4:

View File

@ -25,3 +25,5 @@ call g:SyntasticRegistry.CreateAndRegisterChecker({
\ 'filetype': 'cpp', \ 'filetype': 'cpp',
\ 'name': 'ycm', \ 'name': 'ycm',
\ 'redirect': 'c/ycm'}) \ 'redirect': 'c/ycm'})
" vim: set et sts=4 sw=4:

View File

@ -15,6 +15,9 @@ if exists("g:loaded_syntastic_cs_mcs_checker")
endif 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 function! SyntaxCheckers_cs_mcs_GetLocList() dict
let makeprg = self.makeprgBuild({ 'args': '--parse' }) let makeprg = self.makeprgBuild({ 'args': '--parse' })
@ -29,3 +32,8 @@ endfunction
call g:SyntasticRegistry.CreateAndRegisterChecker({ call g:SyntasticRegistry.CreateAndRegisterChecker({
\ 'filetype': 'cs', \ 'filetype': 'cs',
\ 'name': 'mcs'}) \ 'name': 'mcs'})
let &cpo = s:save_cpo
unlet s:save_cpo
" vim: set et sts=4 sw=4:

View File

@ -23,6 +23,9 @@ if !exists('g:syntastic_csslint_options')
let g:syntastic_csslint_options = '' let g:syntastic_csslint_options = ''
endif endif
let s:save_cpo = &cpo
set cpo&vim
function! SyntaxCheckers_css_csslint_GetLocList() dict function! SyntaxCheckers_css_csslint_GetLocList() dict
let makeprg = self.makeprgBuild({ 'args': '--format=compact ' . g:syntastic_csslint_options }) let makeprg = self.makeprgBuild({ 'args': '--format=compact ' . g:syntastic_csslint_options })
@ -44,3 +47,8 @@ endfunction
call g:SyntasticRegistry.CreateAndRegisterChecker({ call g:SyntasticRegistry.CreateAndRegisterChecker({
\ 'filetype': 'css', \ 'filetype': 'css',
\ 'name': 'csslint'}) \ 'name': 'csslint'})
let &cpo = s:save_cpo
unlet s:save_cpo
" vim: set et sts=4 sw=4:

View File

@ -13,6 +13,7 @@
" See here for details of phpcs " See here for details of phpcs
" - phpcs (see http://pear.php.net/package/PHP_CodeSniffer) " - phpcs (see http://pear.php.net/package/PHP_CodeSniffer)
" "
if exists("g:loaded_syntastic_css_phpcs_checker") if exists("g:loaded_syntastic_css_phpcs_checker")
finish finish
endif endif
@ -24,3 +25,5 @@ call g:SyntasticRegistry.CreateAndRegisterChecker({
\ 'filetype': 'css', \ 'filetype': 'css',
\ 'name': 'phpcs', \ 'name': 'phpcs',
\ 'redirect': 'php/phpcs'}) \ 'redirect': 'php/phpcs'})
" vim: set et sts=4 sw=4:

View File

@ -20,6 +20,9 @@ if exists("g:loaded_syntastic_css_prettycss_checker")
endif 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) function! SyntaxCheckers_css_prettycss_GetHighlightRegex(item)
let term = matchstr(a:item["text"], '\m (\zs[^)]\+\ze)$') let term = matchstr(a:item["text"], '\m (\zs[^)]\+\ze)$')
if term != '' if term != ''
@ -53,3 +56,8 @@ endfunction
call g:SyntasticRegistry.CreateAndRegisterChecker({ call g:SyntasticRegistry.CreateAndRegisterChecker({
\ 'filetype': 'css', \ 'filetype': 'css',
\ 'name': 'prettycss'}) \ 'name': 'prettycss'})
let &cpo = s:save_cpo
unlet s:save_cpo
" vim: set et sts=4 sw=4:

View File

@ -15,6 +15,9 @@ if exists("g:loaded_syntastic_cucumber_cucumber_checker")
endif 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 function! SyntaxCheckers_cucumber_cucumber_GetLocList() dict
let makeprg = self.makeprgBuild({ 'args': '--dry-run --quiet --strict --format pretty' }) let makeprg = self.makeprgBuild({ 'args': '--dry-run --quiet --strict --format pretty' })
@ -32,3 +35,8 @@ endfunction
call g:SyntasticRegistry.CreateAndRegisterChecker({ call g:SyntasticRegistry.CreateAndRegisterChecker({
\ 'filetype': 'cucumber', \ 'filetype': 'cucumber',
\ 'name': 'cucumber'}) \ 'name': 'cucumber'})
let &cpo = s:save_cpo
unlet s:save_cpo
" vim: set et sts=4 sw=4:

View File

@ -18,12 +18,14 @@
" "
" let g:syntastic_cuda_arch = "sm_20" " let g:syntastic_cuda_arch = "sm_20"
if exists("g:loaded_syntastic_cuda_nvcc_checker") if exists("g:loaded_syntastic_cuda_nvcc_checker")
finish finish
endif 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 function! SyntaxCheckers_cuda_nvcc_GetLocList() dict
if exists('g:syntastic_cuda_arch') if exists('g:syntastic_cuda_arch')
let arch_flag = '-arch=' . g:syntastic_cuda_arch let arch_flag = '-arch=' . g:syntastic_cuda_arch
@ -68,3 +70,8 @@ endfunction
call g:SyntasticRegistry.CreateAndRegisterChecker({ call g:SyntasticRegistry.CreateAndRegisterChecker({
\ 'filetype': 'cuda', \ 'filetype': 'cuda',
\ 'name': 'nvcc'}) \ 'name': 'nvcc'})
let &cpo = s:save_cpo
unlet s:save_cpo
" vim: set et sts=4 sw=4:

View File

@ -24,13 +24,13 @@ if !exists('g:syntastic_d_compiler')
let g:syntastic_d_compiler = 'dmd' let g:syntastic_d_compiler = 'dmd'
endif endif
let s:save_cpo = &cpo
set cpo&vim
function! SyntaxCheckers_d_dmd_IsAvailable() dict function! SyntaxCheckers_d_dmd_IsAvailable() dict
return executable(expand(g:syntastic_d_compiler)) return executable(expand(g:syntastic_d_compiler))
endfunction endfunction
let s:save_cpo = &cpo
set cpo&vim
if !exists('g:syntastic_d_compiler_options') if !exists('g:syntastic_d_compiler_options')
let g:syntastic_d_compiler_options = '' let g:syntastic_d_compiler_options = ''
endif endif

View File

@ -8,11 +8,15 @@
" Want To Public License, Version 2, as published by Sam Hocevar. " Want To Public License, Version 2, as published by Sam Hocevar.
" See http://sam.zoy.org/wtfpl/COPYING for more details. " See http://sam.zoy.org/wtfpl/COPYING for more details.
"============================================================================ "============================================================================
if exists("g:loaded_syntastic_dart_dartanalyzer_checker") if exists("g:loaded_syntastic_dart_dartanalyzer_checker")
finish finish
endif endif
let g:loaded_syntastic_dart_dartanalyzer_checker = 1 let g:loaded_syntastic_dart_dartanalyzer_checker = 1
let s:save_cpo = &cpo
set cpo&vim
function! SyntaxCheckers_dart_dartanalyzer_GetHighlightRegex(error) function! SyntaxCheckers_dart_dartanalyzer_GetHighlightRegex(error)
if a:error['len'] if a:error['len']
let lcol = a:error['col'] - 1 let lcol = a:error['col'] - 1
@ -65,3 +69,8 @@ endfunction
call g:SyntasticRegistry.CreateAndRegisterChecker({ call g:SyntasticRegistry.CreateAndRegisterChecker({
\ 'filetype': 'dart', \ 'filetype': 'dart',
\ 'name': 'dartanalyzer' }) \ 'name': 'dartanalyzer' })
let &cpo = s:save_cpo
unlet s:save_cpo
" vim: set et sts=4 sw=4:

View File

@ -21,3 +21,5 @@ call g:SyntasticRegistry.CreateAndRegisterChecker({
\ 'filetype': 'docbk', \ 'filetype': 'docbk',
\ 'name': 'xmllint', \ 'name': 'xmllint',
\ 'redirect': 'xml/xmllint'}) \ 'redirect': 'xml/xmllint'})
" vim: set et sts=4 sw=4:

View File

@ -15,9 +15,8 @@ endif
let g:loaded_syntastic_dustjs_swiffer_checker = 1 let g:loaded_syntastic_dustjs_swiffer_checker = 1
function! SyntaxCheckers_dustjs_swiffer_IsAvailable() dict let s:save_cpo = &cpo
return executable('swiffer') set cpo&vim
endfunction
function! SyntaxCheckers_dustjs_swiffer_GetLocList() dict function! SyntaxCheckers_dustjs_swiffer_GetLocList() dict
let makeprg = self.makeprgBuild({}) let makeprg = self.makeprgBuild({})
@ -32,3 +31,8 @@ function! SyntaxCheckers_dustjs_swiffer_GetLocList() dict
call SyntasticRegistry.CreateAndRegisterChecker({ call SyntasticRegistry.CreateAndRegisterChecker({
\ 'filetype': 'dustjs', \ 'filetype': 'dustjs',
\ 'name': 'swiffer'}) \ 'name': 'swiffer'})
let &cpo = s:save_cpo
unlet s:save_cpo
" vim: set et sts=4 sw=4:

View File

@ -9,11 +9,15 @@
" See http://sam.zoy.org/wtfpl/COPYING for more details. " See http://sam.zoy.org/wtfpl/COPYING for more details.
" "
"============================================================================ "============================================================================
if exists("g:loaded_syntastic_elixir_elixir_checker") if exists("g:loaded_syntastic_elixir_elixir_checker")
finish finish
endif 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 " TODO: we should probably split this into separate checkers
function! SyntaxCheckers_elixir_elixir_IsAvailable() dict function! SyntaxCheckers_elixir_elixir_IsAvailable() dict
return executable('elixir') && executable('mix') return executable('elixir') && executable('mix')
@ -40,3 +44,8 @@ endfunction
call g:SyntasticRegistry.CreateAndRegisterChecker({ call g:SyntasticRegistry.CreateAndRegisterChecker({
\ 'filetype': 'elixir', \ 'filetype': 'elixir',
\ 'name': 'elixir'}) \ 'name': 'elixir'})
let &cpo = s:save_cpo
unlet s:save_cpo
" vim: set et sts=4 sw=4:

View File

@ -21,6 +21,9 @@ endif
let s:check_file = expand('<sfile>:p:h') . '/erlang_check_file.erl' let s:check_file = expand('<sfile>:p:h') . '/erlang_check_file.erl'
let s:save_cpo = &cpo
set cpo&vim
function! SyntaxCheckers_erlang_escript_GetLocList() dict function! SyntaxCheckers_erlang_escript_GetLocList() dict
if expand('%:e') ==# 'hrl' if expand('%:e') ==# 'hrl'
return [] return []
@ -51,3 +54,8 @@ endfunction
call g:SyntasticRegistry.CreateAndRegisterChecker({ call g:SyntasticRegistry.CreateAndRegisterChecker({
\ 'filetype': 'erlang', \ 'filetype': 'erlang',
\ 'name': 'escript'}) \ 'name': 'escript'})
let &cpo = s:save_cpo
unlet s:save_cpo
" vim: set et sts=4 sw=4:

View File

@ -19,6 +19,9 @@ if !exists("g:syntastic_ruby_exec")
let g:syntastic_ruby_exec = "ruby" let g:syntastic_ruby_exec = "ruby"
endif endif
let s:save_cpo = &cpo
set cpo&vim
function! SyntaxCheckers_eruby_ruby_IsAvailable() dict function! SyntaxCheckers_eruby_ruby_IsAvailable() dict
return executable(expand(g:syntastic_ruby_exec)) return executable(expand(g:syntastic_ruby_exec))
endfunction endfunction
@ -63,3 +66,8 @@ endfunction
call g:SyntasticRegistry.CreateAndRegisterChecker({ call g:SyntasticRegistry.CreateAndRegisterChecker({
\ 'filetype': 'eruby', \ 'filetype': 'eruby',
\ 'name': 'ruby'}) \ 'name': 'ruby'})
let &cpo = s:save_cpo
unlet s:save_cpo
" vim: set et sts=4 sw=4:

View File

@ -19,13 +19,13 @@ if !exists('g:syntastic_fortran_compiler')
let g:syntastic_fortran_compiler = 'gfortran' let g:syntastic_fortran_compiler = 'gfortran'
endif endif
let s:save_cpo = &cpo
set cpo&vim
function! SyntaxCheckers_fortran_gfortran_IsAvailable() dict function! SyntaxCheckers_fortran_gfortran_IsAvailable() dict
return executable(expand(g:syntastic_fortran_compiler)) return executable(expand(g:syntastic_fortran_compiler))
endfunction endfunction
let s:save_cpo = &cpo
set cpo&vim
if !exists('g:syntastic_fortran_compiler_options') if !exists('g:syntastic_fortran_compiler_options')
let g:syntastic_fortran_compiler_options = '' let g:syntastic_fortran_compiler_options = ''
endif endif

View File

@ -13,7 +13,6 @@
if exists("g:loaded_syntastic_glsl_cgc_checker") if exists("g:loaded_syntastic_glsl_cgc_checker")
finish finish
endif endif
let g:loaded_syntastic_glsl_cgc_checker = 1 let g:loaded_syntastic_glsl_cgc_checker = 1
let s:glsl_extensions = { let s:glsl_extensions = {

View File

@ -12,11 +12,15 @@
" Use a BufWritePre autocommand to that end: " Use a BufWritePre autocommand to that end:
" autocmd FileType go autocmd BufWritePre <buffer> Fmt " autocmd FileType go autocmd BufWritePre <buffer> Fmt
"============================================================================ "============================================================================
if exists("g:loaded_syntastic_go_go_checker") if exists("g:loaded_syntastic_go_go_checker")
finish finish
endif 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 function! SyntaxCheckers_go_go_IsAvailable() dict
return executable('go') && executable('gofmt') return executable('go') && executable('gofmt')
endfunction endfunction
@ -72,3 +76,8 @@ endfunction
call g:SyntasticRegistry.CreateAndRegisterChecker({ call g:SyntasticRegistry.CreateAndRegisterChecker({
\ 'filetype': 'go', \ 'filetype': 'go',
\ 'name': 'go'}) \ 'name': 'go'})
let &cpo = s:save_cpo
unlet s:save_cpo
" vim: set et sts=4 sw=4:

View File

@ -12,11 +12,15 @@
" Use a BufWritePre autocommand to that end: " Use a BufWritePre autocommand to that end:
" autocmd FileType go autocmd BufWritePre <buffer> Fmt " autocmd FileType go autocmd BufWritePre <buffer> Fmt
"============================================================================ "============================================================================
if exists("g:loaded_syntastic_go_gofmt_checker") if exists("g:loaded_syntastic_go_gofmt_checker")
finish finish
endif 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 function! SyntaxCheckers_go_gofmt_GetLocList() dict
let makeprg = self.makeprgBuild({ let makeprg = self.makeprgBuild({
\ 'args': '-l', \ 'args': '-l',
@ -33,3 +37,8 @@ endfunction
call g:SyntasticRegistry.CreateAndRegisterChecker({ call g:SyntasticRegistry.CreateAndRegisterChecker({
\ 'filetype': 'go', \ 'filetype': 'go',
\ 'name': 'gofmt'}) \ 'name': 'gofmt'})
let &cpo = s:save_cpo
unlet s:save_cpo
" vim: set et sts=4 sw=4:

View File

@ -9,11 +9,15 @@
" See http://sam.zoy.org/wtfpl/COPYING for more details. " See http://sam.zoy.org/wtfpl/COPYING for more details.
" "
"============================================================================ "============================================================================
if exists("g:loaded_syntastic_go_golint_checker") if exists("g:loaded_syntastic_go_golint_checker")
finish finish
endif 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 function! SyntaxCheckers_go_golint_GetLocList() dict
let makeprg = self.makeprgBuild({}) let makeprg = self.makeprgBuild({})
@ -28,3 +32,8 @@ endfunction
call g:SyntasticRegistry.CreateAndRegisterChecker({ call g:SyntasticRegistry.CreateAndRegisterChecker({
\ 'filetype': 'go', \ 'filetype': 'go',
\ 'name': 'golint'}) \ 'name': 'golint'})
let &cpo = s:save_cpo
unlet s:save_cpo
" vim: set et sts=4 sw=4:

View File

@ -9,6 +9,7 @@
" See http://sam.zoy.org/wtfpl/COPYING for more details. " See http://sam.zoy.org/wtfpl/COPYING for more details.
" "
"============================================================================ "============================================================================
if exists("g:loaded_syntastic_go_gotype_checker") if exists("g:loaded_syntastic_go_gotype_checker")
finish finish
endif endif

View File

@ -9,11 +9,15 @@
" See http://sam.zoy.org/wtfpl/COPYING for more details. " See http://sam.zoy.org/wtfpl/COPYING for more details.
" "
"============================================================================ "============================================================================
if exists("g:loaded_syntastic_go_govet_checker") if exists("g:loaded_syntastic_go_govet_checker")
finish finish
endif 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 function! SyntaxCheckers_go_govet_IsAvailable() dict
return executable('go') return executable('go')
endfunction endfunction
@ -38,3 +42,8 @@ endfunction
call g:SyntasticRegistry.CreateAndRegisterChecker({ call g:SyntasticRegistry.CreateAndRegisterChecker({
\ 'filetype': 'go', \ 'filetype': 'go',
\ 'name': 'govet'}) \ 'name': 'govet'})
let &cpo = s:save_cpo
unlet s:save_cpo
" vim: set et sts=4 sw=4:

View File

@ -19,6 +19,9 @@ if !exists('g:syntastic_haml_interpreter')
let g:syntastic_haml_interpreter = 'haml' let g:syntastic_haml_interpreter = 'haml'
endif endif
let s:save_cpo = &cpo
set cpo&vim
function! SyntaxCheckers_haml_haml_IsAvailable() dict function! SyntaxCheckers_haml_haml_IsAvailable() dict
return executable(expand(g:syntastic_haml_interpreter)) return executable(expand(g:syntastic_haml_interpreter))
endfunction endfunction
@ -41,3 +44,8 @@ endfunction
call g:SyntasticRegistry.CreateAndRegisterChecker({ call g:SyntasticRegistry.CreateAndRegisterChecker({
\ 'filetype': 'haml', \ 'filetype': 'haml',
\ 'name': 'haml'}) \ 'name': 'haml'})
let &cpo = s:save_cpo
unlet s:save_cpo
" vim: set et sts=4 sw=4:

View File

@ -8,11 +8,15 @@
" Want To Public License, Version 2, as published by Sam Hocevar. " Want To Public License, Version 2, as published by Sam Hocevar.
" See http://sam.zoy.org/wtfpl/COPYING for more details. " See http://sam.zoy.org/wtfpl/COPYING for more details.
"============================================================================ "============================================================================
if exists("g:loaded_syntastic_handlebars_handlebars_checker") if exists("g:loaded_syntastic_handlebars_handlebars_checker")
finish finish
endif 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 function! SyntaxCheckers_handlebars_handlebars_GetLocList() dict
let makeprg = self.makeprgBuild({ 'args': '-f ' . syntastic#util#DevNull() }) let makeprg = self.makeprgBuild({ 'args': '-f ' . syntastic#util#DevNull() })
@ -31,3 +35,8 @@ endfunction
call g:SyntasticRegistry.CreateAndRegisterChecker({ call g:SyntasticRegistry.CreateAndRegisterChecker({
\ 'filetype': 'handlebars', \ 'filetype': 'handlebars',
\ 'name': 'handlebars'}) \ 'name': 'handlebars'})
let &cpo = s:save_cpo
unlet s:save_cpo
" vim: set et sts=4 sw=4:

View File

@ -17,6 +17,9 @@ let g:loaded_syntastic_haskell_ghc_mod_checker = 1
let s:ghc_mod_new = -1 let s:ghc_mod_new = -1
let s:save_cpo = &cpo
set cpo&vim
function! SyntaxCheckers_haskell_ghc_mod_IsAvailable() dict function! SyntaxCheckers_haskell_ghc_mod_IsAvailable() dict
" We need either a Vim version that can handle NULs in system() output, " We need either a Vim version that can handle NULs in system() output,
" or a ghc-mod version that has the --boundary option. " or a ghc-mod version that has the --boundary option.
@ -60,3 +63,8 @@ call g:SyntasticRegistry.CreateAndRegisterChecker({
\ 'filetype': 'haskell', \ 'filetype': 'haskell',
\ 'name': 'ghc_mod', \ '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:

View File

@ -15,6 +15,9 @@ if exists("g:loaded_syntastic_haskell_hdevtools_checker")
endif 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 function! SyntaxCheckers_haskell_hdevtools_GetLocList() dict
let makeprg = self.makeprgBuild({ let makeprg = self.makeprgBuild({
\ 'exe': self.getExec() . ' check', \ 'exe': self.getExec() . ' check',
@ -39,3 +42,7 @@ call g:SyntasticRegistry.CreateAndRegisterChecker({
\ 'filetype': 'haskell', \ 'filetype': 'haskell',
\ 'name': 'hdevtools'}) \ 'name': 'hdevtools'})
let &cpo = s:save_cpo
unlet s:save_cpo
" vim: set et sts=4 sw=4:

View File

@ -10,6 +10,9 @@ if exists('g:loaded_syntastic_haskell_hlint_checker')
endif endif
let g:loaded_syntastic_haskell_hlint_checker = 1 let g:loaded_syntastic_haskell_hlint_checker = 1
let s:save_cpo = &cpo
set cpo&vim
function! SyntaxCheckers_haskell_hlint_GetLocList() dict function! SyntaxCheckers_haskell_hlint_GetLocList() dict
let makeprg = self.makeprgBuild({}) let makeprg = self.makeprgBuild({})
@ -27,3 +30,8 @@ endfunction
call g:SyntasticRegistry.CreateAndRegisterChecker({ call g:SyntasticRegistry.CreateAndRegisterChecker({
\ 'filetype': 'haskell', \ 'filetype': 'haskell',
\ 'name': 'hlint'}) \ 'name': 'hlint'})
let &cpo = s:save_cpo
unlet s:save_cpo
" vim: set et sts=4 sw=4:

View File

@ -15,6 +15,9 @@ if exists("g:loaded_syntastic_haxe_haxe_checker")
endif 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 function! SyntaxCheckers_haxe_haxe_GetLocList() dict
if exists('b:vaxe_hxml') if exists('b:vaxe_hxml')
let hxml = b:vaxe_hxml let hxml = b:vaxe_hxml
@ -43,3 +46,8 @@ endfunction
call g:SyntasticRegistry.CreateAndRegisterChecker({ call g:SyntasticRegistry.CreateAndRegisterChecker({
\ 'filetype': 'haxe', \ 'filetype': 'haxe',
\ 'name': 'haxe'}) \ 'name': 'haxe'})
let &cpo = s:save_cpo
unlet s:save_cpo
" vim: set et sts=4 sw=4:

View File

@ -15,6 +15,9 @@ if exists("g:loaded_syntastic_hss_hss_checker")
endif 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 function! SyntaxCheckers_hss_hss_GetLocList() dict
let makeprg = self.makeprgBuild({ 'args' : '-output ' . syntastic#util#DevNull() }) let makeprg = self.makeprgBuild({ 'args' : '-output ' . syntastic#util#DevNull() })
@ -28,3 +31,8 @@ endfunction
call g:SyntasticRegistry.CreateAndRegisterChecker({ call g:SyntasticRegistry.CreateAndRegisterChecker({
\ 'filetype': 'hss', \ 'filetype': 'hss',
\ 'name': 'hss'}) \ 'name': 'hss'})
let &cpo = s:save_cpo
unlet s:save_cpo
" vim: set et sts=4 sw=4:

View File

@ -42,6 +42,9 @@ if !exists('g:syntastic_html_tidy_empty_tags')
let g:syntastic_html_tidy_empty_tags = [] let g:syntastic_html_tidy_empty_tags = []
endif endif
let s:save_cpo = &cpo
set cpo&vim
" TODO: join this with xhtml.vim for DRY's sake? " TODO: join this with xhtml.vim for DRY's sake?
function! s:TidyEncOptByFenc() function! s:TidyEncOptByFenc()
let tidy_opts = { let tidy_opts = {
@ -200,3 +203,7 @@ call g:SyntasticRegistry.CreateAndRegisterChecker({
\ 'filetype': 'html', \ 'filetype': 'html',
\ 'name': 'tidy'}) \ 'name': 'tidy'})
let &cpo = s:save_cpo
unlet s:save_cpo
" vim: set et sts=4 sw=4:

View File

@ -45,6 +45,9 @@ if !exists('g:syntastic_html_validator_nsfilter')
let g:syntastic_html_validator_nsfilter = '' let g:syntastic_html_validator_nsfilter = ''
endif endif
let s:save_cpo = &cpo
set cpo&vim
function! SyntaxCheckers_html_validator_Preprocess(errors) function! SyntaxCheckers_html_validator_Preprocess(errors)
let out = [] let out = []
for e in a:errors for e in a:errors
@ -92,3 +95,8 @@ call g:SyntasticRegistry.CreateAndRegisterChecker({
\ 'filetype': 'html', \ 'filetype': 'html',
\ 'name': 'validator', \ 'name': 'validator',
\ 'exec': 'curl' }) \ 'exec': 'curl' })
let &cpo = s:save_cpo
unlet s:save_cpo
" vim: set et sts=4 sw=4:

View File

@ -26,6 +26,9 @@ if !exists('g:syntastic_html_w3_api')
let g:syntastic_html_w3_api = 'http://validator.w3.org/check' let g:syntastic_html_w3_api = 'http://validator.w3.org/check'
endif endif
let s:save_cpo = &cpo
set cpo&vim
function! SyntaxCheckers_html_w3_GetLocList() dict function! SyntaxCheckers_html_w3_GetLocList() dict
let makeprg = self.getExec() . ' -s -F output=json ' . let makeprg = self.getExec() . ' -s -F output=json ' .
\ '-F uploaded_file=@' . syntastic#util#shexpand('%:p') . '\;type=text/html ' . \ '-F uploaded_file=@' . syntastic#util#shexpand('%:p') . '\;type=text/html ' .
@ -60,3 +63,7 @@ call g:SyntasticRegistry.CreateAndRegisterChecker({
\ 'name': 'w3', \ 'name': 'w3',
\ 'exec': 'curl' }) \ 'exec': 'curl' })
let &cpo = s:save_cpo
unlet s:save_cpo
" vim: set et sts=4 sw=4:

View File

@ -10,6 +10,7 @@
" "
" Tested with checkstyle 5.5 " Tested with checkstyle 5.5
"============================================================================ "============================================================================
if exists("g:loaded_syntastic_java_checkstyle_checker") if exists("g:loaded_syntastic_java_checkstyle_checker")
finish finish
endif endif
@ -23,6 +24,9 @@ if !exists("g:syntastic_java_checkstyle_conf_file")
let g:syntastic_java_checkstyle_conf_file = 'sun_checks.xml' let g:syntastic_java_checkstyle_conf_file = 'sun_checks.xml'
endif endif
let s:save_cpo = &cpo
set cpo&vim
function! SyntaxCheckers_java_checkstyle_Preprocess(errors) function! SyntaxCheckers_java_checkstyle_Preprocess(errors)
let out = copy(a:errors) let out = copy(a:errors)
for n in range(len(out)) for n in range(len(out))
@ -71,3 +75,8 @@ call g:SyntasticRegistry.CreateAndRegisterChecker({
\ 'filetype': 'java', \ 'filetype': 'java',
\ 'name': 'checkstyle', \ 'name': 'checkstyle',
\ 'exec': 'java'}) \ 'exec': 'java'})
let &cpo = s:save_cpo
unlet s:save_cpo
" vim: set et sts=4 sw=4:

View File

@ -40,6 +40,9 @@ if !exists("g:syntastic_java_javac_delete_output")
let g:syntastic_java_javac_delete_output = 1 let g:syntastic_java_javac_delete_output = 1
endif endif
let s:save_cpo = &cpo
set cpo&vim
function! s:CygwinPath(path) function! s:CygwinPath(path)
return substitute(system("cygpath -m " . a:path), '\n', '', 'g') return substitute(system("cygpath -m " . a:path), '\n', '', 'g')
endfunction endfunction
@ -363,3 +366,7 @@ call g:SyntasticRegistry.CreateAndRegisterChecker({
\ 'filetype': 'java', \ 'filetype': 'java',
\ 'name': 'javac'}) \ 'name': 'javac'})
let &cpo = s:save_cpo
unlet s:save_cpo
" vim: set et sts=4 sw=4:

View File

@ -30,8 +30,14 @@ if !exists("g:syntastic_javascript_closure_compiler_options")
let g:syntastic_javascript_closure_compiler_options = "" let g:syntastic_javascript_closure_compiler_options = ""
endif endif
let s:save_cpo = &cpo
set cpo&vim
function! SyntaxCheckers_javascript_closurecompiler_IsAvailable() dict 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 endfunction
function! SyntaxCheckers_javascript_closurecompiler_GetLocList() dict function! SyntaxCheckers_javascript_closurecompiler_GetLocList() dict
@ -63,3 +69,7 @@ call g:SyntasticRegistry.CreateAndRegisterChecker({
\ 'name': 'closurecompiler', \ 'name': 'closurecompiler',
\ 'exec': 'java'}) \ 'exec': 'java'})
let &cpo = s:save_cpo
unlet s:save_cpo
" vim: set et sts=4 sw=4:

View File

@ -18,6 +18,9 @@ if !exists('g:syntastic_javascript_eslint_conf')
let g:syntastic_javascript_eslint_conf = '' let g:syntastic_javascript_eslint_conf = ''
endif endif
let s:save_cpo = &cpo
set cpo&vim
function! SyntaxCheckers_javascript_eslint_GetLocList() dict function! SyntaxCheckers_javascript_eslint_GetLocList() dict
let makeprg = self.makeprgBuild({ let makeprg = self.makeprgBuild({
\ 'args': !empty(g:syntastic_javascript_eslint_conf) ? ' --config ' . g:syntastic_javascript_eslint_conf : '' }) \ 'args': !empty(g:syntastic_javascript_eslint_conf) ? ' --config ' . g:syntastic_javascript_eslint_conf : '' })
@ -41,3 +44,7 @@ call g:SyntasticRegistry.CreateAndRegisterChecker({
\ 'filetype': 'javascript', \ 'filetype': 'javascript',
\ 'name': 'eslint'}) \ 'name': 'eslint'})
let &cpo = s:save_cpo
unlet s:save_cpo
" vim: set et sts=4 sw=4:

View File

@ -8,6 +8,7 @@
" Want To Public License, Version 2, as published by Sam Hocevar. " Want To Public License, Version 2, as published by Sam Hocevar.
" See http://sam.zoy.org/wtfpl/COPYING for more details. " See http://sam.zoy.org/wtfpl/COPYING for more details.
"============================================================================ "============================================================================
if exists("g:loaded_syntastic_javascript_gjslint_checker") if exists("g:loaded_syntastic_javascript_gjslint_checker")
finish finish
endif endif
@ -17,6 +18,9 @@ if !exists("g:syntastic_javascript_gjslint_conf")
let g:syntastic_javascript_gjslint_conf = "" let g:syntastic_javascript_gjslint_conf = ""
endif endif
let s:save_cpo = &cpo
set cpo&vim
function! SyntaxCheckers_javascript_gjslint_GetLocList() dict function! SyntaxCheckers_javascript_gjslint_GetLocList() dict
let makeprg = self.makeprgBuild({ let makeprg = self.makeprgBuild({
\ 'args': g:syntastic_javascript_gjslint_conf . " --nosummary --unix_mode --nodebug_indentation --nobeep" }) \ 'args': g:syntastic_javascript_gjslint_conf . " --nosummary --unix_mode --nodebug_indentation --nobeep" })
@ -37,3 +41,7 @@ call g:SyntasticRegistry.CreateAndRegisterChecker({
\ 'filetype': 'javascript', \ 'filetype': 'javascript',
\ 'name': 'gjslint'}) \ 'name': 'gjslint'})
let &cpo = s:save_cpo
unlet s:save_cpo
" vim: set et sts=4 sw=4:

View File

@ -22,6 +22,9 @@ if !exists('g:syntastic_javascript_jshint_conf')
let g:syntastic_javascript_jshint_conf = '' let g:syntastic_javascript_jshint_conf = ''
endif endif
let s:save_cpo = &cpo
set cpo&vim
function! SyntaxCheckers_javascript_jshint_IsAvailable() dict function! SyntaxCheckers_javascript_jshint_IsAvailable() dict
return executable(expand(g:syntastic_jshint_exec)) return executable(expand(g:syntastic_jshint_exec))
endfunction endfunction
@ -55,3 +58,7 @@ call g:SyntasticRegistry.CreateAndRegisterChecker({
\ 'filetype': 'javascript', \ 'filetype': 'javascript',
\ 'name': 'jshint'}) \ 'name': 'jshint'})
let &cpo = s:save_cpo
unlet s:save_cpo
" vim: set et sts=4 sw=4:

View File

@ -8,6 +8,7 @@
" Want To Public License, Version 2, as published by Sam Hocevar. " Want To Public License, Version 2, as published by Sam Hocevar.
" See http://sam.zoy.org/wtfpl/COPYING for more details. " See http://sam.zoy.org/wtfpl/COPYING for more details.
"============================================================================ "============================================================================
if exists("g:loaded_syntastic_javascript_jsl_checker") if exists("g:loaded_syntastic_javascript_jsl_checker")
finish finish
endif endif
@ -17,6 +18,9 @@ if !exists("g:syntastic_javascript_jsl_conf")
let g:syntastic_javascript_jsl_conf = "" let g:syntastic_javascript_jsl_conf = ""
endif endif
let s:save_cpo = &cpo
set cpo&vim
function! SyntaxCheckers_javascript_jsl_GetLocList() dict function! SyntaxCheckers_javascript_jsl_GetLocList() dict
let makeprg = self.makeprgBuild({ let makeprg = self.makeprgBuild({
\ 'args': (!empty(g:syntastic_javascript_jsl_conf) ? "-conf " . g:syntastic_javascript_jsl_conf : "") . \ 'args': (!empty(g:syntastic_javascript_jsl_conf) ? "-conf " . g:syntastic_javascript_jsl_conf : "") .
@ -40,3 +44,7 @@ call g:SyntasticRegistry.CreateAndRegisterChecker({
\ 'filetype': 'javascript', \ 'filetype': 'javascript',
\ 'name': 'jsl'}) \ 'name': 'jsl'})
let &cpo = s:save_cpo
unlet s:save_cpo
" vim: set et sts=4 sw=4:

View File

@ -13,8 +13,12 @@
if exists("g:loaded_syntastic_javascript_jslint_checker") if exists("g:loaded_syntastic_javascript_jslint_checker")
finish finish
endif 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) function! SyntaxCheckers_javascript_jslint_GetHighlightRegex(item)
let term = matchstr(a:item['text'], '\mExpected .* and instead saw ''\zs.*\ze''') let term = matchstr(a:item['text'], '\mExpected .* and instead saw ''\zs.*\ze''')
if term != '' if term != ''
@ -41,3 +45,7 @@ call g:SyntasticRegistry.CreateAndRegisterChecker({
\ 'filetype': 'javascript', \ 'filetype': 'javascript',
\ 'name': 'jslint'}) \ 'name': 'jslint'})
let &cpo = s:save_cpo
unlet s:save_cpo
" vim: set et sts=4 sw=4:

View File

@ -14,6 +14,9 @@ if exists("g:loaded_syntastic_json_jsonlint_checker")
endif 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 function! SyntaxCheckers_json_jsonlint_GetLocList() dict
let makeprg = self.makeprgBuild({ 'post_args': '--compact' }) let makeprg = self.makeprgBuild({ 'post_args': '--compact' })
@ -33,3 +36,8 @@ endfunction
call g:SyntasticRegistry.CreateAndRegisterChecker({ call g:SyntasticRegistry.CreateAndRegisterChecker({
\ 'filetype': 'json', \ 'filetype': 'json',
\ 'name': 'jsonlint'}) \ 'name': 'jsonlint'})
let &cpo = s:save_cpo
unlet s:save_cpo
" vim: set et sts=4 sw=4:

View File

@ -14,6 +14,9 @@ if exists("g:loaded_syntastic_json_jsonval_checker")
endif 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 function! SyntaxCheckers_json_jsonval_GetLocList() dict
" based on https://gist.github.com/1196345 " based on https://gist.github.com/1196345
let makeprg = self.makeprgBuild({}) let makeprg = self.makeprgBuild({})
@ -31,3 +34,8 @@ endfunction
call g:SyntasticRegistry.CreateAndRegisterChecker({ call g:SyntasticRegistry.CreateAndRegisterChecker({
\ 'filetype': 'json', \ 'filetype': 'json',
\ 'name': 'jsonval'}) \ 'name': 'jsonval'})
let &cpo = s:save_cpo
unlet s:save_cpo
" vim: set et sts=4 sw=4:

View File

@ -36,6 +36,9 @@ else
let s:check_file = 'lessc' let s:check_file = 'lessc'
endif endif
let s:save_cpo = &cpo
set cpo&vim
function! SyntaxCheckers_less_lessc_IsAvailable() dict function! SyntaxCheckers_less_lessc_IsAvailable() dict
return g:syntastic_less_use_less_lint ? executable('node') : executable('lessc') return g:syntastic_less_use_less_lint ? executable('node') : executable('lessc')
endfunction endfunction
@ -60,3 +63,8 @@ endfunction
call g:SyntasticRegistry.CreateAndRegisterChecker({ call g:SyntasticRegistry.CreateAndRegisterChecker({
\ 'filetype': 'less', \ 'filetype': 'less',
\ 'name': 'lessc'}) \ 'name': 'lessc'})
let &cpo = s:save_cpo
unlet s:save_cpo
" vim: set et sts=4 sw=4:

View File

@ -46,3 +46,5 @@ call g:SyntasticRegistry.CreateAndRegisterChecker({
let &cpo = s:save_cpo let &cpo = s:save_cpo
unlet s:save_cpo unlet s:save_cpo
" vim: set et sts=4 sw=4:

View File

@ -15,6 +15,9 @@ if exists("g:loaded_syntastic_limbo_limbo_checker")
endif endif
let g:loaded_syntastic_limbo_limbo_checker = 1 let g:loaded_syntastic_limbo_limbo_checker = 1
let s:save_cpo = &cpo
set cpo&vim
function! SyntaxCheckers_limbo_limbo_GetLocList() dict function! SyntaxCheckers_limbo_limbo_GetLocList() dict
let include = !empty($INFERNO_HOME) ? '-I$INFERNO_HOME ' : '' let include = !empty($INFERNO_HOME) ? '-I$INFERNO_HOME ' : ''
" don't generate .dis in current dir while checking syntax, " don't generate .dis in current dir while checking syntax,
@ -36,3 +39,8 @@ endfunction
call g:SyntasticRegistry.CreateAndRegisterChecker({ call g:SyntasticRegistry.CreateAndRegisterChecker({
\ 'filetype': 'limbo', \ 'filetype': 'limbo',
\ 'name': 'limbo' }) \ 'name': 'limbo' })
let &cpo = s:save_cpo
unlet s:save_cpo
" vim: set et sts=4 sw=4:

View File

@ -9,11 +9,15 @@
" See http://sam.zoy.org/wtfpl/COPYING for more details. " See http://sam.zoy.org/wtfpl/COPYING for more details.
" "
"============================================================================ "============================================================================
if exists("g:loaded_syntastic_lisp_clisp_checker") if exists("g:loaded_syntastic_lisp_clisp_checker")
finish finish
endif 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 function! SyntaxCheckers_lisp_clisp_GetLocList() dict
let makeprg = self.makeprgBuild({ let makeprg = self.makeprgBuild({
\ 'args': '-q -c', \ 'args': '-q -c',
@ -38,3 +42,8 @@ endfunction
call g:SyntasticRegistry.CreateAndRegisterChecker({ call g:SyntasticRegistry.CreateAndRegisterChecker({
\ 'filetype': 'lisp', \ 'filetype': 'lisp',
\ 'name': 'clisp'}) \ 'name': 'clisp'})
let &cpo = s:save_cpo
unlet s:save_cpo
" vim: set et sts=4 sw=4:

View File

@ -9,11 +9,15 @@
" See http://sam.zoy.org/wtfpl/COPYING for more details. " See http://sam.zoy.org/wtfpl/COPYING for more details.
" "
"============================================================================ "============================================================================
if exists("g:loaded_syntastic_llvm_llvm_checker") if exists("g:loaded_syntastic_llvm_llvm_checker")
finish finish
endif 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 function! SyntaxCheckers_llvm_llvm_GetLocList() dict
let makeprg = self.makeprgBuild({ 'args': syntastic#c#NullOutput() }) let makeprg = self.makeprgBuild({ 'args': syntastic#c#NullOutput() })
@ -29,3 +33,7 @@ call g:SyntasticRegistry.CreateAndRegisterChecker({
\ 'name': 'llvm', \ 'name': 'llvm',
\ 'exec': 'llc'}) \ 'exec': 'llc'})
let &cpo = s:save_cpo
unlet s:save_cpo
" vim: set et sts=4 sw=4:

View File

@ -15,6 +15,9 @@ if exists("g:loaded_syntastic_lua_luac_checker")
endif 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) function! SyntaxCheckers_lua_luac_GetHighlightRegex(pos)
let result = '' let result = ''
let near = matchstr(a:pos['text'], '\mnear ''\zs[^'']\+\ze''') let near = matchstr(a:pos['text'], '\mnear ''\zs[^'']\+\ze''')
@ -55,3 +58,8 @@ endfunction
call g:SyntasticRegistry.CreateAndRegisterChecker({ call g:SyntasticRegistry.CreateAndRegisterChecker({
\ 'filetype': 'lua', \ 'filetype': 'lua',
\ 'name': 'luac'}) \ 'name': 'luac'})
let &cpo = s:save_cpo
unlet s:save_cpo
" vim: set et sts=4 sw=4:

View File

@ -15,6 +15,9 @@ if exists("g:loaded_syntastic_matlab_mlint_checker")
endif 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 function! SyntaxCheckers_matlab_mlint_GetLocList() dict
let makeprg = self.makeprgBuild({ 'args': '-id $*' }) let makeprg = self.makeprgBuild({ 'args': '-id $*' })
@ -31,3 +34,8 @@ endfunction
call g:SyntasticRegistry.CreateAndRegisterChecker({ call g:SyntasticRegistry.CreateAndRegisterChecker({
\ 'filetype': 'matlab', \ 'filetype': 'matlab',
\ 'name': 'mlint'}) \ 'name': 'mlint'})
let &cpo = s:save_cpo
unlet s:save_cpo
" vim: set et sts=4 sw=4:

View File

@ -9,11 +9,15 @@
" See http://sam.zoy.org/wtfpl/COPYING for more details. " See http://sam.zoy.org/wtfpl/COPYING for more details.
" "
"============================================================================ "============================================================================
if exists("g:loaded_syntastic_nasm_nasm_checker") if exists("g:loaded_syntastic_nasm_nasm_checker")
finish finish
endif 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 function! SyntaxCheckers_nasm_nasm_GetLocList() dict
let wd = syntastic#util#shescape(expand("%:p:h") . "/") let wd = syntastic#util#shescape(expand("%:p:h") . "/")
let makeprg = self.makeprgBuild({ let makeprg = self.makeprgBuild({
@ -31,3 +35,8 @@ endfunction
call g:SyntasticRegistry.CreateAndRegisterChecker({ call g:SyntasticRegistry.CreateAndRegisterChecker({
\ 'filetype': 'nasm', \ 'filetype': 'nasm',
\ 'name': 'nasm'}) \ 'name': 'nasm'})
let &cpo = s:save_cpo
unlet s:save_cpo
" vim: set et sts=4 sw=4:

View File

@ -9,11 +9,15 @@
" See http://sam.zoy.org/wtfpl/COPYING for more details. " See http://sam.zoy.org/wtfpl/COPYING for more details.
" "
"============================================================================ "============================================================================
if exists("g:loaded_syntastic_nroff_mandoc_checker") if exists("g:loaded_syntastic_nroff_mandoc_checker")
finish finish
endif 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 function! SyntaxCheckers_nroff_mandoc_GetLocList() dict
let makeprg = self.makeprgBuild({ 'args': '-Tlint' }) let makeprg = self.makeprgBuild({ 'args': '-Tlint' })
@ -31,3 +35,7 @@ call g:SyntasticRegistry.CreateAndRegisterChecker({
\ 'filetype': 'nroff', \ 'filetype': 'nroff',
\ 'name': 'mandoc'}) \ 'name': 'mandoc'})
let &cpo = s:save_cpo
unlet s:save_cpo
" vim: set et sts=4 sw=4:

View File

@ -19,13 +19,13 @@ if !exists('g:syntastic_objc_compiler')
let g:syntastic_objc_compiler = executable('gcc') ? 'gcc' : 'clang' let g:syntastic_objc_compiler = executable('gcc') ? 'gcc' : 'clang'
endif endif
let s:save_cpo = &cpo
set cpo&vim
function! SyntaxCheckers_objc_gcc_IsAvailable() dict function! SyntaxCheckers_objc_gcc_IsAvailable() dict
return executable(expand(g:syntastic_objc_compiler)) return executable(expand(g:syntastic_objc_compiler))
endfunction endfunction
let s:save_cpo = &cpo
set cpo&vim
if !exists('g:syntastic_objc_compiler_options') if !exists('g:syntastic_objc_compiler_options')
let g:syntastic_objc_compiler_options = '-std=gnu99' let g:syntastic_objc_compiler_options = '-std=gnu99'
endif endif

View File

@ -27,3 +27,5 @@ call g:SyntasticRegistry.CreateAndRegisterChecker({
\ 'filetype': 'objc', \ 'filetype': 'objc',
\ 'name': 'oclint', \ 'name': 'oclint',
\ 'redirect': 'c/oclint'}) \ 'redirect': 'c/oclint'})
" vim: set et sts=4 sw=4:

View File

@ -25,3 +25,5 @@ call g:SyntasticRegistry.CreateAndRegisterChecker({
\ 'filetype': 'objc', \ 'filetype': 'objc',
\ 'name': 'ycm', \ 'name': 'ycm',
\ 'redirect': 'c/ycm'}) \ 'redirect': 'c/ycm'})
" vim: set et sts=4 sw=4:

View File

@ -19,13 +19,13 @@ if !exists('g:syntastic_objcpp_compiler')
let g:syntastic_objcpp_compiler = executable('gcc') ? 'gcc' : 'clang' let g:syntastic_objcpp_compiler = executable('gcc') ? 'gcc' : 'clang'
endif endif
let s:save_cpo = &cpo
set cpo&vim
function! SyntaxCheckers_objcpp_gcc_IsAvailable() dict function! SyntaxCheckers_objcpp_gcc_IsAvailable() dict
return executable(expand(g:syntastic_objcpp_compiler)) return executable(expand(g:syntastic_objcpp_compiler))
endfunction endfunction
let s:save_cpo = &cpo
set cpo&vim
if !exists('g:syntastic_objcpp_compiler_options') if !exists('g:syntastic_objcpp_compiler_options')
let g:syntastic_objcpp_compiler_options = '-std=gnu99' let g:syntastic_objcpp_compiler_options = '-std=gnu99'
endif endif

View File

@ -27,3 +27,5 @@ call g:SyntasticRegistry.CreateAndRegisterChecker({
\ 'filetype': 'objcpp', \ 'filetype': 'objcpp',
\ 'name': 'oclint', \ 'name': 'oclint',
\ 'redirect': 'c/oclint'}) \ 'redirect': 'c/oclint'})
" vim: set et sts=4 sw=4:

View File

@ -25,3 +25,5 @@ call g:SyntasticRegistry.CreateAndRegisterChecker({
\ 'filetype': 'objcpp', \ 'filetype': 'objcpp',
\ 'name': 'ycm', \ 'name': 'ycm',
\ 'redirect': 'c/ycm'}) \ 'redirect': 'c/ycm'})
" vim: set et sts=4 sw=4:

View File

@ -59,6 +59,9 @@ else
let s:ocamlpp="camlp4o" let s:ocamlpp="camlp4o"
endif endif
let s:save_cpo = &cpo
set cpo&vim
function! SyntaxCheckers_ocaml_camlp4o_IsAvailable() dict function! SyntaxCheckers_ocaml_camlp4o_IsAvailable() dict
return executable(s:ocamlpp) return executable(s:ocamlpp)
endfunction endfunction
@ -146,3 +149,8 @@ endfunction
call g:SyntasticRegistry.CreateAndRegisterChecker({ call g:SyntasticRegistry.CreateAndRegisterChecker({
\ 'filetype': 'ocaml', \ 'filetype': 'ocaml',
\ 'name': 'camlp4o'}) \ 'name': 'camlp4o'})
let &cpo = s:save_cpo
unlet s:save_cpo
" vim: set et sts=4 sw=4:

View File

@ -34,6 +34,9 @@ if !exists('g:syntastic_perl_lib_path')
let g:syntastic_perl_lib_path = [] let g:syntastic_perl_lib_path = []
endif endif
let s:save_cpo = &cpo
set cpo&vim
function! SyntaxCheckers_perl_perl_IsAvailable() dict function! SyntaxCheckers_perl_perl_IsAvailable() dict
" don't call executable() here, to allow things like " don't call executable() here, to allow things like
" let g:syntastic_perl_interpreter='/usr/bin/env perl' " let g:syntastic_perl_interpreter='/usr/bin/env perl'
@ -95,3 +98,8 @@ endfunction
call g:SyntasticRegistry.CreateAndRegisterChecker({ call g:SyntasticRegistry.CreateAndRegisterChecker({
\ 'filetype': 'perl', \ 'filetype': 'perl',
\ 'name': 'perl'}) \ 'name': 'perl'})
let &cpo = s:save_cpo
unlet s:save_cpo
" vim: set et sts=4 sw=4:

View File

@ -33,6 +33,9 @@ if !exists('g:syntastic_perl_perlcritic_thres')
let g:syntastic_perl_perlcritic_thres = 5 let g:syntastic_perl_perlcritic_thres = 5
endif endif
let s:save_cpo = &cpo
set cpo&vim
function! SyntaxCheckers_perl_perlcritic_GetLocList() dict function! SyntaxCheckers_perl_perlcritic_GetLocList() dict
let makeprg = self.makeprgBuild({ let makeprg = self.makeprgBuild({
\ 'post_args': '--quiet --nocolor --verbose "\%s:\%f:\%l:\%c:(\%s) \%m (\%e)\n"' }) \ 'post_args': '--quiet --nocolor --verbose "\%s:\%f:\%l:\%c:(\%s) \%m (\%e)\n"' })
@ -56,3 +59,8 @@ endfunction
call g:SyntasticRegistry.CreateAndRegisterChecker({ call g:SyntasticRegistry.CreateAndRegisterChecker({
\ 'filetype': 'perl', \ 'filetype': 'perl',
\ 'name': 'perlcritic'}) \ 'name': 'perlcritic'})
let &cpo = s:save_cpo
unlet s:save_cpo
" vim: set et sts=4 sw=4:

View File

@ -21,3 +21,5 @@ call g:SyntasticRegistry.CreateAndRegisterChecker({
\ 'filetype': 'perl', \ 'filetype': 'perl',
\ 'name': 'podchecker', \ 'name': 'podchecker',
\ 'redirect': 'pod/podchecker'}) \ 'redirect': 'pod/podchecker'})
" vim: set et sts=4 sw=4:

View File

@ -15,6 +15,9 @@ if exists("g:loaded_syntastic_php_php_checker")
endif 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) function! SyntaxCheckers_php_php_GetHighlightRegex(item)
let unexpected = matchstr(a:item['text'], "\\munexpected '[^']\\+'") let unexpected = matchstr(a:item['text'], "\\munexpected '[^']\\+'")
if len(unexpected) < 1 if len(unexpected) < 1
@ -42,4 +45,9 @@ endfunction
call g:SyntasticRegistry.CreateAndRegisterChecker({ call g:SyntasticRegistry.CreateAndRegisterChecker({
\ 'filetype': 'php', \ 'filetype': 'php',
let &cpo = s:save_cpo
unlet s:save_cpo
" vim: set et sts=4 sw=4:
\ 'name': 'php'}) \ 'name': 'php'})

View File

@ -12,12 +12,15 @@
" "
" See here for details of phpcs " See here for details of phpcs
" - phpcs (see http://pear.php.net/package/PHP_CodeSniffer) " - phpcs (see http://pear.php.net/package/PHP_CodeSniffer)
"
if exists("g:loaded_syntastic_php_phpcs_checker") if exists("g:loaded_syntastic_php_phpcs_checker")
finish finish
endif 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 function! SyntaxCheckers_php_phpcs_GetLocList() dict
let makeprg = self.makeprgBuild({ 'args': '--report=csv' }) let makeprg = self.makeprgBuild({ 'args': '--report=csv' })
@ -34,3 +37,8 @@ endfunction
call g:SyntasticRegistry.CreateAndRegisterChecker({ call g:SyntasticRegistry.CreateAndRegisterChecker({
\ 'filetype': 'php', \ 'filetype': 'php',
\ 'name': 'phpcs'}) \ 'name': 'phpcs'})
let &cpo = s:save_cpo
unlet s:save_cpo
" vim: set et sts=4 sw=4:

View File

@ -18,6 +18,9 @@ if exists("g:loaded_syntastic_php_phpmd_checker")
endif 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) function! SyntaxCheckers_php_phpmd_GetHighlightRegex(item)
let term = matchstr(a:item['text'], '\m\C^The \S\+ \w\+\(()\)\= \(has\|is not\|utilizes\)') let term = matchstr(a:item['text'], '\m\C^The \S\+ \w\+\(()\)\= \(has\|is not\|utilizes\)')
if term != '' if term != ''
@ -68,3 +71,8 @@ endfunction
call g:SyntasticRegistry.CreateAndRegisterChecker({ call g:SyntasticRegistry.CreateAndRegisterChecker({
\ 'filetype': 'php', \ 'filetype': 'php',
\ 'name': 'phpmd'}) \ 'name': 'phpmd'})
let &cpo = s:save_cpo
unlet s:save_cpo
" vim: set et sts=4 sw=4:

View File

@ -15,6 +15,8 @@ if exists("g:loaded_syntastic_po_msgfmt_checker")
endif 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) function! SyntaxCheckers_po_msgfmt_GetHighlightRegex(item)
let term = matchstr(a:item['text'], '\mkeyword "\zs[^"]\+\ze" unknown') let term = matchstr(a:item['text'], '\mkeyword "\zs[^"]\+\ze" unknown')
@ -41,3 +43,8 @@ endfunction
call g:SyntasticRegistry.CreateAndRegisterChecker({ call g:SyntasticRegistry.CreateAndRegisterChecker({
\ 'filetype': 'po', \ 'filetype': 'po',
\ 'name': 'msgfmt'}) \ 'name': 'msgfmt'})
let &cpo = s:save_cpo
unlet s:save_cpo
" vim: set et sts=4 sw=4:

View File

@ -9,11 +9,15 @@
" See http://sam.zoy.org/wtfpl/COPYING for more details. " See http://sam.zoy.org/wtfpl/COPYING for more details.
" "
"============================================================================ "============================================================================
if exists("g:loaded_syntastic_pod_podchecker_checker") if exists("g:loaded_syntastic_pod_podchecker_checker")
finish finish
endif 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 function! SyntaxCheckers_pod_podchecker_GetLocList() dict
let makeprg = self.makeprgBuild({}) let makeprg = self.makeprgBuild({})
@ -41,3 +45,7 @@ call g:SyntasticRegistry.CreateAndRegisterChecker({
\ 'filetype': 'pod', \ 'filetype': 'pod',
\ 'name': 'podchecker'}) \ 'name': 'podchecker'})
let &cpo = s:save_cpo
unlet s:save_cpo
" vim: set et sts=4 sw=4:

View File

@ -15,6 +15,9 @@ if exists("g:loaded_syntastic_puppet_puppet_checker")
endif 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 function! SyntaxCheckers_puppet_puppet_GetLocList() dict
let ver = syntastic#util#getVersion(self.getExec() . ' --version 2>' . syntastic#util#DevNull()) let ver = syntastic#util#getVersion(self.getExec() . ' --version 2>' . syntastic#util#DevNull())
@ -40,3 +43,8 @@ endfunction
call g:SyntasticRegistry.CreateAndRegisterChecker({ call g:SyntasticRegistry.CreateAndRegisterChecker({
\ 'filetype': 'puppet', \ 'filetype': 'puppet',
\ 'name': 'puppet'}) \ 'name': 'puppet'})
let &cpo = s:save_cpo
unlet s:save_cpo
" vim: set et sts=4 sw=4:

View File

@ -15,6 +15,9 @@ if exists("g:loaded_syntastic_puppet_puppetlint_checker")
endif 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") if exists("g:syntastic_puppet_lint_arguments")
let g:syntastic_puppet_puppetlint_args = g:syntastic_puppet_lint_arguments let g:syntastic_puppet_puppetlint_args = g:syntastic_puppet_lint_arguments
call syntastic#log#deprecationWarn("variable g:syntastic_puppet_lint_arguments is deprecated, please use g:syntastic_puppet_puppetlint_args instead") call syntastic#log#deprecationWarn("variable g:syntastic_puppet_lint_arguments is deprecated, please use g:syntastic_puppet_puppetlint_args instead")
@ -44,3 +47,8 @@ call g:SyntasticRegistry.CreateAndRegisterChecker({
\ 'filetype': 'puppet', \ 'filetype': 'puppet',
\ 'name': 'puppetlint', \ 'name': 'puppetlint',
\ 'exec': 'puppet-lint'}) \ 'exec': 'puppet-lint'})
let &cpo = s:save_cpo
unlet s:save_cpo
" vim: set et sts=4 sw=4:

View File

@ -5,13 +5,17 @@
" kstep <me@kstep.me> " kstep <me@kstep.me>
" "
"============================================================================ "============================================================================
if exists("g:loaded_syntastic_python_flake8_checker") if exists("g:loaded_syntastic_python_flake8_checker")
finish finish
endif endif
let g:loaded_syntastic_python_flake8_checker = 1 let g:loaded_syntastic_python_flake8_checker = 1
function! SyntaxCheckers_python_flake8_GetHighlightRegex(i) let s:save_cpo = &cpo
return SyntaxCheckers_python_pyflakes_GetHighlightRegex(a:i) set cpo&vim
function! SyntaxCheckers_python_flake8_GetHighlightRegex(item)
return SyntaxCheckers_python_pyflakes_GetHighlightRegex(a:item)
endfunction endfunction
function! SyntaxCheckers_python_flake8_GetLocList() dict function! SyntaxCheckers_python_flake8_GetLocList() dict
@ -35,3 +39,8 @@ runtime! syntax_checkers/python/pyflakes.vim
call g:SyntasticRegistry.CreateAndRegisterChecker({ call g:SyntasticRegistry.CreateAndRegisterChecker({
\ 'filetype': 'python', \ 'filetype': 'python',
\ 'name': 'flake8'}) \ 'name': 'flake8'})
let &cpo = s:save_cpo
unlet s:save_cpo
" vim: set et sts=4 sw=4:

View File

@ -10,6 +10,9 @@ if exists("g:loaded_syntastic_python_pep257_checker")
endif endif
let g:loaded_syntastic_python_pep257_checker = 1 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 " sanity: kill empty lines here rather than munging errorformat
function! SyntaxCheckers_python_pep257_Preprocess(errors) function! SyntaxCheckers_python_pep257_Preprocess(errors)
return filter(copy(a:errors), 'v:val != ""') return filter(copy(a:errors), 'v:val != ""')
@ -41,3 +44,8 @@ endfunction
call g:SyntasticRegistry.CreateAndRegisterChecker({ call g:SyntasticRegistry.CreateAndRegisterChecker({
\ 'filetype': 'python', \ 'filetype': 'python',
\ 'name': 'pep257'}) \ 'name': 'pep257'})
let &cpo = s:save_cpo
unlet s:save_cpo
" vim: set et sts=4 sw=4:

View File

@ -17,6 +17,9 @@ if exists("g:loaded_syntastic_python_pep8_checker")
endif 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 function! SyntaxCheckers_python_pep8_GetLocList() dict
let makeprg = self.makeprgBuild({}) let makeprg = self.makeprgBuild({})
@ -37,3 +40,8 @@ endfunction
call g:SyntasticRegistry.CreateAndRegisterChecker({ call g:SyntasticRegistry.CreateAndRegisterChecker({
\ 'filetype': 'python', \ 'filetype': 'python',
\ 'name': 'pep8'}) \ 'name': 'pep8'})
let &cpo = s:save_cpo
unlet s:save_cpo
" vim: set et sts=4 sw=4:

View File

@ -4,11 +4,15 @@
"Authors: Liam Curry <liam@curry.name> "Authors: Liam Curry <liam@curry.name>
" "
"============================================================================ "============================================================================
if exists("g:loaded_syntastic_python_py3kwarn_checker") if exists("g:loaded_syntastic_python_py3kwarn_checker")
finish finish
endif 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 function! SyntaxCheckers_python_py3kwarn_GetLocList() dict
let makeprg = self.makeprgBuild({}) let makeprg = self.makeprgBuild({})
@ -22,3 +26,8 @@ endfunction
call g:SyntasticRegistry.CreateAndRegisterChecker({ call g:SyntasticRegistry.CreateAndRegisterChecker({
\ 'filetype': 'python', \ 'filetype': 'python',
\ 'name': 'py3kwarn'}) \ 'name': 'py3kwarn'})
let &cpo = s:save_cpo
unlet s:save_cpo
" vim: set et sts=4 sw=4:

View File

@ -6,11 +6,15 @@
" Parantapa Bhattacharya <parantapa@gmail.com> " Parantapa Bhattacharya <parantapa@gmail.com>
" "
"============================================================================ "============================================================================
if exists("g:loaded_syntastic_python_pyflakes_checker") if exists("g:loaded_syntastic_python_pyflakes_checker")
finish finish
endif endif
let g:loaded_syntastic_python_pyflakes_checker = 1 let g:loaded_syntastic_python_pyflakes_checker = 1
let s:save_cpo = &cpo
set cpo&vim
function! SyntaxCheckers_python_pyflakes_GetHighlightRegex(i) function! SyntaxCheckers_python_pyflakes_GetHighlightRegex(i)
if stridx(a:i['text'], 'is assigned to but never used') >= 0 if stridx(a:i['text'], 'is assigned to but never used') >= 0
\ || stridx(a:i['text'], 'imported but unused') >= 0 \ || stridx(a:i['text'], 'imported but unused') >= 0
@ -54,3 +58,8 @@ endfunction
call g:SyntasticRegistry.CreateAndRegisterChecker({ call g:SyntasticRegistry.CreateAndRegisterChecker({
\ 'filetype': 'python', \ 'filetype': 'python',
\ 'name': 'pyflakes'}) \ 'name': 'pyflakes'})
let &cpo = s:save_cpo
unlet s:save_cpo
" vim: set et sts=4 sw=4:

View File

@ -9,13 +9,17 @@
" See http://sam.zoy.org/wtfpl/COPYING for more details. " See http://sam.zoy.org/wtfpl/COPYING for more details.
" "
"============================================================================ "============================================================================
if exists('g:loaded_syntastic_python_pylama_checker') if exists('g:loaded_syntastic_python_pylama_checker')
finish finish
endif endif
let g:loaded_syntastic_python_pylama_checker = 1 let g:loaded_syntastic_python_pylama_checker = 1
function! SyntaxCheckers_python_pylama_GetHighlightRegex(i) let s:save_cpo = &cpo
return SyntaxCheckers_python_pyflakes_GetHighlightRegex(a:i) set cpo&vim
function! SyntaxCheckers_python_pylama_GetHighlightRegex(item)
return SyntaxCheckers_python_pyflakes_GetHighlightRegex(a:item)
endfunction endfunction
function! SyntaxCheckers_python_pylama_GetLocList() dict function! SyntaxCheckers_python_pylama_GetLocList() dict
@ -57,3 +61,8 @@ runtime! syntax_checkers/python/pyflakes.vim
call g:SyntasticRegistry.CreateAndRegisterChecker({ call g:SyntasticRegistry.CreateAndRegisterChecker({
\ 'filetype': 'python', \ 'filetype': 'python',
\ 'name': 'pylama' }) \ 'name': 'pylama' })
let &cpo = s:save_cpo
unlet s:save_cpo
" vim: set et sts=4 sw=4:

View File

@ -4,6 +4,7 @@
"Author: Parantapa Bhattacharya <parantapa at gmail dot com> "Author: Parantapa Bhattacharya <parantapa at gmail dot com>
" "
"============================================================================ "============================================================================
if exists("g:loaded_syntastic_python_pylint_checker") if exists("g:loaded_syntastic_python_pylint_checker")
finish finish
endif endif
@ -11,6 +12,9 @@ let g:loaded_syntastic_python_pylint_checker = 1
let s:pylint_new = -1 let s:pylint_new = -1
let s:save_cpo = &cpo
set cpo&vim
function! SyntaxCheckers_python_pylint_IsAvailable() dict function! SyntaxCheckers_python_pylint_IsAvailable() dict
let exe = self.getExec() let exe = self.getExec()
let s:pylint_new = executable(exe) ? s:PylintNew(exe) : -1 let s:pylint_new = executable(exe) ? s:PylintNew(exe) : -1
@ -65,3 +69,8 @@ endfunction
call g:SyntasticRegistry.CreateAndRegisterChecker({ call g:SyntasticRegistry.CreateAndRegisterChecker({
\ 'filetype': 'python', \ 'filetype': 'python',
\ 'name': 'pylint' }) \ 'name': 'pylint' })
let &cpo = s:save_cpo
unlet s:save_cpo
" vim: set et sts=4 sw=4:

View File

@ -7,11 +7,15 @@
" http://www.vim.org/scripts/download_script.php?src_id=1392 " http://www.vim.org/scripts/download_script.php?src_id=1392
" "
"============================================================================ "============================================================================
if exists("g:loaded_syntastic_python_python_checker") if exists("g:loaded_syntastic_python_python_checker")
finish finish
endif 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 function! SyntaxCheckers_python_python_GetLocList() dict
let fname = "'" . escape(expand('%'), "\\'") . "'" let fname = "'" . escape(expand('%'), "\\'") . "'"
@ -34,3 +38,8 @@ endfunction
call g:SyntasticRegistry.CreateAndRegisterChecker({ call g:SyntasticRegistry.CreateAndRegisterChecker({
\ 'filetype': 'python', \ 'filetype': 'python',
\ 'name': 'python'}) \ 'name': 'python'})
let &cpo = s:save_cpo
unlet s:save_cpo
" vim: set et sts=4 sw=4:

View File

@ -19,8 +19,6 @@ let g:loaded_syntastic_racket_racket_checker=1
let s:save_cpo = &cpo let s:save_cpo = &cpo
set cpo&vim set cpo&vim
" at some point put in the GetHightlightRegex(item) callback
function! SyntaxCheckers_racket_racket_GetLocList() dict function! SyntaxCheckers_racket_racket_GetLocList() dict
let makeprg = self.makeprgBuild({}) let makeprg = self.makeprgBuild({})
@ -48,3 +46,5 @@ call g:SyntasticRegistry.CreateAndRegisterChecker({
let &cpo = s:save_cpo let &cpo = s:save_cpo
unlet s:save_cpo unlet s:save_cpo
" vim: set et sts=4 sw=4:

View File

@ -18,13 +18,13 @@ if exists("g:loaded_syntastic_rst_rst2pseudoxml_checker")
endif endif
let g:loaded_syntastic_rst_rst2pseudoxml_checker = 1 let g:loaded_syntastic_rst_rst2pseudoxml_checker = 1
function! SyntaxCheckers_rst_rst2pseudoxml_IsAvailable() dict let s:rst2pseudoxml = executable('rst2pseudoxml.py') ? 'rst2pseudoxml.py' : 'rst2pseudoxml'
return executable(s:exe())
endfunction let s:save_cpo = &cpo
set cpo&vim
function! SyntaxCheckers_rst_rst2pseudoxml_GetLocList() dict function! SyntaxCheckers_rst_rst2pseudoxml_GetLocList() dict
let makeprg = self.makeprgBuild({ let makeprg = self.makeprgBuild({
\ 'exe': s:exe(),
\ 'args': '--report=2 --exit-status=1', \ 'args': '--report=2 --exit-status=1',
\ 'tail': syntastic#util#DevNull() }) \ 'tail': syntastic#util#DevNull() })
@ -51,10 +51,12 @@ function! SyntaxCheckers_rst_rst2pseudoxml_GetLocList() dict
return loclist return loclist
endfunction endfunction
function! s:exe()
return executable("rst2pseudoxml.py") ? "rst2pseudoxml.py" : "rst2pseudoxml"
endfunction
call g:SyntasticRegistry.CreateAndRegisterChecker({ call g:SyntasticRegistry.CreateAndRegisterChecker({
\ 'filetype': 'rst', \ '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:

View File

@ -5,16 +5,14 @@
" "
"============================================================================ "============================================================================
" https://github.com/myint/rstcheck
"
" To install rstcheck:
" $ pip install --upgrade rstcheck
if exists("g:loaded_syntastic_rst_rstcheck_checker") if exists("g:loaded_syntastic_rst_rstcheck_checker")
finish finish
endif 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 function! SyntaxCheckers_rst_rstcheck_GetLocList() dict
let makeprg = self.makeprgBuild({}) let makeprg = self.makeprgBuild({})
@ -44,3 +42,8 @@ endfunction
call g:SyntasticRegistry.CreateAndRegisterChecker({ call g:SyntasticRegistry.CreateAndRegisterChecker({
\ 'filetype': 'rst', \ 'filetype': 'rst',
\ 'name': 'rstcheck'}) \ 'name': 'rstcheck'})
let &cpo = s:save_cpo
unlet s:save_cpo
" vim: set et sts=4 sw=4:

Some files were not shown because too many files have changed in this diff Show More