summaryrefslogtreecommitdiff
path: root/src/json
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2018-11-19 13:53:29 +0800
committer最萌小汐 <sumneko@hotmail.com>2018-11-19 13:53:29 +0800
commitedde29d07854ab60588f2236674b087ea699760a (patch)
tree734611a33967fa37a401ae58001a32af08aa8537 /src/json
parentce07013ddc6d932289ee8ba5a01f0e2d9c169164 (diff)
downloadlua-language-server-edde29d07854ab60588f2236674b087ea699760a.zip
hello loli
Diffstat (limited to 'src/json')
-rw-r--r--src/json/decode.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/json/decode.lua b/src/json/decode.lua
index 42510cab..6a93d127 100644
--- a/src/json/decode.lua
+++ b/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'^-1 * (P',' * V'Object')^0) * V'Spnl' * P'}'^-1 * V'Spnl',
- Array = V'Spnl' * '[' * V'Spnl' * Ct(V'Value'^-1 * (P',' * V'Spnl' * V'Value')^0) * V'Spnl' * P']'^-1 * V'Spnl',
+ Hash = V'Spnl' * '{' * V'Spnl' * HashTable(V'Object'^-1 * (P',' * V'Object')^0) * V'Spnl' * P'}' * V'Spnl',
+ Array = V'Spnl' * '[' * V'Spnl' * Ct(V'Value'^-1 * (P',' * V'Spnl' * V'Value')^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',