summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2021-11-25 16:39:48 +0800
committer最萌小汐 <sumneko@hotmail.com>2021-11-25 16:39:48 +0800
commitbf9e6936218ff6f84ff6fc17c3e6cb0e46d81488 (patch)
treefbc749c09e4a1179b6e8383c24c5b7b8a25dd6e3
parent8a4e2274e25d005a2c9e30512105b3a5e527b8df (diff)
parentd5760f684ca86fbd5f092a3eb62af5e98040e64a (diff)
downloadlua-language-server-bf9e6936218ff6f84ff6fc17c3e6cb0e46d81488.zip
Merge branch 'bugfix'
-rw-r--r--changelog.md2
-rw-r--r--script/core/noder.lua15
2 files changed, 7 insertions, 10 deletions
diff --git a/changelog.md b/changelog.md
index 9392b263..f1750f28 100644
--- a/changelog.md
+++ b/changelog.md
@@ -31,6 +31,8 @@
* `CHG` after using `Lua.runtime.nonstandardSymbol` to treat `//` as a comment, `//` is no longer parsed as an operator
## 2.4.11
+`2021-11-25`
+* `FIX` [#816](https://github.com/sumneko/lua-language-server/issues/816)
* `FIX` [#817](https://github.com/sumneko/lua-language-server/issues/817)
* `FIX` [#818](https://github.com/sumneko/lua-language-server/issues/818)
* `FIX` [#820](https://github.com/sumneko/lua-language-server/issues/820)
diff --git a/script/core/noder.lua b/script/core/noder.lua
index 1e8ce121..bc2efa70 100644
--- a/script/core/noder.lua
+++ b/script/core/noder.lua
@@ -1055,16 +1055,11 @@ compileNodeMap = util.switch()
end
if source.bindSources then
for _, src in ipairs(source.bindSources) do
- if src.type == 'local'
- or src.type == 'tablefield'
- or src.type == 'tableindex'
- or src.type == 'setglobal'
- or guide.isGlobal(src) then
- if src.parent.type ~= 'funcargs'
- and not src.dummy then
- pushForward(noders, getID(src), id)
- pushForward(noders, id, getID(src))
- end
+ if src.parent.type ~= 'funcargs'
+ and src.type ~= 'setmethod'
+ and not src.dummy then
+ pushForward(noders, getID(src), id)
+ pushForward(noders, id, getID(src))
end
end
end