Hi,

LuaTeX hangs in the following example, it is related to the optional argument
for \startTEST.


\def\startTEST
  {\dosingleempty\dostartTEST}

\long\def\dostartTEST[#1]#2\stopTEST
  {\bgroup
   \processaction
     [#1]
     [bold=>\bf,
      italic=>\it
      unknown=>\tf]%
   #2%
   \egroup}

\def\TEST#1%
  {\startTEST#1\stopTEST}

\def\defineTEST[#1]%
  {\processbetween{#1}{\TEST}}

\defineTEST[MYTEST]

\starttext

\startMYTEST
text
\stopMYTEST

\startMYTEST[bold]
text
\stopMYTEST

\stoptext


Greetings,

Wolfgang
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

Reply via email to