josephwright / etoolbox

Tool-box for LaTeX programmers using e-TeX
LaTeX Project Public License v1.3c
41 stars 7 forks source link

infinite loop with list parser with empty separator #21

Closed u-fischer closed 6 years ago

u-fischer commented 6 years ago

I'm sorry but there seems still to be an infinite loop in the listparser commands. I tested this with the version etoolbox 2018/02/10 v2.5d e-TeX tools for LaTeX (JAW) which I downloaded from github.

\documentclass{article}
\usepackage{etoolbox}
\DeclareListParser*\foo{}
\def\punctuationlist{}%
\foo{\listadd\punctuationlist}{;.}
\begin{document}
Hello world!
\end{document}

The commands are from cnlt-base.sty.