diff src/vim9compile.c @ 23122:60a0221beab0 v8.2.2107

patch 8.2.2107: Vim9: some errors not tested Commit: https://github.com/vim/vim/commit/8ff16e0183e0b07f34c0db8160cf6a472c427eb8 Author: Bram Moolenaar <Bram@vim.org> Date: Mon Dec 7 21:49:52 2020 +0100 patch 8.2.2107: Vim9: some errors not tested Problem: Vim9: some errors not tested. Solution: Add tests. Fix getting the right error.
author Bram Moolenaar <Bram@vim.org>
date Mon, 07 Dec 2020 22:00:04 +0100
parents 462774c327df
children 3bec77b24265
line wrap: on
line diff
--- a/src/vim9compile.c
+++ b/src/vim9compile.c
@@ -2229,6 +2229,7 @@ may_get_next_line_error(char_u *whitep, 
 {
     if (may_get_next_line(whitep, arg, cctx) == FAIL)
     {
+	SOURCING_LNUM = cctx->ctx_lnum + 1;
 	emsg(_(e_line_incomplete));
 	return FAIL;
     }
@@ -5300,7 +5301,7 @@ compile_assignment(char_u *arg, exarg_T 
 
 	wp = op + oplen;
 	p = skipwhite(wp);
-	if (may_get_next_line(wp, &p, cctx) == FAIL)
+	if (may_get_next_line_error(wp, &p, cctx) == FAIL)
 	    return FAIL;
 	if (compile_expr0(&p, cctx) == FAIL)
 	    return NULL;