We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f37e539 commit b47b4d3Copy full SHA for b47b4d3
docgen/docgen.lua
@@ -69,22 +69,19 @@ docgen.get_module_top_comment = function(buf)
69
local node = ts.get_first_node_recursive("comment", { buf = buf, ft = "lua" })
70
71
if not node then
72
- print("no comment node")
73
return
74
end
75
76
-- Verify if it's the first line
77
local start_row = node:range()
78
if start_row ~= 0 then
79
- print("doens't start of the first line")
80
81
82
83
local comment = vim.split(ts.get_node_text(node, buf), "\n")
84
85
-- Stops execution if it's not a multiline comment
86
if comment[1] ~= [[--[[]] or comment[#comment] ~= "--]]" then
87
- print("not a block comment")
88
89
90
0 commit comments