rebase on 2015
[Vimrc.git] / bundle / syntastic-3.4.0 / syntax_checkers / zsh / zsh.vim
blob4805763118fd96241476e43100ab66f713bf4ecc
1 "============================================================================
2 "File:        zsh.vim
3 "Description: Syntax checking plugin for syntastic.vim
4 "Maintainer:  Martin Grenfell <martin.grenfell at gmail dot com>
5 "License:     This program is free software. It comes without any warranty,
6 "             to the extent permitted by applicable law. You can redistribute
7 "             it and/or modify it under the terms of the Do What The Fuck You
8 "             Want To Public License, Version 2, as published by Sam Hocevar.
9 "             See http://sam.zoy.org/wtfpl/COPYING for more details.
11 "============================================================================
13 if exists("g:loaded_syntastic_zsh_zsh_checker")
14     finish
15 endif
16 let g:loaded_syntastic_zsh_zsh_checker = 1
18 let s:save_cpo = &cpo
19 set cpo&vim
21 function! SyntaxCheckers_zsh_zsh_GetLocList() dict
22     let makeprg = self.makeprgBuild({ 'args_after': '-n' })
24     let errorformat = '%f:%l: %m'
26     return SyntasticMake({
27         \ 'makeprg': makeprg,
28         \ 'errorformat': errorformat})
29 endfunction
31 call g:SyntasticRegistry.CreateAndRegisterChecker({
32     \ 'filetype': 'zsh',
33     \ 'name': 'zsh'})
35 let &cpo = s:save_cpo
36 unlet s:save_cpo
38 " vim: set et sts=4 sw=4: