On Tue, Feb 23, 2021 at 9:15 AM Petr Olsak <olsak@fit.cvut.cz> wrote:
Suppose:

-----------------------------------------

\tracingscantokens=1

\scantextokens{first}

\scantextokens{second}

\bye

-----------------------------------------

and run luatex test.

Then the ( and ) are logged curiously: ( ( ... ))  Why all closing ))
are logged after end command?

If we change \scantextokens to \scantokens, then ( and ) behaves more
logical in log file and in the terminal: ( ) ( ).

Petr Olsak

confirmed, we will see if we can fix it for the upcoming texlive. 

--
luigi