patch 8.2.3312: Vim9: after "if false" line breaks in expression not skipped
Problem: Vim9: after "if false" line breaks in expression not skipped.
Solution: Do parse the expression. (closes #8723)
diff --git a/src/vim9compile.c b/src/vim9compile.c
index 125135a..5effa5c 100644
--- a/src/vim9compile.c
+++ b/src/vim9compile.c
@@ -9730,14 +9730,12 @@
if (p == ea.cmd && ea.cmdidx != CMD_SIZE)
{
- if (cctx.ctx_skip == SKIP_YES)
+ if (cctx.ctx_skip == SKIP_YES && ea.cmdidx != CMD_eval)
{
line += STRLEN(line);
goto nextline;
}
-
- // Expression or function call.
- if (ea.cmdidx != CMD_eval)
+ else if (ea.cmdidx != CMD_eval)
{
// CMD_var cannot happen, compile_assignment() above would be
// used. Most likely an assignment to a non-existing variable.