[latex3-commits] [git/LaTeX3-latex3-latex3] main: Use \token_case_catcode:NnTF instead of \token_case_meaning:NnTF (35c6840ef)

PhelypeOleinik phelype.oleinik at latex-project.org
Wed Aug 3 16:07:02 CEST 2022


Repository : https://github.com/latex3/latex3
On branch  : main
Link       : https://github.com/latex3/latex3/commit/35c6840ef6aa891a6eed2a23a2cf91d9c9994767

>---------------------------------------------------------------

commit 35c6840ef6aa891a6eed2a23a2cf91d9c9994767
Author: PhelypeOleinik <phelype.oleinik at latex-project.org>
Date:   Wed Aug 3 11:07:02 2022 -0300

    Use \token_case_catcode:NnTF instead of \token_case_meaning:NnTF
    
    \c_math_subscript_token is a "subscript character *", not the usual underscore, so testing the meaning fails.


>---------------------------------------------------------------

35c6840ef6aa891a6eed2a23a2cf91d9c9994767
 l3kernel/l3color.dtx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/l3kernel/l3color.dtx b/l3kernel/l3color.dtx
index 440969080..87cf58f31 100644
--- a/l3kernel/l3color.dtx
+++ b/l3kernel/l3color.dtx
@@ -1483,7 +1483,7 @@
 %    \begin{macrocode}
 \cs_new_protected:Npn \@@_math_scan_auxi:
   {
-    \token_case_meaning:NnTF \l_peek_token
+    \token_case_catcode:NnTF \l_peek_token
       {
         \c_math_subscript_token   { }
         \c_math_superscript_token { }





More information about the latex3-commits mailing list.