Carry the lookahead and bare-# fixes into the playground (engine v0.222.0) - #159
Merged
Merged
Conversation
…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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Engine v0.222.0 in the browser:
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\endrestored the old value. TeX stops such a lookahead in front of any executable primitive (tex.web §380).#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.\meaningnames all nine character categories, not four (same PR) —#no longer reports as "the character".GOTEX_TRACEnames 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