summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/latex/expl3/l3token.dtx
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/source/latex/expl3/l3token.dtx')
-rw-r--r--Master/texmf-dist/source/latex/expl3/l3token.dtx6
1 files changed, 4 insertions, 2 deletions
diff --git a/Master/texmf-dist/source/latex/expl3/l3token.dtx b/Master/texmf-dist/source/latex/expl3/l3token.dtx
index 7d0e3110d60..3c283052e6f 100644
--- a/Master/texmf-dist/source/latex/expl3/l3token.dtx
+++ b/Master/texmf-dist/source/latex/expl3/l3token.dtx
@@ -35,7 +35,7 @@
\RequirePackage{l3names}
%</driver|package>
%\fi
-\GetIdInfo$Id: l3token.dtx 1365 2009-05-31 17:26:17Z mittelba $
+\GetIdInfo$Id: l3token.dtx 1550 2009-09-22 06:06:25Z joseph $
{L3 Experimental token investigation and manipulation}
%\iffalse
%<*driver>
@@ -1666,11 +1666,13 @@
% test for both of these and if one of them is found we just execute
% the false result directly since no one should ever try to use the
% |charcode| function for searching for |\c_group_begin_token| or
-% |\c_space_token|.
+% |\c_space_token|. The same is true for |\c_group_end_token|, as this
+% can only occur if the function is at the end of a group.
% \begin{macrocode}
\cs_new_nopar:Npn \peek_execute_branches_charcode: {
\bool_if:nTF {
\token_if_eq_catcode_p:NN \l_peek_token \c_group_begin_token ||
+ \token_if_eq_catcode_p:NN \l_peek_token \c_group_end_token ||
\token_if_eq_meaning_p:NN \l_peek_token \c_space_token
}
{ \l_peek_false_tl }