summaryrefslogtreecommitdiff
path: root/server/src
diff options
context:
space:
mode:
Diffstat (limited to 'server/src')
-rw-r--r--server/src/core/highlight.lua2
-rw-r--r--server/src/core/rename.lua2
2 files changed, 2 insertions, 2 deletions
diff --git a/server/src/core/highlight.lua b/server/src/core/highlight.lua
index c71aab8b..53000e66 100644
--- a/server/src/core/highlight.lua
+++ b/server/src/core/highlight.lua
@@ -26,7 +26,7 @@ local function parseResult(source)
end)
return positions
end
- if source:bindValue() then
+ if source:bindValue() and source:get 'parent' then
local parent = source:get 'parent'
local mark = {}
parent:eachInfo(function (info, src)
diff --git a/server/src/core/rename.lua b/server/src/core/rename.lua
index b9f692d6..98257ddb 100644
--- a/server/src/core/rename.lua
+++ b/server/src/core/rename.lua
@@ -35,7 +35,7 @@ local function parseResult(source, newName)
end)
return positions
end
- if source:bindValue() then
+ if source:bindValue() and source:get 'parent' then
if source:get 'in index' then
if not parser.grammar(newName, 'Exp') then
return positions