Consume catcode assignments for every character
Only \catcode`\@ assignments were handled; a class file setting the catcode of # or _ left the assignment in the text. The canonicalisation pass now consumes any successfully parsed \catcode assignment (backtick, bare or code-point target), applying the value only to @ (11/12); other targets are recorded by their consumption but do not change scanning yet, since the scanner still has a single modelled catcode. A preview test sets # and _ to 12, then renders "#hash and a_b." with no warnings and no leaked assignment.
This commit is contained in:
1 parent
b16e5a53e8
commit
54a0926552
3 files changed
+34
-8
No files matched your search
@@ -49,7 +49,7 @@ floats (`\floatsep`, `\textfloatsep`, `\intextsep`, `\topfraction`,
|
||||
absolute limits, splitting), marks, Rust output hook, multi-page PDF, and the
|
||||
route-D service endpoints (`/api/route-d/preview|pdf|edit`, project preview and
|
||||
PDF opt-in with `?engine=route-d`; flat `/preview` and project previews now
|
||||
prefer route-D with a v1 fallback). 1001 workspace tests are green and no oracle
|
||||
prefer route-D with a v1 fallback). 1002 workspace tests are green and no oracle
|
||||
fixture is ignored. Preview JSON also carries a `warnings` array naming
|
||||
environments route-D cannot lay out and control words that survived layout, so
|
||||
unsupported source is reported instead of being silently typeset.
|
||||
|
||||
Reference in new issue
Block a user