doc: annotate populate_filetype function

Signed-off-by: Sabu Siyad <hello@ssiyad.com>
This commit is contained in:
Sabu Siyad
2023-01-03 00:16:59 +05:30
parent 62ce187699
commit a7f0e7051e

View File

@@ -40,8 +40,10 @@ local function todo_text(type)
})[type] or todo["description"]
end
--- Create per filetype table of node types
---@param filetype string
---@param language any
local function populate_filetype(filetype, language)
-- Create a table with all possible node types
for lang_type, set in pairs(language.parent) do
if all_types_map[filetype] == nil then
all_types_map[filetype] = {}