summaryrefslogtreecommitdiff
path: root/script/core
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2021-11-03 11:24:19 +0800
committer最萌小汐 <sumneko@hotmail.com>2021-11-15 13:58:50 +0800
commite271d36bdc3bf2cc0f96e19f74bd861b2cfb177f (patch)
tree2632239e7ec0fc947e43ef76584aed013faefc59 /script/core
parent3dec75e8717735ba5e1a921e7b407df6048900e3 (diff)
downloadlua-language-server-e271d36bdc3bf2cc0f96e19f74bd861b2cfb177f.zip
fix #780
Diffstat (limited to 'script/core')
-rw-r--r--script/core/completion.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/script/core/completion.lua b/script/core/completion.lua
index 74017ec6..6ec15bcf 100644
--- a/script/core/completion.lua
+++ b/script/core/completion.lua
@@ -712,7 +712,8 @@ end
local function isInString(state, position)
return guide.eachSourceContain(state.ast, position, function (source)
- if source.type == 'string' then
+ if source.type == 'string'
+ and source.start < position then
return true
end
end)