diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2019-03-28 16:06:51 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2019-03-28 16:06:51 +0800 |
commit | 562744ae38206dcd380c2ac50433c912a4923a83 (patch) | |
tree | a93d35e490477ff63101187c797c2a2bed93f881 /server | |
parent | e7bd33ff213afb6f4d6d666d215107651ab27a1a (diff) | |
download | lua-language-server-562744ae38206dcd380c2ac50433c912a4923a83.zip |
修正json解析的bug
Diffstat (limited to 'server')
-rw-r--r-- | server/src/json/decode.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/server/src/json/decode.lua b/server/src/json/decode.lua index fcc40de5..c692d4d3 100644 --- a/server/src/json/decode.lua +++ b/server/src/json/decode.lua @@ -110,8 +110,8 @@ local Token = P String = '"' * Cs(V'Char'^0) * '"', Char = V'Esc' + (1 - P'"' - P'\t' - V'Nl'), Esc = P'\\' * C(S'tnr"\\') / EscMap, - Hash = V'Spnl' * '{' * V'Spnl' * HashTable((V'Object' + P',')^0) * V'Spnl' * P'}' * V'Spnl', - Array = V'Spnl' * '[' * V'Spnl' * Ct((V'Value' + P',')^0) * V'Spnl' * P']' * V'Spnl', + Hash = V'Spnl' * '{' * V'Spnl' * HashTable((V'Object' + P',' * V'Spnl')^0) * V'Spnl' * P'}' * V'Spnl', + Array = V'Spnl' * '[' * V'Spnl' * Ct((V'Value' * V'Spnl' + P',' * V'Spnl')^0) * V'Spnl' * P']' * V'Spnl', Object = V'Spnl' * V'Key' * V'Spnl' * V'Value' * V'Spnl', Key = V'String' * V'Spnl' * ':', Value = V'Hash' + V'Array' + V'Bool' + V'Null' + V'String' + V'Float' + V'Int', |