summaryrefslogtreecommitdiff
path: root/script/core/diagnostics/code-after-break.lua
diff options
context:
space:
mode:
Diffstat (limited to 'script/core/diagnostics/code-after-break.lua')
-rw-r--r--script/core/diagnostics/code-after-break.lua10
1 files changed, 5 insertions, 5 deletions
diff --git a/script/core/diagnostics/code-after-break.lua b/script/core/diagnostics/code-after-break.lua
index f23755ea..dc7226ae 100644
--- a/script/core/diagnostics/code-after-break.lua
+++ b/script/core/diagnostics/code-after-break.lua
@@ -1,7 +1,7 @@
-local files = require 'files'
-local guide = require 'core.guide'
-local lang = require 'language'
-local define = require 'proto.define'
+local files = require 'files'
+local searcher = require 'core.searcher'
+local lang = require 'language'
+local define = require 'proto.define'
return function (uri, callback)
local state = files.getAst(uri)
@@ -10,7 +10,7 @@ return function (uri, callback)
end
local mark = {}
- guide.eachSourceType(state.ast, 'break', function (source)
+ searcher.eachSourceType(state.ast, 'break', function (source)
local list = source.parent
if mark[list] then
return