summaryrefslogtreecommitdiffstats
path: root/src/vim9.h
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2021-06-06 17:02:53 +0200
committerBram Moolenaar <Bram@vim.org>2021-06-06 17:02:53 +0200
commit2067733b5c76e996238af938af36b8196366b7ce (patch)
tree07c435f04c6f6747e9abfe8e796a6c648cb687d1 /src/vim9.h
parentc64ed2b714e605930e7c4102d4e80a2b1d9ff9bf (diff)
patch 8.2.2951: Vim9: cannot use heredoc for :python, :lua, etc.v8.2.2951
Problem: Vim9: cannot use heredoc in :def function for :python, :lua, etc. Solution: Concatenate the heredoc lines and pass them in the ISN_EXEC_SPLIT instruction.
Diffstat (limited to 'src/vim9.h')
-rw-r--r--src/vim9.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/vim9.h b/src/vim9.h
index 6bc277d9bf..d4d3b7d6c1 100644
--- a/src/vim9.h
+++ b/src/vim9.h
@@ -14,6 +14,7 @@
typedef enum {
ISN_EXEC, // execute Ex command line isn_arg.string
ISN_EXECCONCAT, // execute Ex command from isn_arg.number items on stack
+ ISN_EXEC_SPLIT, // execute Ex command from isn_arg.string split at NL
ISN_LEGACY_EVAL, // evaluate expression isn_arg.string with legacy syntax.
ISN_ECHO, // echo isn_arg.echo.echo_count items on top of stack
ISN_EXECUTE, // execute Ex commands isn_arg.number items on top of stack