moonsharp
moonsharp copied to clipboard
JSON parse error for "\/"
The "tiled" editor creates a JSON file like this:
"source":"..\/..\/desert.tsx"
This results in a parse error. According to Wikipedia (https://en.wikipedia.org/wiki/JSON) it should be valid: "For example, escaping a slash (/) with a backslash () is valid in JSON". This would fix it in LexerUtils.cs#UnescapeLuaString:
else if (c == '/') { sb.Append('/'); escape = false; }
This has since been fixed in commit 714c265.