summaryrefslogtreecommitdiff
path: root/script/core/diagnostics/redefined-local.lua
diff options
context:
space:
mode:
Diffstat (limited to 'script/core/diagnostics/redefined-local.lua')
-rw-r--r--script/core/diagnostics/redefined-local.lua5
1 files changed, 4 insertions, 1 deletions
diff --git a/script/core/diagnostics/redefined-local.lua b/script/core/diagnostics/redefined-local.lua
index 857d80d2..48093417 100644
--- a/script/core/diagnostics/redefined-local.lua
+++ b/script/core/diagnostics/redefined-local.lua
@@ -1,5 +1,5 @@
local files = require 'files'
-local guide = require 'core.guide'
+local guide = require 'parser.guide'
local lang = require 'language'
return function (uri, callback)
@@ -13,6 +13,9 @@ return function (uri, callback)
or name == ast.ENVMode then
return
end
+ if source.tag == 'self' then
+ return
+ end
local exist = guide.getLocal(source, name, source.start-1)
if exist then
callback {