pub fn until_terminal_inside_group(terminal: &Token) -> Result<bool>Expand description
Return the digested List after reading and digesting a body from the its Gullet.
The body extends until the current level of boxing or environment is closed.
A bounded body’s terminal token (\lx@add@frontmatter@until’s
\lx@end@abstract…) invoked INSIDE a group opened within that body — a
{ group is a nested digest body here (and in Perl, TeX_Box.pool.ltxml:
30-41), so the body’s own loop never sees the token. LaTeX’s rule for an
environment end met inside an open group is \@checkend’s “\begin{X}
ended by \end{Y}” (latex.ltx:15394) with the groups closed by the error
recovery; here the groups above the body are abandoned (abandon_stack_frame:
popped, \aftergroup discarded) with a Warning, and the body’s
loop is told its terminal arrived (lx@until@terminal@hit). Returns true
when it acted. Witness: screenplay-pkg.tex:67 \abstract{…\section —
the section then lands at document level, as the brace-less form does.