summaryrefslogtreecommitdiff
path: root/script/vm
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2022-04-22 01:22:46 +0800
committer最萌小汐 <sumneko@hotmail.com>2022-04-22 01:22:46 +0800
commit4bb1dadaf5ce86b3fda8e175e217a0016c361e5e (patch)
tree64179f697156e59620c3016db8ad01b46fd563cd /script/vm
parent5b148c7f76e9bbdbbee28e0dac51c2b14f7e7ebd (diff)
downloadlua-language-server-4bb1dadaf5ce86b3fda8e175e217a0016c361e5e.zip
fix
Diffstat (limited to 'script/vm')
-rw-r--r--script/vm/runner.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/script/vm/runner.lua b/script/vm/runner.lua
index 3a315d5c..ed881d94 100644
--- a/script/vm/runner.lua
+++ b/script/vm/runner.lua
@@ -85,7 +85,7 @@ function mt:_preCompile()
self.steps[#self.steps+1] = {
type = 'object',
object = ref,
- pos = ref.start,
+ pos = ref.range or ref.start,
}
local block = guide.getParentBlock(ref)
self:_compileBlock(block)