aboutsummaryrefslogtreecommitdiff
path: root/scripts/msgpack-gen.lua
diff options
context:
space:
mode:
authorThiago de Arruda <tpadilha84@gmail.com>2016-04-13 09:24:29 -0300
committerThiago de Arruda <tpadilha84@gmail.com>2016-04-13 09:24:29 -0300
commit982198143d3a6f5e9e4880b37206db6fbcb05c7c (patch)
treeb85f5789efce5713b5e5f05b27fda6166afb17c3 /scripts/msgpack-gen.lua
parentf47a20a266f89be31e20f727de59708759795345 (diff)
parentc18d5917e3442162f20eb9e95ba4bcffbbd8408b (diff)
downloadrneovim-982198143d3a6f5e9e4880b37206db6fbcb05c7c.tar.gz
rneovim-982198143d3a6f5e9e4880b37206db6fbcb05c7c.tar.bz2
rneovim-982198143d3a6f5e9e4880b37206db6fbcb05c7c.zip
Merge PR #4398 'Update lua client'
Diffstat (limited to 'scripts/msgpack-gen.lua')
-rw-r--r--scripts/msgpack-gen.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/msgpack-gen.lua b/scripts/msgpack-gen.lua
index d50ebd85a2..c726db3920 100644
--- a/scripts/msgpack-gen.lua
+++ b/scripts/msgpack-gen.lua
@@ -1,5 +1,5 @@
lpeg = require('lpeg')
-msgpack = require('MessagePack')
+mpack = require('mpack')
-- lpeg grammar for building api metadata from a set of header files. It
-- ignores comments and preprocessor commands and parses a very small subset
@@ -115,7 +115,7 @@ static const uint8_t msgpack_metadata[] = {
]])
-- serialize the API metadata using msgpack and embed into the resulting
-- binary for easy querying by clients
-packed = msgpack.pack(functions)
+packed = mpack.pack(functions)
for i = 1, #packed do
output:write(string.byte(packed, i)..', ')
if i % 10 == 0 then