summaryrefslogtreecommitdiff
path: root/server/src/matcher/compile.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2018-12-09 15:25:06 +0800
committer最萌小汐 <sumneko@hotmail.com>2018-12-09 15:25:06 +0800
commiteaed7673a1ff4e167afa6cc568f714931cf370d6 (patch)
treeee6d768ffb2440e6f40162196c1c154aa2e85456 /server/src/matcher/compile.lua
parentf76813d8a2e4ae3204b549259fe714806807e03d (diff)
downloadlua-language-server-eaed7673a1ff4e167afa6cc568f714931cf370d6.zip
更新一下命名
Diffstat (limited to 'server/src/matcher/compile.lua')
-rw-r--r--server/src/matcher/compile.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/server/src/matcher/compile.lua b/server/src/matcher/compile.lua
index 7db5ad4b..557f4f59 100644
--- a/server/src/matcher/compile.lua
+++ b/server/src/matcher/compile.lua
@@ -271,6 +271,7 @@ function mt:getString(exp)
return {
type = 'string',
string = exp[1],
+ valuetype = 'string',
childs = {},
}
end
@@ -310,7 +311,7 @@ function mt:setValue(var, value)
if not var or not value then
return
end
- var.value = value.value or value
+ var.value = value.value or value
if value.childs then
var.childs = value.childs
for _, child in pairs(value.childs) do