summaryrefslogtreecommitdiff
path: root/tex/context/base/syst-lua.mkiv
diff options
context:
space:
mode:
Diffstat (limited to 'tex/context/base/syst-lua.mkiv')
-rw-r--r--tex/context/base/syst-lua.mkiv5
1 files changed, 5 insertions, 0 deletions
diff --git a/tex/context/base/syst-lua.mkiv b/tex/context/base/syst-lua.mkiv
index 40cd9f756..f9be10e6d 100644
--- a/tex/context/base/syst-lua.mkiv
+++ b/tex/context/base/syst-lua.mkiv
@@ -34,4 +34,9 @@
\def\writestatus#1#2{\ctxlua{commands.writestatus(\!!bs#1\!!es,\!!bs#2\!!es)}}
+% a handy helper (we can probably omit the tex.ctxcatcodes here as nowadays we seldom
+% change the regime at the tex end
+
+\def\luaexpr#1{\ctxlua{tex.sprint(tex.ctxcatcodes,tostring(#1))}}
+
\protect \endinput