Ikumi Keita <ik...@ikumi.que.jp> wrote: > >>>>> Andreas Matthias <andreas.matth...@gmail.com> writes: > > Here are the functions that generate the warnings. > > pdfTeX: > > < > > > https://github.com/TeX-Live/texlive-source/blob/trunk/texk/web2c/pdftexdir/pdftex.web#L15627-L15643 > > > > > > luaTeX: > > < > > > https://github.com/TeX-Live/texlive-source/blob/trunk/texk/web2c/luatexdir/tex/errors.c#L988-L1040 > >> > > > Andreas > > Thanks. It's hard for me to tell how the LuaTeX warning begins, so my > tentative plan is to support only pdfTeX warnings. I hope the attached > patch does the expected job. >
AFAIU TeX-warnings of LuaTeX look like "warning (<type>):" * They have no prefix like "pdfTeX". * <type> may contain spaces, e.g. "pdf backend". * There are 2 spaces after "warning" The following regexp find LuaTeX's TeX-warnings: "\\(?:LaTeX\\|Class\\|Package\\|pdfTeX\\|\\*\\)? ?[-A-Za-z0-9]* ?[Ww]arning\\(?: +([- A-Za-z0-9]+)\\)?:" Andreas