summaryrefslogtreecommitdiff
path: root/test/crossfile
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2021-08-17 17:48:58 +0800
committer最萌小汐 <sumneko@hotmail.com>2021-08-17 17:48:58 +0800
commit8d2a56d0953a1b62c103296cf48e530b597c453e (patch)
tree14b7abfdb0e4b329a24fd76b759ab5ada3216c22 /test/crossfile
parentc7db60b4629f0174da0679d47cbb2f7cb8813ed9 (diff)
downloadlua-language-server-8d2a56d0953a1b62c103296cf48e530b597c453e.zip
limited searching across `---@type`
Diffstat (limited to 'test/crossfile')
-rw-r--r--test/crossfile/definition.lua38
1 files changed, 19 insertions, 19 deletions
diff --git a/test/crossfile/definition.lua b/test/crossfile/definition.lua
index 6fb17082..ebe4dc31 100644
--- a/test/crossfile/definition.lua
+++ b/test/crossfile/definition.lua
@@ -830,22 +830,22 @@ print(t.x.<?a?>)
}
}
---TEST {
--- {
--- path = 'a.lua',
--- content = [[
------@type Class
---local m
---m.<!xx!> = 1
--- ]]
--- },
--- {
--- path = 'b.lua',
--- content = [[
------@class Class
---local m
---
---print(m.<?xx?>)
--- ]]
--- }
---}
+TEST {
+ {
+ path = 'a.lua',
+ content = [[
+---@type Class
+local m
+m.<!xx!> = 1
+ ]]
+ },
+ {
+ path = 'b.lua',
+ content = [[
+---@class Class
+local m
+
+print(m.<?xx?>)
+ ]]
+ }
+}