diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2021-01-27 10:12:06 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2021-01-27 10:12:06 +0800 |
commit | 59298a3e6a8db211f07a40cbe9099124beead283 (patch) | |
tree | f77fdd8ca4117a4840075389342b3f8f4f2f2def /script/parser/guide.lua | |
parent | 8965c10371d7596f3a86d477ef99033caa6c326c (diff) | |
download | lua-language-server-59298a3e6a8db211f07a40cbe9099124beead283.zip |
fix #363
Diffstat (limited to 'script/parser/guide.lua')
-rw-r--r-- | script/parser/guide.lua | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/script/parser/guide.lua b/script/parser/guide.lua index d3f26803..c580aeec 100644 --- a/script/parser/guide.lua +++ b/script/parser/guide.lua @@ -2340,10 +2340,14 @@ function m.checkSameSimpleInString(status, ref, start, pushQueue, mode) if not status.share.markString then status.share.markString = {} end - if status.share.markString[ref] then + local marked = ref + if ref.type == 'string' then + marked = 'string' + end + if status.share.markString[marked] then return end - status.share.markString[ref] = true + status.share.markString[marked] = true local newStatus = m.status(status) local docs = status.interface.docType('string*') local mark = {} @@ -2359,7 +2363,7 @@ function m.checkSameSimpleInString(status, ref, start, pushQueue, mode) pushQueue(res, start + 1) ::CONTINUE:: end - status.share.markString[ref] = nil + status.share.markString[marked] = nil return true end |