[latex3-commits] [git/LaTeX3-latex3-latex3] peek-refactor: Document \peek_remove_spaces:n (ebd862fc0)
Joseph Wright
joseph.wright at morningstar2.co.uk
Mon Jan 10 09:15:57 CET 2022
Repository : https://github.com/latex3/latex3
On branch : peek-refactor
Link : https://github.com/latex3/latex3/commit/ebd862fc027566151ab49edd9d1b8fa007e01090
>---------------------------------------------------------------
commit ebd862fc027566151ab49edd9d1b8fa007e01090
Author: Joseph Wright <joseph.wright at morningstar2.co.uk>
Date: Mon Jan 10 08:15:57 2022 +0000
Document \peek_remove_spaces:n
>---------------------------------------------------------------
ebd862fc027566151ab49edd9d1b8fa007e01090
l3kernel/l3token.dtx | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/l3kernel/l3token.dtx b/l3kernel/l3token.dtx
index b7977637a..6c71960d9 100644
--- a/l3kernel/l3token.dtx
+++ b/l3kernel/l3token.dtx
@@ -904,6 +904,16 @@
% appropriate to the result of the test).
% \end{function}
%
+% \begin{function}[added = 2018-10-01]{\peek_remove_spaces:n}
+% \begin{syntax}
+% \cs{peek_remove_spaces:n} \Arg{code}
+% \end{syntax}
+% Peeks ahead and detect if the following token is a space (category code
+% $10$ and character code $32). If so, removes the token and checks the
+% next token. Once a non-space token is found, the \meta{code} will be
+% inserted into the input stream. Typically this will contain a \texttt{peek}
+% operation, but this is not required.
+% \end{function}
%
% \begin{function}[added = 2022-01-10]{\peek_remove_filler:n}
% \begin{syntax}
More information about the latex3-commits
mailing list.