1
0
mirror of https://github.com/SquidDev-CC/CC-Tweaked synced 2025-08-30 00:57:55 +00:00

Update Patchwork, Handle Tabs when Parsing Json

This commit is contained in:
Merith-TK
2021-02-22 01:23:39 -08:00
parent 63cd9c5bc7
commit 4643641d51
2 changed files with 10 additions and 3 deletions

View File

@@ -8,7 +8,8 @@ Title // Commit Title
SubScript // Desc of commit
```
If a edit that is present in CC:T is not needed, i will skip over it
If a edit that is present in CC:T is not needed, I will skip over it.
Any and all references to an issue number, are to be found on CC:T's repo. not this oen
```md
5155e18de279a193c558aa029963486fd1294769
@@ -21,4 +22,10 @@ Co-authored-by: Boom <boom@flyingpackets.net>
ae6124d1f477487abab1858abde8c4ec49dfee3c
Translations for Vienamese
Co-authored-by: Boom <boom@flyingpackets.net>
```
```
59de21eae29849988e77fad6bc335f5ce78dfec7
Handle tabs when parsing JSON
Fixes #539
```

View File

@@ -432,7 +432,7 @@ do
--- Skip any whitespace
local function skip(str, pos)
local _, last = find(str, "^[ \n\r\v]+", pos)
local _, last = find(str, "^[ \n\r\t]+", pos)
if last then return last + 1 else return pos end
end
@@ -472,7 +472,7 @@ do
buf[n], n, pos = utf8.char(tonumber(num_str, 16)), n + 1, pos + 6
else
local unesc = escapes[c]
if not unesc then error_at(pos + 1, "Unknown escape character %q.", unesc) end
if not unesc then error_at(pos + 1, "Unknown escape character %q.", c) end
buf[n], n, pos = unesc, n + 1, pos + 2
end
elseif c >= '\x20' then