From d0a7546f1e6aacc64adb82ebc981d9c29b13051b Mon Sep 17 00:00:00 2001 From: "S. Zachariah Sprackett" Date: Tue, 7 Feb 2012 11:27:32 -0500 Subject: [PATCH] Make this work with releases > 2.7 --- syntax_checkers/puppet.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/syntax_checkers/puppet.vim b/syntax_checkers/puppet.vim index e4fc6489..366f3514 100644 --- a/syntax_checkers/puppet.vim +++ b/syntax_checkers/puppet.vim @@ -24,7 +24,7 @@ function! SyntaxCheckers_puppet_GetLocList() let l:digits = split(l:puppetVersion, "\\.") " " If it is on the 2.7 series... use new executable - if l:digits[0] == '2' && l:digits[1] == '7' + if l:digits[0] >= '2' && l:digits[1] >= '7' let makeprg = 'puppet parser validate ' . \ shellescape(expand('%')) . \ ' --color=false --ignoreimport'