mirror of
https://github.com/neovim/neovim.git
synced 2025-09-06 19:38:20 +00:00
fix(diagnostic): typing
This commit is contained in:

committed by
Lewis Russell

parent
91ba9d0bf4
commit
50284d07b6
@@ -291,9 +291,11 @@ function Lua2DoxFilter:process_magic(line)
|
||||
for _, type in ipairs(TYPES) do
|
||||
line = line:gsub('^@param%s+([a-zA-Z_?]+)%s+.*%((' .. type .. ')%)', '@param %1 %2')
|
||||
line = line:gsub('^@param%s+([a-zA-Z_?]+)%s+.*%((' .. type .. '|nil)%)', '@param %1 %2')
|
||||
line = line:gsub('^@param%s+([a-zA-Z_?]+)%s+.*%((' .. type .. '%?)%)', '@param %1 %2')
|
||||
|
||||
line = line:gsub('^@return%s+.*%((' .. type .. ')%)', '@return %1')
|
||||
line = line:gsub('^@return%s+.*%((' .. type .. '|nil)%)', '@return %1')
|
||||
line = line:gsub('^@return%s+.*%((' .. type .. '%?)%)', '@return %1')
|
||||
end
|
||||
end
|
||||
|
||||
|
Reference in New Issue
Block a user