From 48222d28efc5576cdb3b165ebc6662504cce266b Mon Sep 17 00:00:00 2001 From: PhelypeOleinik Date: Thu, 12 Aug 2021 23:29:06 -0300 Subject: [PATCH] Track changes in the signature parser --- 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 228b1201a5..1cf807c987 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 bfe7ceb9f3..8fcdef1a3a 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}