summaryrefslogtreecommitdiff
path: root/server/src/core/hover/hover.lua
diff options
context:
space:
mode:
Diffstat (limited to 'server/src/core/hover/hover.lua')
-rw-r--r--server/src/core/hover/hover.lua11
1 files changed, 11 insertions, 0 deletions
diff --git a/server/src/core/hover/hover.lua b/server/src/core/hover/hover.lua
index d8694766..48f91796 100644
--- a/server/src/core/hover/hover.lua
+++ b/server/src/core/hover/hover.lua
@@ -172,6 +172,17 @@ local function getValueHover(source, name, value, lib)
local tp
if source:bindLocal() then
tp = 'local'
+ local loc = source:bindLocal()
+ if loc.tags then
+ local mark = {}
+ for _, tag in ipairs(loc.tags) do
+ local tagName = tag[1]
+ if not mark[tagName] then
+ mark[tagName] = true
+ tp = ('%s <%s>'):format(tp, tagName)
+ end
+ end
+ end
elseif source:get 'global' then
tp = 'global'
elseif source:get 'simple' then