Mercurial > vim
comparison src/vim9.h @ 24826:a8d64f1a223b v8.2.2951
patch 8.2.2951: Vim9: cannot use heredoc for :python, :lua, etc.
Commit: https://github.com/vim/vim/commit/2067733b5c76e996238af938af36b8196366b7ce
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Jun 6 17:02:53 2021 +0200
patch 8.2.2951: Vim9: cannot use heredoc for :python, :lua, etc.
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.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 06 Jun 2021 17:15:03 +0200 |
parents | 7c1375eb1636 |
children | e61a2085c89b |
comparison
equal
deleted
inserted
replaced
24825:93958f984c68 | 24826:a8d64f1a223b |
---|---|
12 */ | 12 */ |
13 | 13 |
14 typedef enum { | 14 typedef enum { |
15 ISN_EXEC, // execute Ex command line isn_arg.string | 15 ISN_EXEC, // execute Ex command line isn_arg.string |
16 ISN_EXECCONCAT, // execute Ex command from isn_arg.number items on stack | 16 ISN_EXECCONCAT, // execute Ex command from isn_arg.number items on stack |
17 ISN_EXEC_SPLIT, // execute Ex command from isn_arg.string split at NL | |
17 ISN_LEGACY_EVAL, // evaluate expression isn_arg.string with legacy syntax. | 18 ISN_LEGACY_EVAL, // evaluate expression isn_arg.string with legacy syntax. |
18 ISN_ECHO, // echo isn_arg.echo.echo_count items on top of stack | 19 ISN_ECHO, // echo isn_arg.echo.echo_count items on top of stack |
19 ISN_EXECUTE, // execute Ex commands isn_arg.number items on top of stack | 20 ISN_EXECUTE, // execute Ex commands isn_arg.number items on top of stack |
20 ISN_ECHOMSG, // echo Ex commands isn_arg.number items on top of stack | 21 ISN_ECHOMSG, // echo Ex commands isn_arg.number items on top of stack |
21 ISN_ECHOERR, // echo Ex commands isn_arg.number items on top of stack | 22 ISN_ECHOERR, // echo Ex commands isn_arg.number items on top of stack |