It is a lot simpler this way. scan_heredoc already sets PL_multi_close
to '<' (the only code that does it). That value does not appear to
be used anywhere. Now it is.
Furthermore, this removes assumptions that the next commit will
likely violate.
{
dVAR;
LEXSHARED *shared;
- const bool is_heredoc =
- CopLINE(PL_curcop) == (line_t)PL_multi_start - 1;
+ const bool is_heredoc = PL_multi_close == '<';
ENTER;
- assert(CopLINE(PL_curcop) == (line_t)PL_multi_start
- || CopLINE(PL_curcop) == (line_t)PL_multi_start - 1);
-
PL_lex_state = PL_sublex_info.super_state;
SAVEBOOL(PL_lex_dojoin);
SAVEI32(PL_lex_brackets);