diff options
Diffstat (limited to 'server-beta/src/searcher')
-rw-r--r-- | server-beta/src/searcher/eachRef.lua | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/server-beta/src/searcher/eachRef.lua b/server-beta/src/searcher/eachRef.lua index 81bfb8bf..65fd3529 100644 --- a/server-beta/src/searcher/eachRef.lua +++ b/server-beta/src/searcher/eachRef.lua @@ -120,6 +120,22 @@ local function ofLiteral(searcher, source, callback) end end +local function ofGoTo(searcher, source, callback) + local name = source[1] + local label = guide.getLabel(source, name) + if label then + callback { + searcher = searcher, + source = label, + mode = 'set', + } + end +end + +local function ofLabel(searcher, source, callback) + +end + return function (searcher, source, callback) local stype = source.type if stype == 'local' then @@ -138,5 +154,9 @@ return function (searcher, source, callback) or stype == 'boolean' or stype == 'string' then ofLiteral(searcher, source, callback) + elseif stype == 'goto' then + ofGoTo(searcher, source, callback) + elseif stype == 'label' then + ofLabel(searcher, source, callback) end end |