[latex3-commits] [l3svn] r6306 - Compare D-type/R-type delimiters with \tl_if_eq:nnTF

noreply at latex-project.org noreply at latex-project.org
Sun Nov 22 17:21:42 CET 2015


Author: bruno
Date: 2015-11-22 17:21:42 +0100 (Sun, 22 Nov 2015)
New Revision: 6306

Modified:
   trunk/l3packages/xparse/xparse.dtx
Log:
Compare D-type/R-type delimiters with \tl_if_eq:nnTF

Using \tl_if_eq:nnTF is non-expandable but slightly more
precise than \token_if_eq_meaning:NNTF if the delimiters are
not characters but are control sequences (who would do this??).


Modified: trunk/l3packages/xparse/xparse.dtx
===================================================================
--- trunk/l3packages/xparse/xparse.dtx	2015-11-22 15:56:10 UTC (rev 6305)
+++ trunk/l3packages/xparse/xparse.dtx	2015-11-22 16:21:42 UTC (rev 6306)
@@ -1540,7 +1540,8 @@
 %   As \texttt{m} arguments are simply counted, there is a need to add
 %   them to the token register in a block. As this function can only
 %   be called if something other than \texttt{m} turns up, the flag can
-%   be switched here. The total number of mandatory arguments added to
+%   be switched here. The total number of mandatory arguments which
+%   remain to be added to
 %   the signature is also decreased by the appropriate amount.
 %    \begin{macrocode}
 \cs_new_protected_nopar:Npn \@@_flush_m_args:
@@ -1648,7 +1649,7 @@
   }
 \cs_new_protected:Npn \@@_add_expandable_type_D:w #1#2
   {
-    \token_if_eq_meaning:NNTF #1 #2
+    \tl_if_eq:nnTF {#1} {#2}
       {
         \@@_add_expandable_grabber_optional:n { D_alt }
         \@@_add_expandable_type_D_aux:Nn #1
@@ -1787,7 +1788,7 @@
   }
 \cs_new_protected:Npn \@@_add_expandable_type_R:w #1#2
   {
-    \token_if_eq_meaning:NNTF #1 #2
+    \tl_if_eq:nnTF {#1} {#2}
       {
         \@@_add_expandable_grabber_optional:n { R_alt }
         \@@_add_expandable_type_D_aux:Nn #1



More information about the latex3-commits mailing list