[latex3-commits] [git/LaTeX3-latex3-latex3] main: Make token_create alias for token.create available for all expl3 code (90b214812)

Marcel Fabian Krüger tex at 2krueger.de
Mon Nov 15 15:40:40 CET 2021


Repository : https://github.com/latex3/latex3
On branch  : main
Link       : https://github.com/latex3/latex3/commit/90b214812da8b0f97fddbb91a7a16222d5ff346f

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

commit 90b214812da8b0f97fddbb91a7a16222d5ff346f
Author: Marcel Fabian Krüger <tex at 2krueger.de>
Date:   Fri Nov 12 19:54:25 2021 +0100

    Make token_create alias for token.create available for all expl3 code


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

90b214812da8b0f97fddbb91a7a16222d5ff346f
 l3kernel/l3luatex.dtx | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/l3kernel/l3luatex.dtx b/l3kernel/l3luatex.dtx
index ac63d0f89..36ddf3995 100644
--- a/l3kernel/l3luatex.dtx
+++ b/l3kernel/l3luatex.dtx
@@ -370,9 +370,10 @@ local scan_int     = token.scan_int or token.scan_integer
 local scan_string  = token.scan_string
 local scan_keyword = token.scan_keyword
 local put_next     = token.put_next
+local token_create = token.create
 
-local true_tok     = token.create'prg_return_true:'
-local false_tok    = token.create'prg_return_false:'
+local true_tok     = token_create'prg_return_true:'
+local false_tok    = token_create'prg_return_false:'
 %    \end{macrocode}
 %
 %    \begin{macrocode}
@@ -642,7 +643,6 @@ end)
 % a function instead of an index into the functions table.
 %    \begin{macrocode}
 local luacmd do
-  local token_create = token.create
   local set_lua = token.set_lua
   local undefined_cs = token.command_id'undefined_cs'
 
@@ -665,7 +665,7 @@ local luacmd do
     local register = context.functions.register
     local functions = context.functions.known
     function luacmd(name, func, ...)
-      local tok = token.create(name)
+      local tok = token_create(name)
       if tok.command == undefined_cs then
         token.set_lua(name, register(func), ...)
       else





More information about the latex3-commits mailing list.