diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2021-03-27 17:39:08 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2021-03-27 17:39:08 +0800 |
commit | aa669fd32b51f338dfc76e8efd40ade98431537b (patch) | |
tree | 0de8afeef767e590572d72fe0f5557f974e349e3 /test/crossfile/hover.lua | |
parent | f7e6d4f875f0733e7a61dfb767ed5acfc007fe69 (diff) | |
download | lua-language-server-aa669fd32b51f338dfc76e8efd40ade98431537b.zip |
fix #468
Diffstat (limited to 'test/crossfile/hover.lua')
-rw-r--r-- | test/crossfile/hover.lua | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/test/crossfile/hover.lua b/test/crossfile/hover.lua index b72a6391..d0080ed9 100644 --- a/test/crossfile/hover.lua +++ b/test/crossfile/hover.lua @@ -684,3 +684,35 @@ hover = { name = 'x', description = 'BBB' }} + +TEST {{ path = 'a.lua', content = '', }, { + path = 'b.lua', + content = [[ +---AAA +G.<?A?> = 1 + +---BBB +G.A = 1 + ]] +}, +hover = { + label = 'global G.A: integer = 1', + name = 'G.A', + description = 'AAA' +}} + +TEST {{ path = 'a.lua', content = '', }, { + path = 'b.lua', + content = [[ +---AAA +G.A = 1 + +---BBB +G.<?A?> = 1 + ]] +}, +hover = { + label = 'global G.A: integer = 1', + name = 'G.A', + description = 'BBB' +}} |