0
0
mirror of https://github.com/vim/vim.git synced 2025-09-25 03:54:15 -04:00

patch 9.1.0287: Vim9: comment may be treated as heredoc start

Problem:  Vim9: comment may be treated as heredoc start.
          (Ernie Rael)
Solution: Use skip_var_list() instead of find_name_end().
          (zeertzjq)

fixes: #14444
closes: #14446

Signed-off-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
zeertzjq
2024-04-09 21:47:10 +02:00
committed by Christian Brabandt
parent 1af0fbf955
commit 9a91d2b72c
6 changed files with 80 additions and 8 deletions

View File

@@ -6894,7 +6894,7 @@ find_name_end(
int br_nest = 0;
char_u *p;
int len;
int allow_curly = (flags & FNE_ALLOW_CURLY) || !in_vim9script();
int allow_curly = !in_vim9script();
if (expr_start != NULL)
{