diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2021-06-11 19:32:31 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2021-06-11 19:32:31 +0800 |
commit | d587d5c381c9cf8c59fb6aa0caf26fc7288ed550 (patch) | |
tree | c81c50e5b078d179027c5d6166d2e3e3efde584f /script/core | |
parent | 4df0ae57a2486d1f8e3329e244aedfddeacafc12 (diff) | |
download | lua-language-server-d587d5c381c9cf8c59fb6aa0caf26fc7288ed550.zip |
fix
Diffstat (limited to 'script/core')
-rw-r--r-- | script/core/noder.lua | 3 | ||||
-rw-r--r-- | script/core/searcher.lua | 2 |
2 files changed, 4 insertions, 1 deletions
diff --git a/script/core/noder.lua b/script/core/noder.lua index 1e62ed2e..d68cc3ba 100644 --- a/script/core/noder.lua +++ b/script/core/noder.lua @@ -528,6 +528,9 @@ function m.compileNode(noders, source) end end if source.type == 'call' then + if not id then + return + end local node = source.node local nodeID = getID(node) if not nodeID then diff --git a/script/core/searcher.lua b/script/core/searcher.lua index eaef5102..0d59932d 100644 --- a/script/core/searcher.lua +++ b/script/core/searcher.lua @@ -522,7 +522,7 @@ function m.searchRefsByID(status, uri, expect, mode) local stepCount = 0 function searchStep(id, field) stepCount = stepCount + 1 - --status.count = status.count + 1 + status.count = status.count + 1 if stepCount > 1000 or status.count > 10000 then if TEST then |