Problem: Heredoc assignment not skipped in if block.
Solution: Check if "skip" is set. (closes #5063)
if (l != NULL)
{
rettv_list_set(&rettv, l);
- op[0] = '=';
- op[1] = NUL;
- (void)ex_let_vars(eap->arg, &rettv, FALSE, semicolon, var_count,
+ if (!eap->skip)
+ {
+ op[0] = '=';
+ op[1] = NUL;
+ (void)ex_let_vars(eap->arg, &rettv, FALSE, semicolon, var_count,
is_const, op);
+ }
clear_tv(&rettv);
}
}
app
END
call assert_equal(['something', 'app'], var1)
+
+ let check = []
+ if 0
+ let check =<< trim END
+ from heredoc
+ END
+ endif
+ call assert_equal([], check)
endfunc
static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 2168,
/**/
2167,
/**/