Hi, I am not able to reproduce this problem with the latest version of Vim (with one minor modification described below). Can you try to reproduce this problem with the latest version of Vim?
On Sun, Oct 31, 2021 at 3:33 PM Jongwook Choi <[email protected]> wrote: > Steps to reproduce > > $ vim -u NONE > :source foo.vim > > foo.vim: > > function RunLua() abort > lua<<EOF > > You should add a space around "<<". - Yegappan > > local foo = { > change = {}, > insert = {}, > append = {}, > } > EOF > endfunction > > What happens: > > E126: Missing :endfunction > > Expected behaviour > > The heredoc block should run without any errors -- even if the heredoc > script contains a word like change, append, insert, etc. Those words are > some kind of special directives (see :lua-heredoc) but they impact on > parsing function ... endfunction blocks. > Operating system > > macOS > Version of Vim > > Vim 8.2 and Nightly > Logs and stack traces > > See https://github.com/neovim/neovim/issues/16136 for the downstream issue on > Neovim. I believe this is a vim bug. > > Implementation of parsing heredoc: > https://github.com/vim/vim/blob/master/src/userfunc.c#L940 > > > -- -- You received this message from the "vim_dev" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php --- You received this message because you are subscribed to the Google Groups "vim_dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/vim_dev/CAAW7x7kb4UKYBdd9203oJJavevQzMEayfL%2Bs4-fqxmpPZ%3DgcBQ%40mail.gmail.com.
