Skip to content

Carry the lookahead and bare-# fixes into the playground (engine v0.222.0) - #159

Merged
tannevaled merged 1 commit into
mainfrom
engine-v0222
Sep 12, 2026
Merged

tannevaled merged 1 commit into
mainfrom
engine-v0222

Conversation

@tannevaled

Copy link
Copy Markdown
Contributor

Engine v0.222.0 in the browser:

  • A lookahead expands but never executes (A lookahead expands but never executes engine#357). A glue scan looking for plus, or an integer scan looking for one more digit, used to run \begin's group-opening probe — so \abovecaptionskip=40pt\begin{figure} finished the assignment inside the environment and \end restored the old value. TeX stops such a lookahead in front of any executable primitive (tex.web §380).
  • A bare # kept what followed it (A bare # kept what followed it engine#359). \edef\x{\take#} swallowed the closing } and then the rest of the file. That one line is pgf's, so \usetikzlibrary{svg.path} took every document that loads it down with it.
  • \meaning names all nine character categories, not four (same PR) — # no longer reports as "the character".
  • GOTEX_TRACE names the macro a runaway expansion is looping on (GOTEX_TRACE: a runaway names the macro that loops engine#358).

Playground tests green. Σ on the 154-paper corpus is unchanged at 298: these are correctness fixes, not pagination ones.

🤖 Generated with Claude Code

…22.0)

Three engine fixes reach the browser here:

- a scan that looks ahead (a glue's "plus", a number's next digit) expands but
  no longer EXECUTES, so \abovecaptionskip=40pt\begin{figure} keeps its 40pt
  instead of losing it at \end (engine#357);
- a bare # is passed as the argument it is, instead of eating the token after it
  and then the rest of the file (engine#359);
- \meaning names all nine of TeX's character categories, not four (engine#359);
- GOTEX_TRACE reports what a runaway expansion was looping on (engine#358).

Playground tests green; Sigma on the 154-paper corpus is unchanged (298), as
these are correctness fixes rather than pagination ones.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@tannevaled
tannevaled merged commit af89d46 into main Sep 12, 2026
5 checks passed
@tannevaled
tannevaled deleted the engine-v0222 branch September 12, 2026 15:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant