mirror of
https://github.com/neovim/neovim.git
synced 2024-12-20 03:05:11 -07:00
genvimvim.lua: fix matching functions
Fixes https://github.com/neovim/neovim/issues/5060.
This commit is contained in:
parent
09c58f721b
commit
e63c6ca8f2
@ -123,13 +123,12 @@ for line in eval_fd:lines() do
|
|||||||
if line == '};' then
|
if line == '};' then
|
||||||
break
|
break
|
||||||
end
|
end
|
||||||
local func_name = line:match('^ {"(%w+)",')
|
local func_name = line:match('^ { "([%w_]+)",')
|
||||||
if func_name then
|
assert(func_name, 'Did not find a function in line: '..line)
|
||||||
if lld.line_length > 850 then
|
if lld.line_length > 850 then
|
||||||
w('\n' .. vimfun_start)
|
w('\n' .. vimfun_start)
|
||||||
end
|
|
||||||
w(' ' .. func_name)
|
|
||||||
end
|
end
|
||||||
|
w(' ' .. func_name)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
eval_fd:close()
|
eval_fd:close()
|
||||||
|
Loading…
Reference in New Issue
Block a user