diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2021-09-22 14:31:13 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2021-09-22 14:31:13 +0800 |
commit | 1ab04aca1e0a3ad9d76aa11fa4e8eefe9781624b (patch) | |
tree | cc51d42849aaa2e1da1937534de6ba333321554c /script | |
parent | a847377582e5f22244aa587f9d79a07f9db03780 (diff) | |
download | lua-language-server-1ab04aca1e0a3ad9d76aa11fa4e8eefe9781624b.zip |
update
Diffstat (limited to 'script')
-rw-r--r-- | script/core/completion.lua | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/script/core/completion.lua b/script/core/completion.lua index 46847540..6f9605e2 100644 --- a/script/core/completion.lua +++ b/script/core/completion.lua @@ -1524,7 +1524,6 @@ local function tryCallArg(state, text, position, results) end local function tryTable(state, text, position, results) - position = lookBackward.skipSpace(text, guide.positionToOffset(state, position)) local source = findNearestTableField(state, position) if not source then return @@ -1553,7 +1552,7 @@ end local function getComment(state, position) for _, comm in ipairs(state.comms) do - if position >= comm.start - 2 and position <= comm.finish then + if position > comm.start and position <= comm.finish then return comm end end |