diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2019-11-13 17:50:34 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2019-11-13 17:50:34 +0800 |
commit | f7e1257c803ecbdddf7d6b93be02fc45678b6a28 (patch) | |
tree | 0e243035b049579b37b5e0ebfa79f07576b4a8f5 /server-beta/src/json/decode.lua | |
parent | 721fa266d37caad9dbcd60126816f9d85cef9b1e (diff) | |
download | lua-language-server-f7e1257c803ecbdddf7d6b93be02fc45678b6a28.zip |
fix #106 json解析支持注释
Diffstat (limited to 'server-beta/src/json/decode.lua')
-rw-r--r-- | server-beta/src/json/decode.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/server-beta/src/json/decode.lua b/server-beta/src/json/decode.lua index 9129d92f..36f8aa54 100644 --- a/server-beta/src/json/decode.lua +++ b/server-beta/src/json/decode.lua @@ -123,7 +123,7 @@ local Token = P { V'Value' * Cp(), Nl = P'\r\n' + S'\r\n', - Sp = S' \t', + Sp = S' \t' + '//' * (1-V'Nl')^0, Spnl = (V'Sp' + V'Nl')^0, Bool = C(P'true' + P'false') / BoolMap, Int = C('0' + (P'-'^-1 * R'19' * R'09'^0)) / tointeger, |