summaryrefslogtreecommitdiff
path: root/script/core
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2022-06-15 21:06:07 +0800
committer最萌小汐 <sumneko@hotmail.com>2022-06-15 21:06:07 +0800
commit6fd670b15c9403e92ab9a803f8fa885fe3d9bee2 (patch)
treeae9f0559a6acee9aa1df64f6090f14726bde77c1 /script/core
parent241c518d2e02f2b65c59460d0bb8d4101d98614a (diff)
downloadlua-language-server-6fd670b15c9403e92ab9a803f8fa885fe3d9bee2.zip
cleanup
Diffstat (limited to 'script/core')
-rw-r--r--script/core/completion/completion.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/script/core/completion/completion.lua b/script/core/completion/completion.lua
index 9e8ad03e..1ddd9890 100644
--- a/script/core/completion/completion.lua
+++ b/script/core/completion/completion.lua
@@ -1099,7 +1099,7 @@ local function tryLabelInString(label, source)
if not source or source.type ~= 'string' then
return label
end
- local state = parser.parse(label, 'String')
+ local state = parser.compile(label, 'String')
if not state or not state.ast then
return label
end