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