This can be broken down into two separate issues: the one is that the current version of microtype isn't aware of \lstMakeShortInline, which will result in the infinite loop in connection with luatexja. This has now been fixed in the dev version: https://github.com/schlcht/microtype/commit/c0f401d5c206e352fb6b7d191b0728ad00275013
A second issue is with luatexja only, if \lstMakeShortInline is issued before loading the package:
which will result in a Runaway argument error.
Thanks for the report, and sorry for the late reply.
I think that commit c2d8b32b will solve the issue. (The new version of lltjp-listings.sty is attached below.)
Répondre à h7k
Thanks for the report, and sorry for the late reply.
You're welcome, and no worry about the late reply!
I think that commit c2d8b32b will solve the issue.
Many thanks!
(The new version of lltjp-listings.sty is attached below.)
AFAICS, replacing the current /usr/local/texlive/2021/texmf-dist/tex/luatex/luatexja/patches/lltjp-listings.sty by the one you attached still raises the same error.
The following MCE example:
compiled with lualatex, works like a charm. But, if the ! character is replaced by e.g. ÷, it doesn't work anymore. Depending where the instruction \lstMakeShortInline÷ is, either !\foo! or \fontspec{Latin Modern Roman}\char"03A9 causes the failure.
As advised at https://tex.stackexchange.com/q/644665/18401 by Ulrike Fischer, I report here.