From f3a5344f0808f873ff3aa4b60bd09ad0ecccde48 Mon Sep 17 00:00:00 2001 From: LCD 47 Date: Tue, 15 Nov 2016 10:00:59 +0200 Subject: [PATCH] Checker stylus/stylint: version 1.5.7 breaks errorformat. --- doc/syntastic-checkers.txt | 2 ++ plugin/syntastic.vim | 2 +- syntax_checkers/stylus/stylint.vim | 8 ++++++++ 3 files changed, 11 insertions(+), 1 deletion(-) diff --git a/doc/syntastic-checkers.txt b/doc/syntastic-checkers.txt index 8bc4f5f2..38367654 100644 --- a/doc/syntastic-checkers.txt +++ b/doc/syntastic-checkers.txt @@ -6012,6 +6012,8 @@ the project's page at GitHub for details: https://github.com/rossPatton/stylint +Syntastic doesn't support "Stylint" version 1.5.7 or later. + Checker options~ This checker is initialised using the "makeprgBuild()" function and thus it diff --git a/plugin/syntastic.vim b/plugin/syntastic.vim index 45cc9cc0..d16633c9 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.8.0-4' +let g:_SYNTASTIC_VERSION = '3.8.0-5' lockvar g:_SYNTASTIC_VERSION " Sanity checks {{{1 diff --git a/syntax_checkers/stylus/stylint.vim b/syntax_checkers/stylus/stylint.vim index f489910e..6ac91b65 100644 --- a/syntax_checkers/stylus/stylint.vim +++ b/syntax_checkers/stylus/stylint.vim @@ -18,6 +18,14 @@ let g:loaded_syntastic_stylus_stylint_checker = 1 let s:save_cpo = &cpo set cpo&vim +function! SyntaxCheckers_stylus_stylint_IsAvailable() dict + if !executable(self.getExec()) + return 0 + endif + " XXX versions 1.5.7 and later are not supported + return !syntastic#util#versionIsAtLeast(self.getVersion(), [1, 5, 7]) +endfunction + function! SyntaxCheckers_stylus_stylint_GetLocList() dict let makeprg = self.makeprgBuild({})