summaryrefslogtreecommitdiff
path: root/script/core/hover/description.lua
diff options
context:
space:
mode:
Diffstat (limited to 'script/core/hover/description.lua')
-rw-r--r--script/core/hover/description.lua5
1 files changed, 4 insertions, 1 deletions
diff --git a/script/core/hover/description.lua b/script/core/hover/description.lua
index 51cf2caa..1f276864 100644
--- a/script/core/hover/description.lua
+++ b/script/core/hover/description.lua
@@ -97,7 +97,10 @@ local function normalizeComment(comment, suri)
return nil
end
comment = comment:gsub('(%[.-%]%()(.-)(%))', function (left, path, right)
- if furi.split(path) then
+ local scheme = furi.split(path)
+ if scheme
+ -- strange way to check `C:/xxx.lua`
+ and #scheme > 1 then
return
end
local absPath = ws.getAbsolutePath(suri:gsub('/[^/]+$', ''), path)