1
0
forked from aniani/vim

patch 8.2.0624: Vim9: no check for space before #comment

Problem:    Vim9: no check for space before #comment.
Solution:   Add space checks.  Fix :throw with double quoted string.
This commit is contained in:
Bram Moolenaar
2020-04-23 17:07:30 +02:00
parent f7b398c6a9
commit a72cfb80cd
5 changed files with 94 additions and 13 deletions

View File

@@ -2373,7 +2373,7 @@ ex_function(exarg_T *eap)
/*
* ":function" without argument: list functions.
*/
if (ends_excmd(*eap->arg))
if (ends_excmd2(eap->cmd, eap->arg))
{
if (!eap->skip)
{
@@ -3711,7 +3711,7 @@ ex_call(exarg_T *eap)
if (!failed || eap->cstack->cs_trylevel > 0)
{
// Check for trailing illegal characters and a following command.
if (!ends_excmd(*arg))
if (!ends_excmd2(eap->arg, arg))
{
if (!failed)
{