Invalid escape sequences in string literals not raising errors (e.g. \q) #122
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Hi,
I noticed that luaj does not throw an error for invalid string escape sequences.
Example:
local s = "bad\qescape"
print(s)
Expected behavior (based on standard Lua):
The parser should raise an error for invalid escape sequences like \q.
Actual behavior in luaj:
No error is thrown. The escape sequence is silently treated as a literal character.
Fixed