String escapes using 5.2/5.3 syntax features in Lua REPL cause confusing error
Kan18 opened this issue ยท 0 comments
Minecraft Version
1.19.x
Version
1.103.1 (SwitchCraft)
Details
If string escapes from Lua 5.2/5.3, such as `\u` or `\x`, are used in a way where they error inside the Lua REPL, the error message beautifier will itself error, obscuring the original error message.Reproduction steps:
- Enter
lua
REPL - Type
print("\u")
- Observe confusing error
Expected behavior:
Either the original error should be kept, or the parser should catch this and give a descriptive message