diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2022-07-27 20:02:18 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2022-07-27 20:02:18 +0800 |
commit | f95cec2d31079134e3bfc35908ed1a6a6f9e7805 (patch) | |
tree | 6de2214f5010f4d33e4fb3f7c5030de41989a17e /test/crossfile | |
parent | a6e7f478d00865750e4be61d581ddd2bbe7e41e8 (diff) | |
download | lua-language-server-f95cec2d31079134e3bfc35908ed1a6a6f9e7805.zip |
fix hover of some operators
Diffstat (limited to 'test/crossfile')
-rw-r--r-- | test/crossfile/hover.lua | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/test/crossfile/hover.lua b/test/crossfile/hover.lua index e8a718d4..e6517aa9 100644 --- a/test/crossfile/hover.lua +++ b/test/crossfile/hover.lua @@ -1554,3 +1554,31 @@ TEST { } ```]] } + +TEST { + { + path = 'a.lua', + content = [[ + ---@enum <?A?> + local t = { + x = 1 << 0, + y = 1 << 1, + z = 1 << 2, + } + ]] + }, + hover = [[ +```lua +(enum) A +``` + +--- + +```lua +{ + x: integer = 1, + y: integer = 2, + z: integer = 4, +} +```]] +} |