diff options
author | Lewis Russell <lewis6991@gmail.com> | 2023-08-08 16:36:06 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-08-08 16:36:06 +0100 |
commit | c6c21db82b31ea43ce878ab3725dcd901db1e7a1 (patch) | |
tree | 6002ddf7e9ef9d2ca40ef0029f501864ff43cbd9 /scripts/lua2dox.lua | |
parent | 61ed45486da01dca788f8a444fc2021002f0c947 (diff) | |
download | rneovim-c6c21db82b31ea43ce878ab3725dcd901db1e7a1.tar.gz rneovim-c6c21db82b31ea43ce878ab3725dcd901db1e7a1.tar.bz2 rneovim-c6c21db82b31ea43ce878ab3725dcd901db1e7a1.zip |
fix(filetype): add typing and dry (#24573)
Diffstat (limited to 'scripts/lua2dox.lua')
-rw-r--r-- | scripts/lua2dox.lua | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/scripts/lua2dox.lua b/scripts/lua2dox.lua index 01bb8ab57a..7594a0e7df 100644 --- a/scripts/lua2dox.lua +++ b/scripts/lua2dox.lua @@ -58,7 +58,11 @@ local TYPES = { 'integer', 'number', 'string', 'table', 'list', 'boolean', 'func local TAGGED_TYPES = { 'TSNode', 'LanguageTree' } -- Document these as 'table' -local ALIAS_TYPES = { 'Range', 'Range4', 'Range6', 'TSMetadata' } +local ALIAS_TYPES = { + 'Range', 'Range4', 'Range6', 'TSMetadata', + 'vim.filetype.add.filetypes', + 'vim.filetype.match.args' +} local debug_outfile = nil --- @type string? local debug_output = {} |