Skip to content

Commit aa8f0cf

Browse files
committed
fix #297
1 parent 3b9bde4 commit aa8f0cf

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

changelog.md

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
* `CHG` hover: `LuaDoc` also catchs `--` (no need `---`)
1010
* `CHG` rename: support doc
1111
* `CHG` completion: keyword considers expression
12+
* `FIX` [#297](https://github.com./sumneko/lua-language-server/issues/297)
1213

1314
## 1.5.0
1415
`2020-12-5`

script/parser/guide.lua

+5
Original file line numberDiff line numberDiff line change
@@ -1401,9 +1401,14 @@ function m.checkSameSimpleInValueOfSetMetaTable(status, func, start, queue)
14011401
end
14021402

14031403
function m.checkSameSimpleInValueOfCallMetaTable(status, call, start, queue)
1404+
if status.crossMetaTableMark then
1405+
return
1406+
end
1407+
status.crossMetaTableMark = true
14041408
if call.type == 'call' then
14051409
m.checkSameSimpleInValueOfSetMetaTable(status, call.node, start, queue)
14061410
end
1411+
status.crossMetaTableMark = false
14071412
end
14081413

14091414
function m.checkSameSimpleInSpecialBranch(status, obj, start, queue)

0 commit comments

Comments
 (0)