diff options
Diffstat (limited to 'tex/context/base/luat-usr.mkiv')
-rw-r--r-- | tex/context/base/luat-usr.mkiv | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/tex/context/base/luat-usr.mkiv b/tex/context/base/luat-usr.mkiv index 648a806af..92d40010c 100644 --- a/tex/context/base/luat-usr.mkiv +++ b/tex/context/base/luat-usr.mkiv @@ -17,6 +17,24 @@ \registerctxluafile{luat-usr}{1.001} +%D A few goodies: +%D +%D \startbuffer +%D \luascript { context("foo 1:") context(i) } +%D \luathread {test} { i = 10 context("bar 1:") context(i) } +%D \luathread {test} { context("bar 2:") context(i) } +%D \luathread {test} {} +%D \luathread {test} { context("bar 3:") context(i) } +%D \luascript { context("foo 2:") context(i) } +%D \stopbuffer +%D +%D \typebuffer \startlines \getbuffer \stoplines + +\let\luascript \clf_luascript +\let\luathread \clf_luathread +%let\clfscanner\clf_clfscanner +%def\clfscanner#1{\csname clf_#1\endcsname} + %D \macros %D {definenamedlua} %D |