aboutsummaryrefslogtreecommitdiff
path: root/vim/compiler
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2019-05-29 03:35:43 +1200
committerTom Ryder <tom@sanctum.geek.nz>2019-05-29 03:39:45 +1200
commit0ae9c1d02ca1a3d3da5e936b1708fb8bbcc48f4a (patch)
tree5586b7d42f3e57846779131474420b21c585bab9 /vim/compiler
parentMerge branch 'release/v5.1.0' into develop (diff)
downloaddotfiles-0ae9c1d02ca1a3d3da5e936b1708fb8bbcc48f4a.tar.gz
dotfiles-0ae9c1d02ca1a3d3da5e936b1708fb8bbcc48f4a.zip
Refine version check for :compiler scripts
The %:S modifier for shell escaping was added in 7.4.191, and the nicer syntax for checking patch levels not much later in 7.4.237. Bring the minimum version of Vim for the compiler scripts down just a bit, since it's not too much more reading and can still stay on one line.
Diffstat (limited to 'vim/compiler')
-rw-r--r--vim/compiler/bash.vim2
-rw-r--r--vim/compiler/ksh.vim2
-rw-r--r--vim/compiler/perlcritic.vim2
-rw-r--r--vim/compiler/php.vim2
-rw-r--r--vim/compiler/sh.vim2
-rw-r--r--vim/compiler/shellcheck.vim2
-rw-r--r--vim/compiler/vint.vim2
-rw-r--r--vim/compiler/zsh.vim2
8 files changed, 8 insertions, 8 deletions
diff --git a/vim/compiler/bash.vim b/vim/compiler/bash.vim
index aca87eb7..2b69d7a6 100644
--- a/vim/compiler/bash.vim
+++ b/vim/compiler/bash.vim
@@ -1,5 +1,5 @@
" :compiler support for GNU Bash syntax checking with `bash -n`
-if exists('current_compiler') || &compatible || v:version < 800
+if exists('current_compiler') || &compatible || !has('patch-7.4.191')
finish
endif
let current_compiler = 'bash'
diff --git a/vim/compiler/ksh.vim b/vim/compiler/ksh.vim
index 9ee21748..b8ea51a8 100644
--- a/vim/compiler/ksh.vim
+++ b/vim/compiler/ksh.vim
@@ -1,5 +1,5 @@
" :compiler support for Korn shell syntax checking with `ksh -n`
-if exists('current_compiler') || &compatible || v:version < 800
+if exists('current_compiler') || &compatible || !has('patch-7.4.191')
finish
endif
let current_compiler = 'ksh'
diff --git a/vim/compiler/perlcritic.vim b/vim/compiler/perlcritic.vim
index f0d100b6..6738ad5b 100644
--- a/vim/compiler/perlcritic.vim
+++ b/vim/compiler/perlcritic.vim
@@ -1,6 +1,6 @@
" :compiler support for Perl::Critic
" <https://metacpan.org/pod/Perl::Critic>
-if exists('current_compiler') || &compatible || v:version < 800
+if exists('current_compiler') || &compatible || !has('patch-7.4.191')
finish
endif
let current_compiler = 'perlcritic'
diff --git a/vim/compiler/php.vim b/vim/compiler/php.vim
index c0c626ec..aee0de50 100644
--- a/vim/compiler/php.vim
+++ b/vim/compiler/php.vim
@@ -1,5 +1,5 @@
" :compiler support for PHP syntax checking with `php -l`
-if exists('current_compiler') || &compatible || v:version < 800
+if exists('current_compiler') || &compatible || !has('patch-7.4.191')
finish
endif
let current_compiler = 'php'
diff --git a/vim/compiler/sh.vim b/vim/compiler/sh.vim
index 6abb715e..1f531af2 100644
--- a/vim/compiler/sh.vim
+++ b/vim/compiler/sh.vim
@@ -1,5 +1,5 @@
" :compiler support for POSIX sh syntax checking with `sh -n`
-if exists('current_compiler') || &compatible || v:version < 800
+if exists('current_compiler') || &compatible || !has('patch-7.4.191')
finish
endif
let current_compiler = 'sh'
diff --git a/vim/compiler/shellcheck.vim b/vim/compiler/shellcheck.vim
index f440a23d..004ad369 100644
--- a/vim/compiler/shellcheck.vim
+++ b/vim/compiler/shellcheck.vim
@@ -1,6 +1,6 @@
" :compiler support for shell script linting with ShellCheck
" <https://www.shellcheck.net/>
-if exists('current_compiler') || &compatible || v:version < 800
+if exists('current_compiler') || &compatible || !has('patch-7.4.191')
finish
endif
let current_compiler = 'shellcheck'
diff --git a/vim/compiler/vint.vim b/vim/compiler/vint.vim
index 8cd35cf1..216d8602 100644
--- a/vim/compiler/vint.vim
+++ b/vim/compiler/vint.vim
@@ -1,6 +1,6 @@
" :compiler support for Vim script linting with Vint
" <https://github.com/Kuniwak/vint>
-if exists('current_compiler') || &compatible || v:version < 800
+if exists('current_compiler') || &compatible || !has('patch-7.4.191')
finish
endif
let current_compiler = 'vimlint'
diff --git a/vim/compiler/zsh.vim b/vim/compiler/zsh.vim
index bb8802c9..1ed48412 100644
--- a/vim/compiler/zsh.vim
+++ b/vim/compiler/zsh.vim
@@ -1,5 +1,5 @@
" :compiler support for Z Shell syntax checking with `zsh -n`
-if exists('current_compiler') || &compatible || v:version < 800
+if exists('current_compiler') || &compatible || !has('patch-7.4.191')
finish
endif
let current_compiler = 'zsh'