summaryrefslogtreecommitdiff
path: root/script
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2021-01-27 20:32:43 +0800
committer最萌小汐 <sumneko@hotmail.com>2021-01-27 20:32:43 +0800
commit5f90b1c69ebb935dc46a55039fc3cf414e3be009 (patch)
treebf4085d391943897b78f233b84d5d901081e042f /script
parent6a2249c865914658e57557dbd91241e4a73ace07 (diff)
downloadlua-language-server-5f90b1c69ebb935dc46a55039fc3cf414e3be009.zip
fix endless loop
Diffstat (limited to 'script')
-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 ba30bcbc..b521b8c2 100644
--- a/script/parser/guide.lua
+++ b/script/parser/guide.lua
@@ -1518,7 +1518,15 @@ function m.checkSameSimpleInValueOfSetMetaTable(status, func, start, pushQueue)
end
end
if mt then
+ if not status.share.markMetaTable then
+ status.share.markMetaTable = {}
+ end
+ if status.share.markMetaTable[mt] then
+ return
+ end
+ status.share.markMetaTable[mt] = true
m.checkSameSimpleInValueInMetaTable(status, mt, start, pushQueue)
+ status.share.markMetaTable[mt] = nil
end
end