summaryrefslogtreecommitdiff
path: root/server-beta/src/core/definition.lua
diff options
context:
space:
mode:
Diffstat (limited to 'server-beta/src/core/definition.lua')
-rw-r--r--server-beta/src/core/definition.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/server-beta/src/core/definition.lua b/server-beta/src/core/definition.lua
index 087ef948..8b8d0b8e 100644
--- a/server-beta/src/core/definition.lua
+++ b/server-beta/src/core/definition.lua
@@ -5,7 +5,7 @@ return function (ast, text, offset)
local results = {}
guide.eachSourceContain(ast.ast, offset, function (source)
local searcher = engineer(ast)
- searcher:eachRef(source, 'def', function (src, mode)
+ searcher:eachDef(source, function (src, mode)
results[#results+1] = {
uri = ast.uri,
source = source,