CC: Tweaked

CC: Tweaked

57M Downloads

String escapes using 5.2/5.3 syntax features in Lua REPL cause confusing error

Kan18 opened this issue ยท 0 comments

commented

Minecraft Version

1.19.x

Version

1.103.1 (SwitchCraft)

Details

image

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:

  1. Enter lua REPL
  2. Type print("\u")
  3. Observe confusing error

Expected behavior:
Either the original error should be kept, or the parser should catch this and give a descriptive message