summaryrefslogtreecommitdiff
path: root/script-beta/core
diff options
context:
space:
mode:
Diffstat (limited to 'script-beta/core')
-rw-r--r--script-beta/core/completion.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/script-beta/core/completion.lua b/script-beta/core/completion.lua
index fcf18151..b82e462b 100644
--- a/script-beta/core/completion.lua
+++ b/script-beta/core/completion.lua
@@ -114,6 +114,10 @@ local function findParent(ast, text, offset)
end
local oop
if char == '.' then
+ -- `..` 的情况
+ if text:sub(i-1, i-1) == '.' then
+ return nil, nil
+ end
oop = false
elseif char == ':' then
oop = true