summaryrefslogtreecommitdiff
path: root/script/parser
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2020-12-17 14:15:18 +0800
committer最萌小汐 <sumneko@hotmail.com>2020-12-17 14:15:18 +0800
commit50e027378a627146f891ee8c5b5e838096d6f334 (patch)
tree5ee266bd3cfee3d41899e23a29166d5cd569c58b /script/parser
parentf88826b4b752fcaa06c6a9242211659f86b6034d (diff)
downloadlua-language-server-50e027378a627146f891ee8c5b5e838096d6f334.zip
#306
Diffstat (limited to 'script/parser')
-rw-r--r--script/parser/guide.lua8
1 files changed, 8 insertions, 0 deletions
diff --git a/script/parser/guide.lua b/script/parser/guide.lua
index e2efd22f..f6231808 100644
--- a/script/parser/guide.lua
+++ b/script/parser/guide.lua
@@ -2209,6 +2209,13 @@ function m.checkSameSimpleInString(status, ref, start, queue, mode)
if status.share.searchingBindedDoc then
return
end
+ if not status.share.markString then
+ status.share.markString = {}
+ end
+ if status.share.markString[ref] then
+ return
+ end
+ status.share.markString[ref] = true
local newStatus = m.status(status)
local docs = status.interface.docType('string*')
local mark = {}
@@ -2227,6 +2234,7 @@ function m.checkSameSimpleInString(status, ref, start, queue, mode)
}
::CONTINUE::
end
+ status.share.markString[ref] = nil
return true
end