diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2021-01-27 20:32:43 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2021-01-27 20:32:43 +0800 |
commit | 5f90b1c69ebb935dc46a55039fc3cf414e3be009 (patch) | |
tree | bf4085d391943897b78f233b84d5d901081e042f /script | |
parent | 6a2249c865914658e57557dbd91241e4a73ace07 (diff) | |
download | lua-language-server-5f90b1c69ebb935dc46a55039fc3cf414e3be009.zip |
fix endless loop
Diffstat (limited to 'script')
-rw-r--r-- | script/parser/guide.lua | 8 |
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 |