summaryrefslogtreecommitdiff
path: root/script
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2021-06-25 20:37:38 +0800
committer最萌小汐 <sumneko@hotmail.com>2021-06-25 20:37:38 +0800
commit10d122da212d5cc94ac88298014bc46ae5cda4c0 (patch)
tree48be37f86a66c314ec54e9be3c6ff6b396b7023c /script
parentb6a58d0912d6cb015c621d2ce32d701ef6e7500e (diff)
downloadlua-language-server-10d122da212d5cc94ac88298014bc46ae5cda4c0.zip
revert
Diffstat (limited to 'script')
-rw-r--r--script/core/completion.lua16
1 files changed, 0 insertions, 16 deletions
diff --git a/script/core/completion.lua b/script/core/completion.lua
index c5198e50..97984299 100644
--- a/script/core/completion.lua
+++ b/script/core/completion.lua
@@ -1217,21 +1217,6 @@ local function tryWord(ast, text, offset, triggerCharacter, results)
end
end
-local function tryAfterIndex(ast, text, offset, triggerCharacter, results)
- if isInString(ast, offset) then
- return
- end
- local finish = lookBackward.skipSpace(text, offset)
- do return end
- local hasSpace = triggerCharacter ~= nil and finish ~= offset
- local parent, oop = findParent(ast, text, start - 1)
- if parent then
- if not hasSpace then
- checkField(ast, word, start, offset, parent, oop, results)
- end
- end
-end
-
local function trySymbol(ast, text, offset, results)
local symbol, start = lookBackward.findSymbol(text, offset)
if not symbol then
@@ -1958,7 +1943,6 @@ local function completion(uri, offset, triggerCharacter)
tryCallArg(ast, text, offset, results)
tryTable(ast, text, offset, results)
tryWord(ast, text, offset, triggerCharacter, results)
- tryAfterIndex(ast, text, offset, triggerCharacter, results)
tryIndex(ast, text, offset, results)
trySymbol(ast, text, offset, results)
end