summaryrefslogtreecommitdiff
path: root/script
diff options
context:
space:
mode:
Diffstat (limited to 'script')
-rw-r--r--script/core/diagnostics/discard-returns.lua3
-rw-r--r--script/parser/luadoc.lua1
2 files changed, 4 insertions, 0 deletions
diff --git a/script/core/diagnostics/discard-returns.lua b/script/core/diagnostics/discard-returns.lua
index 9e573596..37d36214 100644
--- a/script/core/diagnostics/discard-returns.lua
+++ b/script/core/diagnostics/discard-returns.lua
@@ -15,6 +15,9 @@ return function (uri, callback)
if not guide.isBlockType(source.parent) then
return
end
+ if source.parent.filter == source then
+ return
+ end
await.delay()
if vm.isNoDiscard(source.node, true) then
callback {
diff --git a/script/parser/luadoc.lua b/script/parser/luadoc.lua
index e18e34aa..242b878e 100644
--- a/script/parser/luadoc.lua
+++ b/script/parser/luadoc.lua
@@ -157,6 +157,7 @@ Symbol <- ({} {
---@field generics? parser.object[]
---@field generic? parser.object
---@field docAttr? parser.object
+---@field pattern? string
local function parseTokens(text, offset)
Ci = 0