summaryrefslogtreecommitdiff
path: root/server-beta/src/searcher/goto.lua
diff options
context:
space:
mode:
Diffstat (limited to 'server-beta/src/searcher/goto.lua')
-rw-r--r--server-beta/src/searcher/goto.lua16
1 files changed, 16 insertions, 0 deletions
diff --git a/server-beta/src/searcher/goto.lua b/server-beta/src/searcher/goto.lua
new file mode 100644
index 00000000..8698eef1
--- /dev/null
+++ b/server-beta/src/searcher/goto.lua
@@ -0,0 +1,16 @@
+local guide = require 'parser.guide'
+
+local m = {}
+
+function m:eachDef(source, callback)
+ local name = source[1]
+ local label = guide.getLabel(source, name)
+ if label then
+ callback {
+ source = label,
+ uri = self.uri,
+ }
+ end
+end
+
+return m