[latex3-commits] [git/LaTeX3-latex3-latex3] master: Fix a missing error message (6dff1450d)
Joseph Wright
joseph.wright at morningstar2.co.uk
Tue Feb 16 15:53:39 CET 2021
Repository : https://github.com/latex3/latex3
On branch : master
Link : https://github.com/latex3/latex3/commit/6dff1450d6623796bf33b5f1730038c30434db8d
>---------------------------------------------------------------
commit 6dff1450d6623796bf33b5f1730038c30434db8d
Author: Joseph Wright <joseph.wright at morningstar2.co.uk>
Date: Tue Feb 16 14:53:39 2021 +0000
Fix a missing error message
>---------------------------------------------------------------
6dff1450d6623796bf33b5f1730038c30434db8d
l3kernel/l3regex.dtx | 7 +++++++
l3kernel/testfiles/m3regex009.tlg | 4 ++--
2 files changed, 9 insertions(+), 2 deletions(-)
diff --git a/l3kernel/l3regex.dtx b/l3kernel/l3regex.dtx
index c26c8c0dd..21c528abe 100644
--- a/l3kernel/l3regex.dtx
+++ b/l3kernel/l3regex.dtx
@@ -7033,6 +7033,13 @@
}
% \end{macrocode}
%
+% Some escaped alphanumerics are not allowed everywhere.
+% \begin{macrocode}
+\__kernel_msg_new:nnnn { kernel } { backwards-quantifier }
+ { Quantifer~"{#1,#2}"~is~backwards. }
+ { The~values~given~in~a~quantifier~must~be~in~order. }
+% \end{macrocode}
+%
% Used when showing a regex.
% \begin{macrocode}
\__kernel_msg_new:nnn { kernel } { show-regex }
diff --git a/l3kernel/testfiles/m3regex009.tlg b/l3kernel/testfiles/m3regex009.tlg
index 2624c8c72..9d335ccd3 100644
--- a/l3kernel/testfiles/m3regex009.tlg
+++ b/l3kernel/testfiles/m3regex009.tlg
@@ -177,11 +177,11 @@ LaTeX3 Warning: Braced quantifier '{1' may not be followed by 'x'.
"x{1,3"
LaTeX3 Warning: Braced quantifier '{1,3' may not be followed by ''.
"x{3,1}"
-! LaTeX3 Error: \msg text > LaTeX/kernel/backwards-quantifier {3}{1}{}{}
+! LaTeX3 Error: Quantifer "{3,1}" is backwards.
For immediate help type H <return>.
...
l. ... }
-\msg extra text > LaTeX/kernel/backwards-quantifier {3}{1}{}{}
+The values given in a quantifier must be in order.
"x{0,0}"
"x{1,3x}"
LaTeX3 Warning: Braced quantifier '{1,3' may not be followed by 'x'.
More information about the latex3-commits
mailing list.