diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2022-05-25 02:17:13 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2022-05-25 02:17:13 +0800 |
commit | 50688a8001325308c30a8669783f1d0e379b463b (patch) | |
tree | 4206bb8792370a6c02f91bf32782cf9645a0b8c0 /script/vm/compiler.lua | |
parent | dfab76e01eb592b0cd2625d71a1ef7a859a2aee1 (diff) | |
download | lua-language-server-50688a8001325308c30a8669783f1d0e379b463b.zip |
fix #1150
Diffstat (limited to 'script/vm/compiler.lua')
-rw-r--r-- | script/vm/compiler.lua | 2 |
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] |