[latex3-commits] [git/LaTeX3-latex3-latex3] gh839: No longer need \group_align_safe_begin: for verbatim (23048cce0)
PhelypeOleinik
phelype.oleinik at latex-project.org
Wed Jan 13 02:30:32 CET 2021
Repository : https://github.com/latex3/latex3
On branch : gh839
Link : https://github.com/latex3/latex3/commit/23048cce01ec663914026522d74da1e7d2d9d759
>---------------------------------------------------------------
commit 23048cce01ec663914026522d74da1e7d2d9d759
Author: PhelypeOleinik <phelype.oleinik at latex-project.org>
Date: Tue Jan 12 22:30:32 2021 -0300
No longer need \group_align_safe_begin: for verbatim
The full xparse command is alignment-safe now
>---------------------------------------------------------------
23048cce01ec663914026522d74da1e7d2d9d759
l3packages/xparse/xparse.dtx | 36 ++++++++++++++++++------------------
1 file changed, 18 insertions(+), 18 deletions(-)
diff --git a/l3packages/xparse/xparse.dtx b/l3packages/xparse/xparse.dtx
index a4ef444b8..549f35b7b 100644
--- a/l3packages/xparse/xparse.dtx
+++ b/l3packages/xparse/xparse.dtx
@@ -3571,7 +3571,9 @@
%
% The group keep catcode changes local, and
% \cs{group_align_safe_begin/end:} allow to use a character
-% with category code~$4$ (normally |&|) as the delimiter.
+% with category code~$4$ (normally |&|) as the delimiter (all commands
+% do \cs{group_align_safe_begin/end:}, so there's no need to do that
+% again here).
% It is ended by \cs{@@_grab_v_group_end:}, which smuggles
% the collected argument out of the group.
% \begin{macrocode}
@@ -3590,26 +3592,24 @@
{
\tl_set:Nn \l_@@_signature_tl {#1}
\group_begin:
- \group_align_safe_begin:
- \tex_escapechar:D = 92 \scan_stop:
- \tl_clear:N \l_@@_v_arg_tl
- \peek_remove_spaces:n
- {
- \peek_meaning_remove:NTF \c_group_begin_token
- {
- \group_align_safe_end:
- \@@_grab_v_bgroup:
- }
- {
- \peek_N_type:TF
- { \@@_grab_v_aux_test:N }
- { \@@_grab_v_aux_abort:n { } }
- }
- }
+ \tex_escapechar:D = 92 \scan_stop:
+ \tl_clear:N \l_@@_v_arg_tl
+ \peek_remove_spaces:n
+ {
+ \peek_meaning_remove:NTF \c_group_begin_token
+ {
+ \group_align_safe_end:
+ \@@_grab_v_bgroup:
+ }
+ {
+ \peek_N_type:TF
+ { \@@_grab_v_aux_test:N }
+ { \@@_grab_v_aux_abort:n { } }
+ }
+ }
}
\cs_new_protected:Npn \@@_grab_v_group_end:
{
- \group_align_safe_end:
\exp_args:NNNo
\group_end:
\tl_set:Nn \l_@@_v_arg_tl { \l_@@_v_arg_tl }
More information about the latex3-commits
mailing list.