comparison src/eval.c @ 20059:de756b3f4dee v8.2.0585

patch 8.2.0585: Vim9: # comment not recognized after :vim9script Commit: https://github.com/vim/vim/commit/7a09224583b2ad0d9d0648b53cc2d989d45ae96e Author: Bram Moolenaar <Bram@vim.org> Date: Thu Apr 16 22:10:49 2020 +0200 patch 8.2.0585: Vim9: # comment not recognized after :vim9script Problem: Vim9: # comment not recognized after :vim9script. Solution: Check script type. Make comment after ":echo" work. And in several other places.
author Bram Moolenaar <Bram@vim.org>
date Thu, 16 Apr 2020 22:15:04 +0200
parents aadd1cae2ff5
children 6e6a75800884
comparison
equal deleted inserted replaced
20058:bc03e6cae236 20059:de756b3f4dee
6059 int did_emsg_before = did_emsg; 6059 int did_emsg_before = did_emsg;
6060 int called_emsg_before = called_emsg; 6060 int called_emsg_before = called_emsg;
6061 6061
6062 if (eap->skip) 6062 if (eap->skip)
6063 ++emsg_skip; 6063 ++emsg_skip;
6064 while (*arg != NUL && *arg != '|' && *arg != '\n' && !got_int) 6064 while ((!ends_excmd2(eap->cmd, arg) || *arg == '"') && !got_int)
6065 { 6065 {
6066 // If eval1() causes an error message the text from the command may 6066 // If eval1() causes an error message the text from the command may
6067 // still need to be cleared. E.g., "echo 22,44". 6067 // still need to be cleared. E.g., "echo 22,44".
6068 need_clr_eos = needclr; 6068 need_clr_eos = needclr;
6069 6069