Minor typo in error message

"'Martin Eden' via lua-l" <[email protected]> Sun, 12 Jul 2026 16:36:41 +0200
Newsgroups gmane.comp.lang.lua.general
Message-ID <[email protected]>
In Lua 5.5 when you try to use string with invalid
escape sequence -- error message lacks closing quote.

For example let's try invalid escape code "\c":

 =C2=A0 Lua 5.5.0=C2=A0 Copyright (C) 1994-2025 Lua.org, PUC-Rio
 =C2=A0 > '\c'
 =C2=A0 stdin:1: invalid escape sequence near ''\c'

I believe it should end on "''\c''".

Message for invalid decimal codes is correct:

 =C2=A0 > '\999'
 =C2=A0 stdin:1: decimal escape too large near ''\999''

But not for "\999a":

 =C2=A0 > '\999a'
 =C2=A0 stdin:1: decimal escape too large near ''\999a'

-- Martin

--=20
You received this message because you are subscribed to the Google Groups "=
lua-l" group.
To unsubscribe from this group and stop receiving emails from it, send an e=
mail to [email protected].
To view this discussion visit https://groups.google.com/d/msgid/lua-l/985c2=
6ae-11c1-4d17-b513-f939c1eac07d%40disroot.org.