Hi Hans,
there is a @ missing for the style and color parameters.
\def\docomplextextrule#1%
{\bgroup
\advance\hsize\dimexpr-\rightskip-\leftskip\relax
\setbox\scratchbox\hbox to \hsize
{\dimen4\dimexpr .5ex+.5\linewidth\relax
\dimen6\dimexpr-.5ex+.5\linewidth\relax
\doifsomething{#1}
{\doifelse\@@tllocation\v!inmargin
{\llap
{\dousestyleparameter\@@tlstyle
\dousecolorparameter\@@tlcolor
#1%
\hskip\leftmargindistance}}
{\color[\@@tlrulecolor]
{\vrule\!!height\dimen4\!!depth\dimen6\!!width\@@tlwidth}%
\hbox spread 2\dimexpr\@@tldistance\relax
{\hss
- \dousestyleparameter\@tlstyle
+ \dousestyleparameter\@@tlstyle
- \dousecolorparameter\@tlcolor
+ \dousecolorparameter\@@tlcolor
\strut#1%
\hss}}}%
\color[\@@tlrulecolor]
{\leaders\hrule\!!height\dimen4\!!depth\dimen6\hfill}}%
\ht\scratchbox\strutht
\dp\scratchbox\strutdp
\noindent\box\scratchbox
%\nobreak\verticalstrut\kern-\struttotal
% evt \witruimte
\egroup}
Wolfgang