aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/ex_cmds2.c
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2020-09-05 13:55:06 -0700
committerGitHub <noreply@github.com>2020-09-05 13:55:06 -0700
commit858c056133ed50af8dc31fdeee1638cb69ea2c69 (patch)
tree14bdb76032804152df438f5ffb4a5d77d369c8e0 /src/nvim/ex_cmds2.c
parent8b5c6a1b73206185e2451a92a5f8ca0036ca2212 (diff)
parent8705fbf77c067a907caf1920a0852fdb8619c649 (diff)
downloadrneovim-858c056133ed50af8dc31fdeee1638cb69ea2c69.tar.gz
rneovim-858c056133ed50af8dc31fdeee1638cb69ea2c69.tar.bz2
rneovim-858c056133ed50af8dc31fdeee1638cb69ea2c69.zip
Support for :perl, :perlfile, :perldo and perleval() (#12809)
* support for :perl, :perlfile, :perldo and perleval() * document that the perl provider doesn't currently work on Windows * document that the perl legacy interface is now also supported * added perleval() documentation * import legacy perl interface tests * only perl 5.22+ is supported * healtcheck: use g:perl_host_prog if its set instead using just 'perl' isn't correct as it may not be the version requested. ditto for 'cpanm', rather go through 'App::cpanminus' to find the latest perl version
Diffstat (limited to 'src/nvim/ex_cmds2.c')
-rw-r--r--src/nvim/ex_cmds2.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/nvim/ex_cmds2.c b/src/nvim/ex_cmds2.c
index 636fc96bde..3e169f7a4e 100644
--- a/src/nvim/ex_cmds2.c
+++ b/src/nvim/ex_cmds2.c
@@ -935,6 +935,21 @@ void ex_pydo3(exarg_T *eap)
script_host_do_range("python3", eap);
}
+void ex_perl(exarg_T *eap)
+{
+ script_host_execute("perl", eap);
+}
+
+void ex_perlfile(exarg_T *eap)
+{
+ script_host_execute_file("perl", eap);
+}
+
+void ex_perldo(exarg_T *eap)
+{
+ script_host_do_range("perl", eap);
+}
+
// Command line expansion for :profile.
static enum {
PEXP_SUBCMD, ///< expand :profile sub-commands