Skip to content

fix(latex): tokenize piton PitonInputFile like lstinputlisting - #412

Open
HaoZeke wants to merge 1 commit into
mainfrom
impl-a/snapper-e0x2-r2
Open

HaoZeke wants to merge 1 commit into
mainfrom
impl-a/snapper-e0x2-r2

Conversation

@HaoZeke

@HaoZeke HaoZeke commented Sep 12, 2026

Copy link
Copy Markdown
Collaborator

piton.sty \PitonInputFile (NewDocumentCommand d<> O{} m) is one leftover command. Tokenize it like \lstinputlisting so the span stays atomic including optional <...> / [...]. A leftover walker emits the command as Structure so following flush After. does not join. After. / Next. still split.

Keeps tools/verbatim.sty \verbatiminput (#402) and fancyvrb \VerbatimInput (#403) as spans. Isolated on origin/main c02d091.

Verify: Piton env, \piton, \verbatiminput, \VerbatimInput unchanged.

Closes #406.

piton.sty \PitonInputFile (NewDocumentCommand d<> O{} m) is one leftover
command. Tokenize it like lstinputlisting so the span stays atomic
including optional <...> / [...]. A leftover walker emits the command
as Structure so following flush After. does not join. After. / Next.
still split. Piton env, \piton, verbatiminput, VerbatimInput unchanged.

GitHub #406.
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.

LaTeX piton PitonInputFile joins following prose

1 participant