summaryrefslogtreecommitdiff
path: root/test/hover/init.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2022-04-23 22:04:14 +0800
committer最萌小汐 <sumneko@hotmail.com>2022-04-23 22:04:14 +0800
commita7afda10d2ea044a8ea3c83d4656736a6969a101 (patch)
tree84dd11d3b399778f2020a1b77c8a15d8e9f25d5b /test/hover/init.lua
parent317c856fa0f04472c7b6a4febae2b813657ca9c2 (diff)
downloadlua-language-server-a7afda10d2ea044a8ea3c83d4656736a6969a101.zip
update hovering table
fields beginning with underlines are sorted to the last
Diffstat (limited to 'test/hover/init.lua')
-rw-r--r--test/hover/init.lua25
1 files changed, 21 insertions, 4 deletions
diff --git a/test/hover/init.lua b/test/hover/init.lua
index 5d3cd404..3c0ccf3a 100644
--- a/test/hover/init.lua
+++ b/test/hover/init.lua
@@ -504,10 +504,10 @@ local <?self?> = setmetatable({
]]
[[
local self: {
- __index: table,
- __name: string = "obj",
id: integer = 1,
remove: function,
+ __index: table,
+ __name: string = "obj",
}
]]
@@ -790,8 +790,6 @@ TEST [[
]]
[[
(global) _G: _G {
- _G: _G,
- _VERSION: string = "Lua 5.4",
arg: string[],
assert: function,
collectgarbage: function,
@@ -810,6 +808,8 @@ TEST [[
module: function,
newproxy: function,
next: function,
+ os: oslib,
+ package: packagelib,
...(+22)
}
]]
@@ -1851,6 +1851,23 @@ local x: {
]]
TEST [[
+local <?x?> = {
+ _x = '',
+ _y = '',
+ x = '',
+ y = '',
+}
+]]
+[[
+local x: {
+ x: string = "",
+ y: string = "",
+ _x: string = "",
+ _y: string = "",
+}
+]]
+
+TEST [[
---@class A
---@field x string