diff --git a/src/awesomewm.d.tl/visitors/module_dependencies.tl b/src/awesomewm.d.tl/visitors/module_dependencies.tl index 844744e..94cc701 100644 --- a/src/awesomewm.d.tl/visitors/module_dependencies.tl +++ b/src/awesomewm.d.tl/visitors/module_dependencies.tl @@ -53,11 +53,17 @@ end function Module_Dependencies.visit(node: Node, mod: Node, d: Dag) local all_types = get_all_types_in_node(node) for _, type_name in ipairs(all_types) do + if type_name == mod.name then + goto continue + end + local dependency = d.modules[type_name] or d.modules[utils.lowercase(type_name)] if dependency then mod.dependencies[dependency.name] = dependency.module_path replace_in_node_type(node, dependency.module_path, dependency.name) end + + ::continue:: end end