Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Suppress use of current catcodes in control sequence in regex replacements #909

Closed
blefloch opened this issue May 10, 2021 · 0 comments
Closed
Assignees
Labels
bug Something isn't working l3regex

Comments

@blefloch
Copy link
Member

Recent changes to catcode handling in l3regex break the following document, as reported by @u-fischer at #621.

\documentclass{article}

\ExplSyntaxOn
\cs_new_protected:Npn \test #1
  {
    \tl_set:Nn \l_tmpa_tl { #1 }
    \regex_replace_all:nnN
     { (a) } 
     { \c{tl_show:n} } %fails because of the : in the command name)
     \l_tmpa_tl
  }
\ExplSyntaxOff

\begin{document}
\catcode`\:=13 \def:{x}
xx
\test{a}

\end{document}
@blefloch blefloch added bug Something isn't working l3regex labels May 10, 2021
@blefloch blefloch self-assigned this May 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working l3regex
Projects
None yet
Development

No branches or pull requests

1 participant