Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix \peek_analysis_map_inline:n for not-expanded tokens (fix #1113)
When followed by an implicit special token, the code saves the next token using \futurelet, then stringifies the first token and collects characters until hitting the saved next token. If that token was in a "notexpanded" state then the collection loop never terminated. Now fixed by simply running \futurelet twice to get rid of the "notexpanded" state. One could conceivably want to keep track of it and restore it.
- Loading branch information
Showing
2 changed files
with
12 additions
and
3 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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