diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2019-03-28 14:57:22 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2019-03-28 14:57:22 +0800 |
commit | 2a5d1448e745355a8e7b0ac837193b781784e5b1 (patch) | |
tree | 01c689ecdfb84beca66e19cff4bc847f3955c50c /server/src/json | |
parent | a6af19e85b8209043bd0cb62ba3bfae92e82badb (diff) | |
download | lua-language-server-2a5d1448e745355a8e7b0ac837193b781784e5b1.zip |
清除后置空格
Diffstat (limited to 'server/src/json')
-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 aebd49ca..fcc40de5 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'^-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', + 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', 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', |