aboutsummaryrefslogtreecommitdiff
path: root/parser.lua
diff options
context:
space:
mode:
authorFlorian Fischer <florian.fischer@muhq.space>2021-08-29 12:09:29 +0200
committerFlorian Fischer <florian.fischer@muhq.space>2021-08-29 12:14:12 +0200
commit6549f12af82dcf3fc204a0e2e5caf60acc7af477 (patch)
tree534206bfe72796487445ac080cc66883a29de6cf /parser.lua
parent86ec0a64964a9b8afd73d65b5156648b0d9d564e (diff)
downloadvis-lspc-6549f12af82dcf3fc204a0e2e5caf60acc7af477.tar.gz
vis-lspc-6549f12af82dcf3fc204a0e2e5caf60acc7af477.zip
do not use lspc.log before lspc is initialized
Diffstat (limited to 'parser.lua')
-rw-r--r--parser.lua2
1 files changed, 0 insertions, 2 deletions
diff --git a/parser.lua b/parser.lua
index f1b09f5..9dffb43 100644
--- a/parser.lua
+++ b/parser.lua
@@ -1,11 +1,9 @@
-- Copyright (c) 2021 Florian Fischer. All rights reserved.
-- Use of this source code is governed by a MIT license found in the LICENSE file.
-
-- Parse the data send by a language server
-- Note the chunks received may not end with the end of a message.
-- In the worst case a data chunk contains two partial messages on at the beginning
-- and one at the end
-
local function add(p, data)
p.data = p.data .. data