summaryrefslogtreecommitdiff
path: root/server
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2019-03-28 17:04:23 +0800
committer最萌小汐 <sumneko@hotmail.com>2019-03-28 17:04:23 +0800
commitfd5fba2c6aed7eff07102f62c7d760e219768b5f (patch)
tree48251540d8a2bb0e96f9f24a1c0fc8709ee7f411 /server
parente848325ca7d6220dbfa2ccde31be6abc8eb06ade (diff)
downloadlua-language-server-fd5fba2c6aed7eff07102f62c7d760e219768b5f.zip
修正 highlight 跨文件的bug
Diffstat (limited to 'server')
-rw-r--r--server/src/core/highlight.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/src/core/highlight.lua b/server/src/core/highlight.lua
index 53000e66..2073573d 100644
--- a/server/src/core/highlight.lua
+++ b/server/src/core/highlight.lua
@@ -30,7 +30,7 @@ local function parseResult(source)
local parent = source:get 'parent'
local mark = {}
parent:eachInfo(function (info, src)
- if not mark[src] then
+ if not mark[src] and source.uri == src.uri then
mark[src] = info
if info.type == 'get child' or info.type == 'set child' then
if info[1] == source[1] then