blefloch / latex-unravel

Watching TeX digest tokens
24 stars 1 forks source link

`\unless\ifcsname ...\endcsname` fails with "Missing `\endcsname`" #56

Closed muzimuzhi closed 1 year ago

muzimuzhi commented 1 year ago
\documentclass{article}
\usepackage{unravel}
\unravel{\unless\ifcsname abc\endcsname\fi}

\begin{document}
\end{document}
||
|> \unless \ifcsname abc\endcsname \fi

[===== Step 1 =====] \unless = \unless
|| \reverse_if:N \ifcsname
|> abc\endcsname \fi

[===== Step 2 =====] \endcsname
|| \reverse_if:N \ifcsname abc\endcsname
|> \fi

! Missing \endcsname inserted.
<to be read again>
                   \__kernel_tl_set:Nx
l.3 \unravel{\unless\ifcsname abc\endcsname\fi}
PhelypeOleinik commented 1 year ago

Duplicate of #50: fixed but not released yet, it seems

muzimuzhi commented 1 year ago

Oh yes! Why didn't I find it myself yesterday, even I must have read #50 before. Thank you a lot, Phelype.

PS: I confirm this is fixed, by cloning into local repo and running l3build install.