summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/l3packages/xparse.dtx
diff options
context:
space:
mode:
Diffstat (limited to 'macros/latex/contrib/l3packages/xparse.dtx')
-rw-r--r--macros/latex/contrib/l3packages/xparse.dtx100
1 files changed, 45 insertions, 55 deletions
diff --git a/macros/latex/contrib/l3packages/xparse.dtx b/macros/latex/contrib/l3packages/xparse.dtx
index c700434903..fe2df64f5f 100644
--- a/macros/latex/contrib/l3packages/xparse.dtx
+++ b/macros/latex/contrib/l3packages/xparse.dtx
@@ -67,7 +67,7 @@
% }^^A
% }
%
-% \date{Released 2020-05-14}
+% \date{Released 2020-05-15}
%
% \maketitle
%
@@ -975,25 +975,16 @@
%
% \begin{macrocode}
%<*2ekernel>
-% \end{macrocode}
-%
-% \begin{macrocode}
\everyjob\expandafter{\the\everyjob
\message{xparse <2020-03-03>}%
}
\ExplSyntaxOn
-% \end{macrocode}
-%
-% \begin{macrocode}
%</2ekernel>
% \end{macrocode}
%
% \begin{macrocode}
%<*package>
-% \end{macrocode}
-%
-% \begin{macrocode}
-\ProvidesExplPackage{xparse}{2020-05-14}{}
+\ProvidesExplPackage{xparse}{2020-05-15}{}
{L3 Experimental document command parser}
% \end{macrocode}
%
@@ -1015,12 +1006,22 @@
\keys_set:nV { xparse } \l_@@_options_clist
\bool_if:NF \l_@@_log_bool
{ \msg_redirect_module:nnn { LaTeX / xparse } { info } { none } }
+%</package>
% \end{macrocode}
% \end{variable}
% \end{variable}
%
+% \subsection{Catcode regime check}
+%
% \begin{macrocode}
-%</package>
+%<*core>
+\if_charcode:w xx
+ \cs_gset:Npn \@@_file_end_hook: { }
+\else
+ \ExplSyntaxOn
+ \cs_gset:Npn \@@_file_end_hook: { \ExplSyntaxOff }
+\fi:
+%</core>
% \end{macrocode}
%
% \subsection{Reload check}
@@ -1043,7 +1044,7 @@
% \subsection{Variables and constants}
%
% \begin{macrocode}
-%<*!package>
+%<*core|initex>
% \end{macrocode}
%
% \begin{variable}{\c_@@_special_chars_seq}
@@ -1058,17 +1059,6 @@
% \end{macrocode}
% \end{variable}
%
-% \begin{macrocode}
-%<*core>
-\if_charcode:w xx
- \cs_new:Npn \@@_file_end_hook: { }
-\else
- \ExplSyntaxOn
- \cs_new:Npn \@@_file_end_hook: { \ExplSyntaxOff }
-\fi:
-%</core>
-% \end{macrocode}
-%
% \begin{variable}{\l_@@_arg_spec_tl}
% Holds the argument specification after normalization of shorthands.
% \begin{macrocode}
@@ -1923,7 +1913,7 @@
\@@_bad_def:wn
}
}
-%</!package>
+%</core|initex>
%<*package>
\cs_gset_protected:Npn \@@_normalize_arg_spec_loop:n #1
{
@@ -1937,7 +1927,7 @@
}
}
%</package>
-%<*!package>
+%<*core|initex>
% \end{macrocode}
% \end{macro}
% \end{macro}
@@ -1984,12 +1974,12 @@
{ \@@_normalize_type_t:w * }
}
\exp_args:No \@@_tmp:w { \c_novalue_tl }
-%</!package>
+%</core|initex>
%<*package>
\cs_new_protected:Npx \@@_normalize_type_g:w
{ \exp_not:N \@@_normalize_type_G:w { \exp_not:V \c_novalue_tl } }
%</package>
-%<*!package>
+%<*core|initex>
% \end{macrocode}
% \end{macro}
%
@@ -2103,7 +2093,7 @@
\@@_normalize_E_unique_check:w #2 \q_stop
}
}
-%</!package>
+%</core|initex>
%<*package>
\cs_new_protected:Npn \@@_normalize_type_G:w #1
{
@@ -2114,7 +2104,7 @@
\@@_normalize_arg_spec_loop:n
}
%</package>
-%<*!package>
+%<*core|initex>
\cs_new_protected:Npn \@@_normalize_type_t:w #1
{
\quark_if_recursion_tail_stop_do:Nn #1 { \@@_bad_arg_spec:wn }
@@ -2151,7 +2141,7 @@
% \cs{l_@@_arg_spec_tl}, count the mandatory argument, and empty the
% list of last delimiters.
% \begin{macrocode}
-%</!package>
+%</core|initex>
%<*package>
\cs_new_protected:Npn \@@_normalize_type_l:w
{
@@ -2160,7 +2150,7 @@
\@@_normalize_arg_spec_loop:n
}
%</package>
-%<*!package>
+%<*core|initex>
\cs_new_protected:Npn \@@_normalize_type_m:w
{
\@@_delimiter_check:nnn { } { m } { \iow_char:N \{ }
@@ -2177,7 +2167,7 @@
\@@_add_arg_spec_mandatory:n { R #1 #2 {#3} }
\@@_normalize_arg_spec_loop:n
}
-%</!package>
+%</core|initex>
%<*package>
\cs_new_protected:Npn \@@_normalize_type_u:w #1
{
@@ -2187,7 +2177,7 @@
\@@_normalize_arg_spec_loop:n
}
%</package>
-%<*!package>
+%<*core|initex>
\cs_new_protected:Npn \@@_normalize_type_v:w
{
\@@_normalize_check_gv:N v
@@ -2546,7 +2536,7 @@
% For the \texttt{G} type, the grabber and the default are added to the
% signature.
% \begin{macrocode}
-%</!package>
+%</core|initex>
%<*package>
\cs_new_protected:Npn \@@_add_type_G:w #1
{
@@ -2570,7 +2560,7 @@
\@@_prepare_signature:N
}
%</package>
-%<*!package>
+%<*core|initex>
% \end{macrocode}
% \end{macro}
%
@@ -2626,7 +2616,7 @@
% At the set up stage, the \texttt{u} type argument is identical to the
% \texttt{G} type except for the name of the grabber function.
% \begin{macrocode}
-%</!package>
+%</core|initex>
%<*package>
\cs_new_protected:Npn \@@_add_type_u:w #1
{
@@ -2637,7 +2627,7 @@
\@@_prepare_signature:N
}
%</package>
-%<*!package>
+%<*core|initex>
% \end{macrocode}
% \end{macro}
%
@@ -2856,12 +2846,12 @@
% parameter text ends with |#| in fact end up being delimited by an
% open brace.
% \begin{macrocode}
-%</!package>
+%</core|initex>
%<*package>
\cs_new_protected:Npn \@@_add_expandable_type_l:w
{ \@@_add_expandable_type_u:w ## }
%</package>
-%<*!package>
+%<*core|initex>
% \end{macrocode}
% \end{macro}
%
@@ -2910,7 +2900,7 @@
% Define an auxiliary that will be used directly in the signature. It
% grabs one argument delimited by |#1| and places it before \cs{q_@@}.
% \begin{macrocode}
-%</!package>
+%</core|initex>
%<*package>
\cs_new_protected:Npn \@@_add_expandable_type_u:w #1
{
@@ -2925,7 +2915,7 @@
\@@_prepare_signature:N
}
%</package>
-%<*!package>
+%<*core|initex>
% \end{macrocode}
% \end{macro}
%
@@ -3329,7 +3319,7 @@
% Optional groups are checked by meaning, so that the same code will
% work with, for example, \ConTeXt{}-like input.
% \begin{macrocode}
-%</!package>
+%</core|initex>
%<*package>
\cs_new_protected:Npn \@@_grab_G:w #1 \@@_run_code:
{
@@ -3361,7 +3351,7 @@
{ \@@_add_arg:o \c_novalue_tl }
}
%</package>
-%<*!package>
+%<*core|initex>
% \end{macrocode}
% \end{macro}
% \end{macro}
@@ -3374,7 +3364,7 @@
% \begin{macro}{\@@_grab_l_aux:nN}
% Argument grabbers for mandatory \TeX{} arguments are pretty simple.
% \begin{macrocode}
-%</!package>
+%</core|initex>
%<*package>
\cs_new_protected:Npn \@@_grab_l:w #1 \@@_run_code:
{ \@@_grab_l_aux:nN {#1} \cs_set_protected_nopar:Npn }
@@ -3388,7 +3378,7 @@
\l_@@_fn_tl
}
%</package>
-%<*!package>
+%<*core|initex>
% \end{macrocode}
% \end{macro}
% \end{macro}
@@ -3560,7 +3550,7 @@
% Grabbing up to a list of tokens is quite easy: define the grabber,
% and then collect.
% \begin{macrocode}
-%</!package>
+%</core|initex>
%<*package>
\cs_new_protected:Npn \@@_grab_u:w #1#2 \@@_run_code:
{ \@@_grab_u_aux:nnN {#1} {#2} \cs_set_protected_nopar:Npn }
@@ -3574,7 +3564,7 @@
\l_@@_fn_tl
}
%</package>
-%<*!package>
+%<*core|initex>
% \end{macrocode}
% \end{macro}
% \end{macro}
@@ -5210,16 +5200,16 @@
% \end{macro}
%
% \begin{macrocode}
-%<*2ekernel>
-\ExplSyntaxOff
-%</2ekernel>
-% \end{macrocode}
-%
-% \begin{macrocode}
%<*core>
\@@_file_end_hook:
%</core>
-%</!package>
+%</core|initex>
+% \end{macrocode}
+%
+% \begin{macrocode}
+%<*2ekernel>
+\ExplSyntaxOff
+%</2ekernel>
% \end{macrocode}
%
% \end{implementation}