diff options
Diffstat (limited to 'test/crossfile/hover.lua')
-rw-r--r-- | test/crossfile/hover.lua | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/test/crossfile/hover.lua b/test/crossfile/hover.lua index 20a44d96..5995f1bd 100644 --- a/test/crossfile/hover.lua +++ b/test/crossfile/hover.lua @@ -613,3 +613,25 @@ comment1 comment2]] }} + +TEST {{ path = 'a.lua', content = '', }, { + path = 'b.lua', + content = [[ + ---@param a boolean # xxx + ---| 'true' # ttt + ---| 'false' # fff + local function <?f?>(a) + end + ]] +}, +hover = { + label = "function f(a: boolean|true|false)", + name = 'f', + description = [[ +@*param* `a` — xxx +```lua +a: boolean + | true -- ttt + | false -- fff +```]] +}} |