Skip to content

Commit 1e7e9eb

Browse files
committed
fix #570
1 parent 5adace3 commit 1e7e9eb

File tree

3 files changed

+9
-1
lines changed

3 files changed

+9
-1
lines changed

changelog.md

+3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# changelog
22

3+
## 2.0.2
4+
* `FIX` [#570](https://github.com/sumneko/lua-language-server/issues/570)
5+
36
## 2.0.1
47
`2021-6-21`
58
* `FIX` [#566](https://github.com/sumneko/lua-language-server/issues/566)

script/core/noder.lua

+1-1
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,7 @@ local function getID(source)
297297
if current.type == 'paren' then
298298
current = current.exp
299299
if not current then
300-
break
300+
return nil
301301
end
302302
goto CONTINUE
303303
end

test/diagnostics/init.lua

+5
Original file line numberDiff line numberDiff line change
@@ -1134,3 +1134,8 @@ local s
11341134
11351135
print(s:upper())
11361136
]]
1137+
1138+
TEST [[
1139+
local t = ().
1140+
return t
1141+
]]

0 commit comments

Comments
 (0)