aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/ex_cmds.lua
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_cmds.lua
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_cmds.lua')
-rw-r--r--src/nvim/ex_cmds.lua10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/nvim/ex_cmds.lua b/src/nvim/ex_cmds.lua
index 252af409c0..a01f92df27 100644
--- a/src/nvim/ex_cmds.lua
+++ b/src/nvim/ex_cmds.lua
@@ -1927,13 +1927,19 @@ return {
command='perl',
flags=bit.bor(RANGE, EXTRA, DFLALL, NEEDARG, SBOXOK, CMDWIN, RESTRICT),
addr_type=ADDR_LINES,
- func='ex_script_ni',
+ func='ex_perl',
},
{
command='perldo',
flags=bit.bor(RANGE, EXTRA, DFLALL, NEEDARG, CMDWIN, RESTRICT),
addr_type=ADDR_LINES,
- func='ex_ni',
+ func='ex_perldo',
+ },
+ {
+ command='perlfile',
+ flags=bit.bor(RANGE, FILE1, NEEDARG, CMDWIN, RESTRICT),
+ addr_type=ADDR_LINES,
+ func='ex_perlfile',
},
{
command='pedit',