summaryrefslogtreecommitdiff
path: root/script/parser/compile.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2022-09-07 16:28:31 +0800
committer最萌小汐 <sumneko@hotmail.com>2022-09-07 16:28:31 +0800
commita815d3f8c22cbbb44c3977cf73f87943283c213c (patch)
treeb0c1a89008db3b8da20e8aa00536c1d07774476c /script/parser/compile.lua
parentefe82edce8af8160c3a6e0977bee935f7f8655d5 (diff)
downloadlua-language-server-a815d3f8c22cbbb44c3977cf73f87943283c213c.zip
fix #1529
Diffstat (limited to 'script/parser/compile.lua')
-rw-r--r--script/parser/compile.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/script/parser/compile.lua b/script/parser/compile.lua
index 931f438d..45678976 100644
--- a/script/parser/compile.lua
+++ b/script/parser/compile.lua
@@ -3826,6 +3826,7 @@ local function initState(lua, version, options)
comms = {},
lines = {
[0] = 1,
+ size = #lua,
},
options = options or {},
}