diff options
| author | Lewis Russell <lewis6991@gmail.com> | 2024-01-09 12:47:57 +0000 |
|---|---|---|
| committer | Lewis Russell <me@lewisr.dev> | 2024-01-16 09:33:10 +0000 |
| commit | 50284d07b6f020c819aeb07bfb30d88453e63b6d (patch) | |
| tree | cef294122443162d0962a8a32e2bfa884c053547 /scripts | |
| parent | 91ba9d0bf46aa82a7887737ae12ff2d5559214ca (diff) | |
| download | rneovim-50284d07b6f020c819aeb07bfb30d88453e63b6d.tar.gz rneovim-50284d07b6f020c819aeb07bfb30d88453e63b6d.tar.bz2 rneovim-50284d07b6f020c819aeb07bfb30d88453e63b6d.zip | |
fix(diagnostic): typing
Diffstat (limited to 'scripts')
| -rw-r--r-- | scripts/lua2dox.lua | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/scripts/lua2dox.lua b/scripts/lua2dox.lua index 871720bd2a..4f9973449e 100644 --- a/scripts/lua2dox.lua +++ b/scripts/lua2dox.lua @@ -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 |