summaryrefslogtreecommitdiff
path: root/server-beta/src/core/goto.lua
blob: 4652f8be5058eda8ec41ee347d069ac1313c36ab (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
local guide    = require 'parser.guide'

local m = {}

function m:def(source, callback)
    local name = source[1]
    local label = guide.getLabel(source, name)
    if label then
        callback(label)
    end
end

return m