[latex3-commits] [git/LaTeX3-latex3-latex3] latex2e/gh569: Track changes in the signature parser (48222d28e)

PhelypeOleinik phelype.oleinik at latex-project.org
Fri Aug 13 04:29:06 CEST 2021


Repository : https://github.com/latex3/latex3
On branch  : latex2e/gh569
Link       : https://github.com/latex3/latex3/commit/48222d28efc5576cdb3b165ebc6662504cce266b

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

commit 48222d28efc5576cdb3b165ebc6662504cce266b
Author: PhelypeOleinik <phelype.oleinik at latex-project.org>
Date:   Thu Aug 12 23:29:06 2021 -0300

    Track changes in the signature parser


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

48222d28efc5576cdb3b165ebc6662504cce266b
 l3packages/xparse/testfiles/xparse007.tlg |  2 ++
 l3packages/xparse/xparse.dtx              | 15 +++++++++++++++
 2 files changed, 17 insertions(+)

diff --git a/l3packages/xparse/testfiles/xparse007.tlg b/l3packages/xparse/testfiles/xparse007.tlg
index 228b1201a..1cf807c98 100644
--- a/l3packages/xparse/testfiles/xparse007.tlg
+++ b/l3packages/xparse/testfiles/xparse007.tlg
@@ -19,6 +19,8 @@ Defining \__cmd_add_type_u:w on line ...
 Defining \__cmd_add_expandable_type_l:w on line ...
 Defining \__cmd_add_expandable_type_u:w on line ...
 Defining \__cmd_copy_grabber_u:w on line ...
+Defining \c__cmd_show_type_u_tl on line ...
+Defining \c__cmd_show_type_G_tl on line ...
 Defining \__cmd_grab_G:w on line ...
 Defining \__cmd_grab_G_long:w on line ...
 Defining \__cmd_grab_G_obey_spaces:w on line ...
diff --git a/l3packages/xparse/xparse.dtx b/l3packages/xparse/xparse.dtx
index bfe7ceb9f..8fcdef1a3 100644
--- a/l3packages/xparse/xparse.dtx
+++ b/l3packages/xparse/xparse.dtx
@@ -1267,6 +1267,21 @@
 %    \end{macrocode}
 % \end{macro}
 %
+% \subsubsection{Showing the definition of a command}
+%
+% \begin{macro}{\c_@@_show_type_u_tl,\c_@@_show_type_G_tl}
+%   Same as for copying, only small bits are missing here.  Namely, two
+%   token lists that tell the \pkg{ltcmd} mechanism how to deal with the
+%   argument types defined here.  Both |G| and |u| are classified
+%   as~|3|: commands that take a default value.  That's not really true
+%   for~|u|, but it's a close enough approximation to get the output we
+%   want.
+%    \begin{macrocode}
+\tl_const:Nn \c_@@_show_type_u_tl { 3 }
+\tl_const:Nn \c_@@_show_type_G_tl { 3 }
+%    \end{macrocode}
+% \end{macro}
+%
 % \subsection{Grabbing arguments}
 %
 % \begin{macro}{\@@_grab_G:w}





More information about the latex3-commits mailing list.