diff options
-rw-r--r-- | script/parser/luadoc.lua | 3 | ||||
-rw-r--r-- | script/vm/local-id.lua | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/script/parser/luadoc.lua b/script/parser/luadoc.lua index 5a2e1d09..5928ec1c 100644 --- a/script/parser/luadoc.lua +++ b/script/parser/luadoc.lua @@ -1313,7 +1313,8 @@ local function isNextLine(binded, doc) return false end local lastDoc = binded[#binded] - if lastDoc.type == 'doc.type' then + if lastDoc.type == 'doc.type' + or lastDoc.type == 'doc.module' then return false end if lastDoc.type == 'doc.class' diff --git a/script/vm/local-id.lua b/script/vm/local-id.lua index 1566e8f3..75251095 100644 --- a/script/vm/local-id.lua +++ b/script/vm/local-id.lua @@ -137,7 +137,7 @@ function m.compileLocalID(source) end ---@param source parser.object ----@return string|boolean +---@return string? function m.getID(source) if source._localID ~= nil then return source._localID |