summaryrefslogtreecommitdiff
path: root/script/vm/compiler.lua
diff options
context:
space:
mode:
Diffstat (limited to 'script/vm/compiler.lua')
-rw-r--r--script/vm/compiler.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/script/vm/compiler.lua b/script/vm/compiler.lua
index 6c95b5bd..cd2b602d 100644
--- a/script/vm/compiler.lua
+++ b/script/vm/compiler.lua
@@ -533,7 +533,7 @@ end
-- 该函数有副作用,会给source绑定node!
local function bindDocs(source)
local isParam = source.parent.type == 'funcargs'
- or source.parent.type == 'in'
+ or (source.parent.type == 'in' and source.finish <= source.parent.keys.finish)
local docs = source.bindDocs
for i = #docs, 1, -1 do
local doc = docs[i]