summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--script-beta/core/definition.lua4
-rw-r--r--test-beta/definition/init.lua2
-rw-r--r--test-beta/definition/luadoc.lua (renamed from test-beta/definition/emmy.lua)0
-rw-r--r--test-beta/references/init.lua14
4 files changed, 19 insertions, 1 deletions
diff --git a/script-beta/core/definition.lua b/script-beta/core/definition.lua
index f2177fc9..0363a6a2 100644
--- a/script-beta/core/definition.lua
+++ b/script-beta/core/definition.lua
@@ -43,6 +43,10 @@ local accept = {
['string'] = true,
['boolean'] = true,
['number'] = true,
+
+ ['doc.type.name'] = true,
+ ['doc.class.name'] = true,
+ ['doc.extends.name'] = true,
}
local function checkRequire(source, offset)
diff --git a/test-beta/definition/init.lua b/test-beta/definition/init.lua
index 645765a2..3d6f308a 100644
--- a/test-beta/definition/init.lua
+++ b/test-beta/definition/init.lua
@@ -64,4 +64,4 @@ require 'definition.label'
require 'definition.call'
require 'definition.bug'
require 'definition.special'
---require 'definition.emmy'
+--require 'definition.luadoc'
diff --git a/test-beta/definition/emmy.lua b/test-beta/definition/luadoc.lua
index ee8fa6a7..ee8fa6a7 100644
--- a/test-beta/definition/emmy.lua
+++ b/test-beta/definition/luadoc.lua
diff --git a/test-beta/references/init.lua b/test-beta/references/init.lua
index 5bca58ab..fc7cf4cb 100644
--- a/test-beta/references/init.lua
+++ b/test-beta/references/init.lua
@@ -274,3 +274,17 @@ TEST [[
---@type <!Class!>
---@type <!Class!>
]]
+do return end
+TEST [[
+---@class Class
+local <?t?>
+---@type Class
+local <!t!>
+]]
+
+TEST [[
+---@class Class
+local <!t!>
+---@type Class
+local <?t?>
+]]