[latex3-commits] [git/LaTeX3-latex3-latex3] peek-regex: Minor code cleanup in l3regex (min_pos) (939d60a9b)

Joseph Wright joseph.wright at morningstar2.co.uk
Thu Dec 3 16:44:56 CET 2020


Repository : https://github.com/latex3/latex3
On branch  : peek-regex
Link       : https://github.com/latex3/latex3/commit/939d60a9ba16ede9d9bd32cad19d0817513cc135

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

commit 939d60a9ba16ede9d9bd32cad19d0817513cc135
Author: Bruno Le Floch <blflatex at gmail.com>
Date:   Mon Jul 20 01:12:53 2020 +0200

    Minor code cleanup in l3regex (min_pos)


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

939d60a9ba16ede9d9bd32cad19d0817513cc135
 l3kernel/l3regex.dtx | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/l3kernel/l3regex.dtx b/l3kernel/l3regex.dtx
index 4c7d33e80..98088779a 100644
--- a/l3kernel/l3regex.dtx
+++ b/l3kernel/l3regex.dtx
@@ -4643,7 +4643,6 @@
 %    \begin{macrocode}
 \cs_new_protected:Npn \@@_match:n #1
   {
-    \int_set:Nn \l_@@_min_pos_int { 2 }
     \@@_match_init:
     \@@_match_once_init:
     \tl_analysis_map_inline:nn {#1}
@@ -4653,7 +4652,6 @@
   }
 \cs_new_protected:Npn \@@_match_cs:n #1
   {
-    \int_set:Nn \l_@@_min_pos_int { 2 }
     \int_set_eq:NN \l_@@_min_thread_int \l_@@_max_thread_int
     \@@_match_init:
     \@@_match_once_init:
@@ -4676,6 +4674,7 @@
           \g_@@_state_active_intarray {##1} { 1 }
       }
     \int_zero:N \l_@@_step_int
+    \int_set:Nn \l_@@_min_pos_int { 2 }
     \int_set_eq:NN \l_@@_success_pos_int \l_@@_min_pos_int
     \int_set:Nn \l_@@_last_char_success_int { -2 }
     \tl_build_begin:N \l_@@_matched_analysis_tl





More information about the latex3-commits mailing list.