doc: annotate populate_filetype function
Signed-off-by: Sabu Siyad <hello@ssiyad.com>
This commit is contained in:
@@ -40,8 +40,10 @@ local function todo_text(type)
|
|||||||
})[type] or todo["description"]
|
})[type] or todo["description"]
|
||||||
end
|
end
|
||||||
|
|
||||||
|
--- Create per filetype table of node types
|
||||||
|
---@param filetype string
|
||||||
|
---@param language any
|
||||||
local function populate_filetype(filetype, language)
|
local function populate_filetype(filetype, language)
|
||||||
-- Create a table with all possible node types
|
|
||||||
for lang_type, set in pairs(language.parent) do
|
for lang_type, set in pairs(language.parent) do
|
||||||
if all_types_map[filetype] == nil then
|
if all_types_map[filetype] == nil then
|
||||||
all_types_map[filetype] = {}
|
all_types_map[filetype] = {}
|
||||||
|
|||||||
Reference in New Issue
Block a user