diff --git a/spec/printer/teal_type_definition_spec.tl b/spec/printer/teal_type_definition_spec.tl index 1174c1e..913df2c 100644 --- a/spec/printer/teal_type_definition_spec.tl +++ b/spec/printer/teal_type_definition_spec.tl @@ -21,6 +21,7 @@ describe("Teal type definition Printer", function() it("should print a simple module type definition", gen( { children = {}, + dependencies = {}, name = "Empty", token = "module", }, @@ -51,6 +52,7 @@ describe("Teal type definition Printer", function() token = "enum", }, }, + dependencies = {}, name = "Signal_Module", token = "module", }, @@ -76,6 +78,7 @@ describe("Teal type definition Printer", function() token = "variable", } }, + dependencies = {}, name = "Property_Module", token = "module", }, @@ -110,6 +113,7 @@ describe("Teal type definition Printer", function() token = "function", }, }, + dependencies = {}, name = "Function_Module", token = "module", }, @@ -132,6 +136,7 @@ describe("Teal type definition Printer", function() token = "record", } }, + dependencies = {}, name = "Nested_Module", token = "module", }, diff --git a/src/awesomewm.d.tl/printer/teal_type_definition.tl b/src/awesomewm.d.tl/printer/teal_type_definition.tl index 05724f2..1c6fefe 100644 --- a/src/awesomewm.d.tl/printer/teal_type_definition.tl +++ b/src/awesomewm.d.tl/printer/teal_type_definition.tl @@ -54,10 +54,9 @@ local node_printer : { Node.Token : Node_Printer_Function } = { [[ -- This file was auto-generated. %s - local record %s ]], - render_require(node.dependencies), + render_require(node.dependencies), -- last require statement will have a newline node.name), indent_level), indent_level + 1 end,