Sqlint checker: cleanup.
This commit is contained in:
parent
125ce327ef
commit
1e475a7df5
@ -60,10 +60,10 @@ Haskell, Haxe, Handlebars, HSS, HTML, Java, JavaScript, JSON, JSX, LESS, Lex,
|
|||||||
Limbo, LISP, LLVM intermediate language, Lua, Markdown, MATLAB, Mercury, NASM,
|
Limbo, LISP, LLVM intermediate language, Lua, Markdown, MATLAB, Mercury, NASM,
|
||||||
Nix, Objective-C, Objective-C++, OCaml, Perl, Perl POD, PHP, gettext Portable
|
Nix, Objective-C, Objective-C++, OCaml, Perl, Perl POD, PHP, gettext Portable
|
||||||
Object, OS X and iOS property lists, Puppet, Python, R, Racket, Relax NG,
|
Object, OS X and iOS property lists, Puppet, Python, R, Racket, Relax NG,
|
||||||
reStructuredText, RPM spec, Ruby, SASS/SCSS, Scala, Slim, SML, Sphinx, Tcl,
|
reStructuredText, RPM spec, Ruby, SASS/SCSS, Scala, Slim, SML, Sphinx, SQL,
|
||||||
TeX, Texinfo, Twig, TypeScript, Vala, Verilog, VHDL, VimL, xHtml, XML, XSLT,
|
Tcl, TeX, Texinfo, Twig, TypeScript, Vala, Verilog, VHDL, VimL, xHtml, XML,
|
||||||
YACC, YAML, z80, Zope page templates, and zsh. See the [wiki][3] for details
|
XSLT, YACC, YAML, z80, Zope page templates, and zsh. See the [wiki][3] for
|
||||||
about the corresponding supported checkers.
|
details about the corresponding supported checkers.
|
||||||
|
|
||||||
A number of third-party Vim plugins also provide checkers for syntastic,
|
A number of third-party Vim plugins also provide checkers for syntastic,
|
||||||
for example: [omnisharp-vim][25], [rust.vim][12], [syntastic-extras][26],
|
for example: [omnisharp-vim][25], [rust.vim][12], [syntastic-extras][26],
|
||||||
|
@ -19,7 +19,7 @@ if has('reltime')
|
|||||||
lockvar! g:_SYNTASTIC_START
|
lockvar! g:_SYNTASTIC_START
|
||||||
endif
|
endif
|
||||||
|
|
||||||
let g:_SYNTASTIC_VERSION = '3.6.0-124'
|
let g:_SYNTASTIC_VERSION = '3.6.0-126'
|
||||||
lockvar g:_SYNTASTIC_VERSION
|
lockvar g:_SYNTASTIC_VERSION
|
||||||
|
|
||||||
" Sanity checks {{{1
|
" Sanity checks {{{1
|
||||||
|
@ -78,6 +78,7 @@ let s:_DEFAULT_CHECKERS = {
|
|||||||
\ 'slim': ['slimrb'],
|
\ 'slim': ['slimrb'],
|
||||||
\ 'sml': ['smlnj'],
|
\ 'sml': ['smlnj'],
|
||||||
\ 'spec': ['rpmlint'],
|
\ 'spec': ['rpmlint'],
|
||||||
|
\ 'sql': ['sqlint'],
|
||||||
\ 'tcl': ['nagelfar'],
|
\ 'tcl': ['nagelfar'],
|
||||||
\ 'tex': ['lacheck', 'chktex'],
|
\ 'tex': ['lacheck', 'chktex'],
|
||||||
\ 'texinfo': ['makeinfo'],
|
\ 'texinfo': ['makeinfo'],
|
||||||
|
@ -23,18 +23,16 @@ endfunction
|
|||||||
function! SyntaxCheckers_sql_sqlint_GetLocList() dict
|
function! SyntaxCheckers_sql_sqlint_GetLocList() dict
|
||||||
let makeprg = self.makeprgBuild({})
|
let makeprg = self.makeprgBuild({})
|
||||||
|
|
||||||
let commonformat = '%f:%l:%c:'
|
|
||||||
let errorformat =
|
let errorformat =
|
||||||
\ '%E%>' . commonformat . "ERROR %m," .
|
\ '%E%f:%l:%c:ERROR %m,' .
|
||||||
\ '%+C%> %.%#,' .
|
\ '%W%f:%l:%c:WARNING %m,' .
|
||||||
\ '%W%>' . commonformat . "WARNING %m," .
|
\ '%C %m'
|
||||||
\ '%+C%> %.%#'
|
|
||||||
let loclist = SyntasticMake({
|
return SyntasticMake({
|
||||||
\ 'makeprg': makeprg,
|
\ 'makeprg': makeprg,
|
||||||
\ 'errorformat': errorformat,
|
\ 'errorformat': errorformat,
|
||||||
\ 'subtype': 'Style'})
|
\ 'subtype': 'Style',
|
||||||
|
\ 'returns': [0] })
|
||||||
return loclist
|
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
call g:SyntasticRegistry.CreateAndRegisterChecker({
|
call g:SyntasticRegistry.CreateAndRegisterChecker({
|
||||||
|
Loading…
x
Reference in New Issue
Block a user