Files
texrra-engine/docs
gloamxun 621a8abb92 Make @ a letter only inside makeatletter
The scanner treated @ as a letter everywhere, so \makeatletter was a no-op and
\foo@bar parsed as one command even outside it. Canonicalise the source once,
before captures: in the default state a control word stops at @ (and a marker
keeps later scanners from re-joining the split), between \makeatletter and
\makeatother the name is rewritten with a private-use placeholder that
control_sequence and expand_macro_lookup accept as a letter and normalise back
to @. Grouping saves and restores the state, and route-D's own \@... names plus
the internal \p@/\z@/\protected@edef family stay literal so their handlers keep
matching; markers are stripped from text before shaping.

Tests cover \@foo inside makeatletter, \foo@bar splitting to \foo plus "@bar",
\@ifundefined still working, and a group-local \makeatother.
2026-10-27 00:24:28 +08:00
..
2026-10-19 11:41:46 +08:00
2026-10-19 11:41:46 +08:00