diff options
-rw-r--r-- | server/src/matcher/completion.lua | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/server/src/matcher/completion.lua b/server/src/matcher/completion.lua index 8b309880..d5067ed2 100644 --- a/server/src/matcher/completion.lua +++ b/server/src/matcher/completion.lua @@ -263,6 +263,9 @@ local function findClosePos(vm, pos) end end end + if parent.type ~= 'local' and parent.type ~= 'field' then + parent = nil + end if parent then -- 造个假的 DirtyName local source = { |