mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
msgpack-gen: Fix for Lua 5.1. (#4857)
goto statement was only introduced in Lua 5.2.
This commit is contained in:
parent
568da8ef3b
commit
634d59f646
@ -64,9 +64,7 @@ for i = 1, #arg - 1 do
|
|||||||
local tmp = grammar:match(input:read('*all'))
|
local tmp = grammar:match(input:read('*all'))
|
||||||
for i = 1, #tmp do
|
for i = 1, #tmp do
|
||||||
local fn = tmp[i]
|
local fn = tmp[i]
|
||||||
if fn.noexport then
|
if not fn.noexport then
|
||||||
goto continue
|
|
||||||
end
|
|
||||||
functions[#functions + 1] = tmp[i]
|
functions[#functions + 1] = tmp[i]
|
||||||
if #fn.parameters ~= 0 and fn.parameters[1][2] == 'channel_id' then
|
if #fn.parameters ~= 0 and fn.parameters[1][2] == 'channel_id' then
|
||||||
-- this function should receive the channel id
|
-- this function should receive the channel id
|
||||||
@ -81,7 +79,7 @@ for i = 1, #arg - 1 do
|
|||||||
-- for specifying errors
|
-- for specifying errors
|
||||||
fn.parameters[#fn.parameters] = nil
|
fn.parameters[#fn.parameters] = nil
|
||||||
end
|
end
|
||||||
::continue::
|
end
|
||||||
end
|
end
|
||||||
input:close()
|
input:close()
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user