diff options
Diffstat (limited to 'tex/context/base/luat-ini.tex')
-rw-r--r-- | tex/context/base/luat-ini.tex | 22 |
1 files changed, 10 insertions, 12 deletions
diff --git a/tex/context/base/luat-ini.tex b/tex/context/base/luat-ini.tex index 800950baf..3b0a61e62 100644 --- a/tex/context/base/luat-ini.tex +++ b/tex/context/base/luat-ini.tex @@ -41,27 +41,25 @@ %D A few more goodies: -\def\dostartlua#1% +\long\def\dostartlua#1% {\begingroup \obeylualines - \directlua#1\iftrue{\else}\fi} + \dodostartlua{#1}} -\def\dostoplua - {\iffalse{\else}\fi - \endgroup} +\long\def\dodostartlua#1#2\stoplua + {\expanded{\endgroup\noexpand\directlua#1{#2}}} -\def\dostartluacode#1% +\long\def\dostartluacode#1% {\begingroup \obeylualines \obeyluatokens - \directlua#1\iftrue{\else}\fi} + \dodostartluacode{#1}} -\def\dostopluacode % no unexpanded, else no } seen - {\iffalse{\else}\fi - \endgroup} +\long\def\dodostartluacode#1#2\stopluacode + {\expanded{\endgroup\noexpand\directlua#1{#2}}} -\def\startlua {\dostartlua \zerocount} \def\stoplua {\dostoplua} -\def\startluacode{\dostartluacode\zerocount} \def\stopluacode {\dostopluacode} +\def\startlua {\dostartlua \zerocount} +\def\startluacode{\dostartluacode\zerocount} %D Some delayed definitions: |