syntastic git · master
syntastic vim plugin (fork)
Vim Script 99%git clone https://git.christianimmanuel.de/mirrors-forks/syntastic.gitwget https://git.christianimmanuel.de/mirrors-forks/syntastic/archive/syntastic.tar.gzRemove checker vala/valac.
README.markdown | 11 +++++- doc/syntastic-checkers.txt | 46 ------------------------- plugin/syntastic.vim | 2 +- plugin/syntastic/registry.vim | 1 - syntax_checkers/vala/valac.vim | 76 ------------------------------------------ 5 files changed, 11 insertions(+), 125 deletions(-) diff --git a/README.markdown b/README.markdown index 96355f25..36e0c1a8 100644 --- a/README.markdown +++ b/README.markdown @@ -41,6 +41,7 @@ 4.14. [What happened to the `rustc` checker?](#faqrust) 4.15. [What happened to the `tsc` checker?](#faqtsc) 4.16. [What happened to the `xcrun` checker?](#faqxcrun) +4.17. [What happened to the `valac` checker?](#faqvalac) 5. [Resources](#otherresources) - - - @@ -67,7 +68,7 @@ MATLAB, Mercury, NASM, Nix, Objective-C, Objective-C++, OCaml, Perl, Perl 6, Perl POD, PHP, gettext Portable Object, OS X and iOS property lists, Pug (formerly Jade), Puppet, Python, QML, R, Racket, RDF TriG, RDF Turtle, Relax NG, reStructuredText, RPM spec, Ruby, SASS/SCSS, Scala, Slim, SML, Solidity, -Sphinx, SQL, Stylus, Tcl, TeX, Texinfo, Twig, TypeScript, Vala, Verilog, VHDL, +Sphinx, SQL, Stylus, Tcl, TeX, Texinfo, Twig, TypeScript, Verilog, VHDL, Vim help, VimL, Vue.js, xHtml, XML, XSLT, XQuery, YACC, YAML, YANG data models, YARA rules, z80, Zope page templates, and Zsh. See the [manual][checkers] for details about the corresponding supported checkers (`:help syntastic-checkers` @@ -487,6 +488,13 @@ A. The `xcrun` checker used to have a security problem and it has been removed. A better checker for __Swift__ is part of the [vim-swift][swift] plugin. If you install this plugin the checker should be picked up automatically by syntastic. +<a name="faqvalac"></a> + +__4.17. Q. What happened to the `valac` checker?__ + +A. It is now part of the [vala.vim][vala] plugin. If you install this plugin the +checker should be picked up automatically by syntastic. + <a name="otherresources"></a> ## 5\. Resources @@ -531,6 +539,7 @@ a look at [ghcmod-vim][ghcmod], [jedi-vim][jedi], [python-mode][python_mode], [v [swift]: https://github.com/kballard/vim-swift [tsuquyomi]: https://github.com/Quramy/tsuquyomi/ [unimpaired]: https://github.com/tpope/vim-unimpaired +[vala]: https://github.com/arrufat/vala.vim [vam]: https://github.com/MarcWeber/vim-addon-manager [vim]: http://www.vim.org/ [vimgo]: https://github.com/fatih/vim-go diff --git a/doc/syntastic-checkers.txt b/doc/syntastic-checkers.txt index 4ba49619..77e42c44 100644 --- a/doc/syntastic-checkers.txt +++ b/doc/syntastic-checkers.txt @@ -118,7 +118,6 @@ SYNTAX CHECKERS BY LANGUAGE *syntastic-checkers-lang* Twig.....................................|syntastic-checkers-twig| TypeScript...............................|syntastic-checkers-typescript| - Vala.....................................|syntastic-checkers-vala| Verilog..................................|syntastic-checkers-verilog| VHDL.....................................|syntastic-checkers-vhdl| Vim help.................................|syntastic-checkers-help| @@ -7251,51 +7250,6 @@ as "typescript-vim": https://github.com/leafgarland/typescript-vim -============================================================================== -SYNTAX CHECKERS FOR VALA *syntastic-checkers-vala* - -The following checkers are available for Vala (filetype "vala"): - - 1. Valac....................|syntastic-vala-valac| - ------------------------------------------------------------------------------- -1. Valac *syntastic-vala-valac* - -Name: valac -Maintainer: Konstantin Stepanov (me@kstep.me) - -"valac" is a compiler for Vala. See the project's page for details: - - https://wiki.gnome.org/Projects/Vala - -Checker options~ - -This checker is initialised using the "makeprgBuild()" function and thus it -accepts the standard options described at |syntastic-config-makeprg|. - -Additionally: - - *'g:syntastic_vala_modules'* -Type: string or array of strings -Default: unset -Space-separated list of Vala modules to be passed as "--pkg" arguments. - - *'g:syntastic_vala_vapi_dirs'* -Type: string or array of strings -Default: unset -Space-separated list of "vapi" directories to be passed as "--vapidirs" -arguments. - -Notes~ - -If |'g:syntastic_vala_modules'| is unset, you can also specify a list of -module to load for the current file by adding a special comment starting with -"// modules: " and containing a space-delimited list of names. - -If |'g:syntastic_vala_vapi_dirs'| is unset, you can also specify a list of -"vapi" directories for the current file by adding a special comment starting -with "// vapidirs:" and containing a space-delimited list of names. - ============================================================================== SYNTAX CHECKERS FOR VERILOG *syntastic-checkers-verilog* diff --git a/plugin/syntastic.vim b/plugin/syntastic.vim index e66c0d32..843134c5 100644 --- a/plugin/syntastic.vim +++ b/plugin/syntastic.vim @@ -19,7 +19,7 @@ if has('reltime') lockvar! g:_SYNTASTIC_START endif -let g:_SYNTASTIC_VERSION = '3.10.0-6' +let g:_SYNTASTIC_VERSION = '3.10.0-7' lockvar g:_SYNTASTIC_VERSION " Sanity checks {{{1 diff --git a/plugin/syntastic/registry.vim b/plugin/syntastic/registry.vim index 4640bf76..72aaff61 100644 --- a/plugin/syntastic/registry.vim +++ b/plugin/syntastic/registry.vim @@ -101,7 +101,6 @@ let s:_DEFAULT_CHECKERS = { \ 'turtle': ['rapper'], \ 'twig': ['twiglint'], \ 'typescript': [], - \ 'vala': ['valac'], \ 'verilog': ['verilator'], \ 'vhdl': ['ghdl'], \ 'vim': ['vimlint'], diff --git a/syntax_checkers/vala/valac.vim b/syntax_checkers/vala/valac.vim deleted file mode 100644 index 196d4852..00000000 --- a/syntax_checkers/vala/valac.vim +++ /dev/null @@ -1,76 +0,0 @@ -"============================================================================ -"File: vala.vim -"Description: Syntax checking plugin for syntastic -"Maintainer: Konstantin Stepanov (me@kstep.me) -"License: This program is free software. It comes without any warranty, -" to the extent permitted by applicable law. You can redistribute -" it and/or modify it under the terms of the Do What The Fuck You -" 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_vala_valac_checker') - finish -endif -let g:loaded_syntastic_vala_valac_checker = 1 - -let s:save_cpo = &cpo -set cpo&vim - -function! SyntaxCheckers_vala_valac_GetHighlightRegex(pos) " {{{1 - let length = strlen(matchstr(a:pos['text'], '\m\^\+$')) - return '\%>' . (a:pos['col'] - 1) . 'c\%<' . (a:pos['col'] + length) . 'c' -endfunction " }}}1 - -function! SyntaxCheckers_vala_valac_GetLocList() dict " {{{1 - let buf = bufnr('') - let makeprg = self.makeprgBuild({ - \ 'args': '-C ' . - \ s:GetValaOpts(buf, 'modules', 'modules', '--pkg') . ' ' . - \ s:GetValaOpts(buf, 'vapi_dirs', 'vapidirs', '--vapidir'), - \ }) - - let errorformat = - \ '%A%f:%l.%c-%\d%\+.%\d%\+: %t%[a-z]%\+: %m,'. - \ '%C%m,'. - \ '%Z%m' - - return SyntasticMake({ - \ 'makeprg': makeprg, - \ 'errorformat': errorformat }) -endfunction " }}}1 - -" Utilities {{{1 - -function! s:GetValaOpts(buf, name, comment, cmd) " {{{2 - let var = syntastic#util#bufVar(a:buf, 'vala_' . a:name) - if type(var) == type([]) - let opts = map(copy(var), 'syntastic#util#shescape(v:val)') - elseif type(var) == type('') - if var !=# '' - let opts = split(var, '\m\s\+') - else - let opts = [] - for line in filter(getbufline(a:buf, 1, 100), 'v:val =~# ' . string('\m^//\s\+' . a:comment . ':\s*')) - call extend(opts, split( matchstr(line, '\m^//\s\+' . a:comment . ':\s*\zs.*'), '\m\s\+' )) - endfor - endif - else - call syntastic#log#error('syntastic_vala_' . a:name . ' must be either a list, or a string') - return '' - endif - - return join(map(opts, string(a:cmd . ' ') . ' . v:val')) -endfunction " }}}2 - -" }}}1 - -call g:SyntasticRegistry.CreateAndRegisterChecker({ - \ 'filetype': 'vala', - \ 'name': 'valac'}) - -let &cpo = s:save_cpo -unlet s:save_cpo - -" vim: set sw=4 sts=4 et fdm=marker: