diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2021-06-23 14:45:41 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2021-06-23 14:45:41 +0800 |
commit | 1e7e9eba031eadfb5045a7fec01ee8519a967be6 (patch) | |
tree | 035b576fec50ad1874c6d7960169d2661d3c9428 | |
parent | 5adace3e553540953346934c8f30df01d8cc2625 (diff) | |
download | lua-language-server-1e7e9eba031eadfb5045a7fec01ee8519a967be6.zip |
fix #570
-rw-r--r-- | changelog.md | 3 | ||||
-rw-r--r-- | script/core/noder.lua | 2 | ||||
-rw-r--r-- | test/diagnostics/init.lua | 5 |
3 files changed, 9 insertions, 1 deletions
diff --git a/changelog.md b/changelog.md index c772c530..afc62256 100644 --- a/changelog.md +++ b/changelog.md @@ -1,5 +1,8 @@ # changelog +## 2.0.2 +* `FIX` [#570](https://github.com/sumneko/lua-language-server/issues/570) + ## 2.0.1 `2021-6-21` * `FIX` [#566](https://github.com/sumneko/lua-language-server/issues/566) diff --git a/script/core/noder.lua b/script/core/noder.lua index ffd51bfd..413f2007 100644 --- a/script/core/noder.lua +++ b/script/core/noder.lua @@ -297,7 +297,7 @@ local function getID(source) if current.type == 'paren' then current = current.exp if not current then - break + return nil end goto CONTINUE end diff --git a/test/diagnostics/init.lua b/test/diagnostics/init.lua index 01c53533..84c62c5a 100644 --- a/test/diagnostics/init.lua +++ b/test/diagnostics/init.lua @@ -1134,3 +1134,8 @@ local s print(s:upper()) ]] + +TEST [[ +local t = (). +return t +]] |