On 2026-07-12 21:27, Roberto Ierusalimschy wrote:
> The closing quote is not part of the invalid escape sequence, why it
> must be in the error message? Note that the closing quote can be
> quite far away, or it may not even exist:
>
> [...]
>
> Lua stops reading as soon as it finds an error.
Thank you for clarification, Roberto.
Now I understood that error message is from lexer
which just prints single quote, read buffer contents, single quote.
Was distracted by single quotes in my case.
> "kinda long too\999a"
stdin:1: decimal escape too large near '"kinda long too\999a'
-- Martin